


However, I read online that doing too many polygons could be really slow. Is a font a bad thing to use in an OpenGL program? As an alternative to a bitmap type font, I was considering drawing a complex glyph (like a trebel clef) with polygons. There are many different glyphs used in music notation (a few hundred). What is the preferred way to do this sort of 2d drawing? I researched truetype fonts and OpenGL online, but it sounds like that might be impossible or very slow. as well as other italic markings in the score (eg the word “sim.” on the 6th line from the top). Additionally, I need to use a custom serif font to add in the composer’s name at the top, etc. The glyphs could be the notes themselves (ovals at a slight tilt), or the clefs, or the sharps and flats, or the time signature (4/4). I now need to add glyphs of various sizes and shapes to draw the actual notation. It probably doesn’t sound like a lot, but I am an opengl beginner, and it took me a few hours to get set up. Here’s an example of music notation to refresh your memory (courtesy of google images):Ĭurrently, I have successfully drawn the horizontal lines (staves) using OpenGL and gotten them to antialias. Printed by preceding them with backslashes.I am trying to make an OpenGL program that can display music notation. Several words can be grouped together by enclosing them inĪpart from grouping, quoting also allows writing specialĬharacters such as ‘ \’ and ‘ #’ without affecting theįormatting of the text.

Suchīlocks can be used in many contexts (see Text objects overview). Text with an extensible syntax called “markup mode”. This section presents basic and advanced text formatting,Ī \markup or \markuplist block is used to typeset
