XFONT.C from SAMPLES\OPENGL\BOOK Subdirectory

Last reviewed: August 1, 1996
Article ID: Q124870
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with:

        - Microsoft Windows NT version 3.5
    

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 reference words: 3.50
KBCategory: kbgraphic kbgraphic
KBSubcategory: GdiOpenGL


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 1, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.