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.GLVBOModelDraw3DString (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.GLVBOModelDraw3DString (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:
filename 3D Font file

Member Function Documentation

List<GLRender.GLVBOModel> OpenCLTemplate.CLGLInterop.GLFont.Draw3DString ( string  s  ) 

Creates an array of 3D models containing the given string.

Parameters:
s String to write
List<GLRender.GLVBOModel> OpenCLTemplate.CLGLInterop.GLFont.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.

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:
file File to save to.

Member Data Documentation

Stores 3D character models.

Generated on Sun Dec 4 17:27:03 2011 for OpenCLTemplate by  doxygen 1.6.3