NVIDIA DRIVE 5.0 Linux SDK API Reference

5.0.5.0 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvtexfont.h File Reference

Detailed Description

NVIDIA Graphics 3D Font Text API

Description: NVTexfont is an NVIDIA library that draws font text in a 3D scene.

Definition in file nvtexfont.h.

Go to the source code of this file.

Macros

#define TXF_FORMAT_BYTE   0
 
#define TXF_FORMAT_BITMAP   1
 

Typedefs

typedef void * NVTexfontContext
 
typedef struct _NVTexfontRasterFont NVTexfontRasterFont
 
typedef struct _NVTexfontVectorFont NVTexfontVectorFont
 

Enumerations

enum  NVTexfontRasterFontName {
  NV_TEXFONT_DEFAULT = 0,
  NV_TEXFONT_HELVETICA = 0
}
 
enum  NVTexfontVectorFontName {
  NV_VECTOR_TEXFONT_DEFAULT = 0,
  NV_VECTOR_TEXFONT_INCONSOLATA = 0
}
 

Functions

char * nvtexfontErrorString (void)
 
NVTexfontContext nvtexfontAllocContext (void)
 Allocates a handle for an NVTexfont context. More...
 
void nvtexfontFreeContext (NVTexfontContext tfc)
 Frees the specified NVTexfont context handle. More...
 
void nvtexfontSetContextPos (NVTexfontContext tfc, float x, float y)
 Sets the x,y attributes for the NVTexfont context tfc. More...
 
void nvtexfontSetContextScale (NVTexfontContext tfc, float scaleX, float scaleY)
 Sets the x,y attributes for the NVTexfont context tfc. More...
 
void nvtexfontSetContextColor (NVTexfontContext tfc, float r, float g, float b)
 
Raster Font Functions
int nvtexfontInRasterFont (NVTexfontRasterFont *txf, int c)
 
NVTexfontRasterFontnvtexfontInitRasterFont (NVTexfontRasterFontName font, GLuint texobj, GLboolean setupMipmaps, GLenum minFilter, GLenum magFilter)
 Initializes an NVTexfontRasterFont. More...
 
void nvtexfontUnloadRasterFont (NVTexfontRasterFont *txf)
 Frees textures used by the font txf. More...
 
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. More...
 
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 NVTexfontContext where omitted. More...
 
void nvtexfontRenderString (NVTexfontRasterFont *txf, NVTexfontContext tfc, char *string)
 
void nvtexfontGetStringMetrics (NVTexfontRasterFont *txf, char *string, int len, int *width, int *max_ascent, int *max_descent)
 
Vector Font Functions
int nvtexfontInVectorFont (NVTexfontVectorFont *vtf, int c)
 
NVTexfontVectorFontnvtexfontInitVectorFont (NVTexfontVectorFontName font, GLboolean antialias, GLboolean use_vbo)
 Initialize an NVTexfontVectorFont. More...
 
void nvtexfontUnloadVectorFont (NVTexfontVectorFont *vtf)
 Frees resources used by the vector font vtf, including the VBO if used. More...
 
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. More...
 
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 NVTexfontContext where omitted. More...
 
void nvtexfontRenderVecString (NVTexfontVectorFont *vtf, NVTexfontContext tfc, char *string)
 Renders the specified null-terminated string as above but uses the position/scale/color from the NVTexfontContext where omitted. More...