⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glunits.txt

📁 一款RPG游戏的引擎可以自己制作一款RPG游戏的引擎可以自己制作
💻 TXT
字号:
  glunits.zip
***************

These are the Delphi conversions of gl.h, glu.h and glut.h for use
with OpenGL 1.1. Copy them to your Delphi\Lib directory or
somewhere else in your compiler's search path and you're all set!

To use these units with OpenGL drivers other than Microsoft's,
you need to manually initialize all three libraries. For example:

  LoadOpenGL('opengl.dll');
  LoadGLu('glu.dll');
  LoadGlut('glut.dll');

If you do this, make sure to free the previously loaded library
first:

  FreeOpenGL;
  FreeGLu;
  FreeGlut;

If the DLLs the application is trying to load cannot be found, an
exception will be raised. By default, the units will try to load
OpenGL32.dll, GLu32.dll and Glut32.dll. No exception will be
thrown if they are not found, so if you want to support multiple
OpenGL implementations in your app, it's probably best to
explicitly load the DLLs explicitly as shown above. This way, you
can properly trap errors.

A final note: if you have a 3D card with an OpenGL ICD, you do NOT
need to load the driver yourself. Microsoft's OpenGL32.dll will
automatically detect and use your 3D card's drivers, so the
default settings in these units will work perfectly.

  Tom Nuydens (delphi3d@gamedeveloper.org)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -