Page 44 OpenGL (Web hosting india) Super Bible! Dissecting a Short

Page 44 OpenGL Super Bible! Dissecting a Short OpenGL Program In order to understand the AUX library better, let s take a look at possibly the world s shortest OpenGL program, which was written using the AUX library. Listing 3-1 presents the shortest.c program. Its output is shown in Figure 3-2. Figure 3-2 Output from shortest.c Listing 3-1 Shortest OpenGL program in the world // shortest.c // The shortest OpenGL program possible #include // Standard Window header required for all programs #include // Console I/O functions #include // OpenGL functions #include // AUX Library functions void main(void) { // These are the AUX functions to set up the window auxInitDisplayMode(AUX_SINGLE | AUX_RGBA); auxInitPosition(100,100,250,250); auxInitWindow(”My first OpenGL Program”);
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision professional web hosting services

Leave a Reply