|
|
|
|
| |
Building and Running the OpenGL®
Samples
|
|
|
The OpenGL® samples are glut applications, which means you should download the latest glut dll, lib, header etc for your platform. Some of the samples use a set of re-usable modules developed for the SDK for loading textures, loading 3D objects from POF files, reporting errors etc. If you download and install the full Radeon® SDK, the source will be placed in a directory structure (inside /SampleCode/OpenGL/) as follows:
include - .h files for common modules (you'll need to get a gl.h from opengl.org) src - .cpp files for common modules lib - .lib files for OpenGL®, GLU and GLUT RadeonFogCoord - MSVC6 .dsw, CodeWarrior3 and .cpp files for height-fog example RadeonFogCoord/Debug/ - .exe and .SYM height-fog example RadeonSeparateSpecular - MSVC6 .dsw, CodeWarrior3 and .cpp files for the separate specular example RadeonSeparateSpecular/Debug/ - .exe, .SYM and .tga files for the separate specular example ...and so on for the other samples...
The sample applications build for both Win32 and Mac®OS. When building an application for Win32, be sure that WIN32 is defined. For Mac®OS, be sure to define MAC_OS or include the MacOpenGL.h header file.
On Win32, you'll need to link your applications with opengl32.lib, glu32.lib and glut32.lib.
Mac®OS libs and headers are located in the GLHeaders & Libs folder. CodeWarrior3 projects, .SYM files and Mac®OS executables are provided for some of the samples as well.
Consult the relevant OpenGL® extension specs (see the 3D Programming page) for necessary function prototypes and defined contants. Additionally, the tokens and prototypes required to utilize OpenGL® extensions are found in the glATI.h and wglATI.h headers, which you can feel free to use in your own applications.
| |
|
Downloading and Building Individual Samples
|
|
|
In addition to downloading the entire SDK, a user may also select to only download individual samples. The individual samples are packed in platform specific archive files, and they only contain the files unique to the sample. The common source and header files are contained in their own archive. Mac and PC versions of the common source are provided, but their contents are identical. To download the necessary files to build one of the demos, just follow these steps:
- Select the demo you wish and go to its html page.
- Download all the files for platform you wish to build the sample on.
- Extract the files to replicate the directory structure described above.
- Continue as if you had installed the entire SDK.
Remember, individual build environments vary, so you may need to change the include paths to match your environment.
| |
|
Obtaining Drivers
|
|
|
Win32
ATI supports a full ICD. Be sure to check out the Supported
Drivers Page at ati.com
Mac®OS
A public beta of the OpenGL® libraries is available from Apple® presently. In addition, an updated version of the same drivers is available to Apple®'s registered developers.
Have fun and let us know if you have any problems!
| |
| |
|
| |
 |
|
|
|