OpenGLwglUseFontBitmaps 方法 |
The wglUseFontBitmaps function creates a set of bitmap display lists for use in the current OpenGL rendering context. The set of bitmap display lists is based on the glyphs in the currently selected font in the device context. You can then use bitmaps to draw characters in an OpenGL image.
命名空间:
DSkin.OpenGL
程序集:
DSkin (在 DSkin.dll 中) 版本:16.6.3.22
语法public static bool wglUseFontBitmaps(
IntPtr hDC,
uint first,
uint count,
uint listBase
)
参数
- hDC
- 类型:SystemIntPtr
Specifies the device context whose currently selected font will be used to form the glyph bitmap display lists in the current OpenGL rendering context.. - first
- 类型:SystemUInt32
Specifies the first glyph in the run of glyphs that will be used to form glyph bitmap display lists. - count
- 类型:SystemUInt32
Specifies the number of glyphs in the run of glyphs that will be used to form glyph bitmap display lists. The function creates count display lists, one for each glyph in the run. - listBase
- 类型:SystemUInt32
Specifies a starting display list.
返回值
类型:
BooleanIf the function succeeds, the return value is TRUE. If the function fails, the return value is FALSE. To get extended error information, call GetLastError.
参见