20 #ifndef __NV_TEXFONT_H__
21 #define __NV_TEXFONT_H__
58 #define TXF_FORMAT_BYTE 0
59 #define TXF_FORMAT_BITMAP 1
87 extern NVTexfontContext
95 NVTexfontContext tfc);
106 NVTexfontContext tfc,
119 NVTexfontContext tfc,
125 NVTexfontContext tfc,
161 GLboolean setupMipmaps,
220 NVTexfontContext tfc,
228 NVTexfontContext tfc,
320 NVTexfontContext tfc,
336 NVTexfontContext tfc,
void nvtexfontSetContextPos(NVTexfontContext tfc, float x, float y)
Sets the x,y attributes for the NVTexfont context tfc.
NVTexfontContext nvtexfontAllocContext(void)
Allocates a handle for an NVTexfont context.
NVTexfontVectorFont * nvtexfontInitVectorFont(NVTexfontVectorFontName font, GLboolean antialias, GLboolean use_vbo)
Initialize an NVTexfontVectorFont.
void nvtexfontFreeContext(NVTexfontContext tfc)
Frees the specified NVTexfont context handle.
struct _NVTexfontRasterFont NVTexfontRasterFont
void nvtexfontRenderVecString_All(NVTexfontVectorFont *vtf, char *string, float x, float y, float scaleX, float scaleY, float r, float g, float b)
Renders the specified null-terminated string by using the NVTexfontVectorFont vtf.
void nvtexfontSetContextColor(NVTexfontContext tfc, float r, float g, float b)
void nvtexfontSetContextScale(NVTexfontContext tfc, float scaleX, float scaleY)
Sets the x,y attributes for the NVTexfont context tfc.
NVTexfontRasterFont * nvtexfontInitRasterFont(NVTexfontRasterFontName font, GLuint texobj, GLboolean setupMipmaps, GLenum minFilter, GLenum magFilter)
Initializes an NVTexfontRasterFont.
void nvtexfontUnloadRasterFont(NVTexfontRasterFont *txf)
Frees textures used by the font txf.
struct _NVTexfontVectorFont NVTexfontVectorFont
void nvtexfontRenderVecString(NVTexfontVectorFont *vtf, NVTexfontContext tfc, char *string)
Renders the specified null-terminated string as above but uses the position/scale/color from the NVTe...
void nvtexfontRenderVecString_Pos(NVTexfontVectorFont *vtf, NVTexfontContext tfc, char *string, float x, float y)
Renders the specified null-terminated string as above but uses the position/scale/color from the NVTe...
void nvtexfontRenderString_Pos(NVTexfontRasterFont *txf, NVTexfontContext tfc, char *string, float x, float y)
Renders the specified null-terminated string as above but uses the position/scale/color from the NVTe...
int nvtexfontInRasterFont(NVTexfontRasterFont *txf, int c)
void nvtexfontRenderString_All(NVTexfontRasterFont *txf, char *string, float x, float y, float scaleX, float scaleY, float r, float g, float b)
Renders the specified null-terminated string by using the NVTexfont txf.
int nvtexfontInVectorFont(NVTexfontVectorFont *vtf, int c)
void nvtexfontRenderString(NVTexfontRasterFont *txf, NVTexfontContext tfc, char *string)
void nvtexfontGetStringMetrics(NVTexfontRasterFont *txf, char *string, int len, int *width, int *max_ascent, int *max_descent)
void nvtexfontUnloadVectorFont(NVTexfontVectorFont *vtf)
Frees resources used by the vector font vtf, including the VBO if used.
char * nvtexfontErrorString(void)