OpenCLTemplate.CLGLInterop.GLFont Class Reference
OpenGL 3D font creator.
More...
List of all members.
Public Member Functions |
| | GLFont (Font f, float GLNormalizationScale) |
| | Creates a new 3D font from specified font.
|
| | GLFont (string filename) |
| | Loads a 3D font from a file. Does NOT require OpenCL/GL interop.
|
| List< GLRender.GLVBOModel > | Draw3DString (string s, GLRender target) |
| | Creates an array of 3D models containing the given string. If target!=null adds them to target`s display list.
|
| List< GLRender.GLVBOModel > | Draw3DString (string s) |
| | Creates an array of 3D models containing the given string.
|
| void | Save (string file) |
| | Saves this 3D font to a file. Requires OpenCL/GL interoperation.
|
Static Public Member Functions |
| static Bitmap | DrawString (string s, Font TextFont, Color TextLeftColor, Color TextRightColor, Color BackgroundLeftColor, Color BackgroundRightColor) |
| | Returns a Bitmap containing a text drawn. Useful to set as texture.
|
| static Bitmap | DrawString (string s, Font TextFont, Color TextColor, Color BackgroundColor) |
| | Returns a Bitmap containing a text drawn. Useful to set as texture.
|
| static Bitmap | DrawString (string s, Font TextFont) |
| | Returns a Bitmap containing a text drawn. Useful to set as texture.
|
Public Attributes |
| GLRender.GLVBOModel[] | GLchars |
| | Stores 3D character models.
|
Detailed Description
OpenGL 3D font creator.
Constructor & Destructor Documentation
| OpenCLTemplate.CLGLInterop.GLFont.GLFont |
( |
Font |
f, |
|
|
float |
GLNormalizationScale | |
|
) |
| | |
Creates a new 3D font from specified font.
- Parameters:
-
| f | Font prototype to use in this 3D font |
| GLNormalizationScale | Character reference width in OpenGL scale |
| OpenCLTemplate.CLGLInterop.GLFont.GLFont |
( |
string |
filename |
) |
|
Loads a 3D font from a file. Does NOT require OpenCL/GL interop.
- Parameters:
-
Member Function Documentation
Creates an array of 3D models containing the given string.
- Parameters:
-
Creates an array of 3D models containing the given string. If target!=null adds them to target`s display list.
- Parameters:
-
| s | String to write |
| target | Target GLWindow to write |
| static Bitmap OpenCLTemplate.CLGLInterop.GLFont.DrawString |
( |
string |
s, |
|
|
Font |
TextFont | |
|
) |
| | [static] |
Returns a Bitmap containing a text drawn. Useful to set as texture.
- Parameters:
-
| s | String to be written |
| TextFont | Font to use |
| static Bitmap OpenCLTemplate.CLGLInterop.GLFont.DrawString |
( |
string |
s, |
|
|
Font |
TextFont, |
|
|
Color |
TextColor, |
|
|
Color |
BackgroundColor | |
|
) |
| | [static] |
Returns a Bitmap containing a text drawn. Useful to set as texture.
- Parameters:
-
| s | String to be written |
| TextFont | Font to use |
| TextColor | Text color. |
| BackgroundColor | Background color. |
| static Bitmap OpenCLTemplate.CLGLInterop.GLFont.DrawString |
( |
string |
s, |
|
|
Font |
TextFont, |
|
|
Color |
TextLeftColor, |
|
|
Color |
TextRightColor, |
|
|
Color |
BackgroundLeftColor, |
|
|
Color |
BackgroundRightColor | |
|
) |
| | [static] |
Returns a Bitmap containing a text drawn. Useful to set as texture.
- Parameters:
-
| s | String to be written |
| TextFont | Font to use |
| TextLeftColor | Left color of Text. |
| TextRightColor | Right color of Text. |
| BackgroundLeftColor | Left color of Background. |
| BackgroundRightColor | Right color of Background. |
| void OpenCLTemplate.CLGLInterop.GLFont.Save |
( |
string |
file |
) |
|
Saves this 3D font to a file. Requires OpenCL/GL interoperation.
- Parameters:
-
Member Data Documentation
Stores 3D character models.