Knowledge Base

XFONT.C from SAMPLES\OPENGL\BOOK Subdirectory

Article ID: 124870

Article Last Modified on 11/21/2006


APPLIES TO


This article was previously published under Q124870

SUMMARY

XFONT.C from the SAMPLES\OPENGL\BOOK subdirectory is not in the MAKEFILE, and subsequently is never built.

MORE INFORMATION

XFONT.C should not be built because the sample uses X Window System system- specific functions. To use fonts with Windows NT version 3.5 OpenGL, use the wglUseFontBitmaps() and glCallLists() functions as described in the OpenGL online reference. Another alternative is to use auxDrawStr(). Note that auxDrawStr is defined in GLAUX.H as:
   #ifdef UNICODE
   #define auxDrawStr auxDrawStrW
   #else
   #define auxDrawStr auxDrawStrA
   #endif
   void APIENTRY auxDrawStrA(LPCSTR);
   void APIENTRY auxDrawStrW(LPCWSTR);
				

REFERENCES

For further information on using fonts with OpenGL, please refer to the OpenGL online reference titled "Fonts and Text."

Additional query words: 3.50

Keywords: KB124870