|
----------------------------------
Description
----------------------------------
OpenGL Win32 AppWizard
By Ulf �hl�n, ulf_ohlen@hotmail.com
A Custom AppWizard for VC++.NET that creates an OpenGL enabled
Win32 application suitable for demos and simple games.
----------------------------------
Installation
----------------------------------
1. Unzip the entire OGLWiz7 folder to your hard drive. Visual Studio's VCWizars folder
(typically "C:\Program Files\Microsoft Visual Studio .NET\Vc7\VCWizards") is
a good place to put it.
2. Move OGLWiz7.ico, OGLWiz7.vsdir and OGLWiz7.vsz to the folder vcprojects, usually
"C:\Program Files\Microsoft Visual Studio .NET\Vc7\vcprojects".
3. Open OGLWiz7.vsz in a text editor. Change the ABSOLUTE_PATH parameter to point
to the folder where you installed the wizard. For example:
Param="ABSOLUTE_PATH = C:\Program Files\Microsoft Visual Studio .NET\Vc7\VCWizards\OGLWiz7"
----------------------------------
Using the wizard
----------------------------------
In VS.NET, select "File/New.../Project" in the menu. Go to "Visual C++ Projects"
and select the item "OGLWiz". Enter a project name and press OK.
The following options to customize the project are available:
- Menu: Check this box to add a menu to the main window.
- Keyboard accelerator: Adds a keyboard accelerator resource and
processes accelerator keys.
- About box: Creates an about dialog and a dialog callback routine.
Also adds an About command to the menu (if available).
- Show FPS in caption: Adds code to show Frames Per Second on regular
intervals. (Not available in fullscreen mode)
- Use OpenGL: Adds code to initialize and maintain an OpenGL RC. If
this box is not checked, a plain Win32 application is created.
- Sample code: Adds code that renders a simple OpenGL scene (spinning cube).
- Double buffering: Creates a double-buffered pixel buffer.
- Window mode: Determines behaviour of the main window.
Window: Creates an overlapped window with default size/position.
Fullscreen: Creates a topmost popup window that occupies the entire screen.
Ask: The user is asked at runtime if the application should run in fullscreen or not.
- Color depth: Number of color bitplanes in each color buffer.
- Z-buffer depth: Bit-depth of the Z-buffer.
- Background color: Enter the R, G and B values for default background color.
----------------------------------
Overview of the generated project
----------------------------------
Two classes are generated by the wizard:
- CApp
- CMyApp, where "My" is the project name
CApp is an abstract base class for a single-window Win32 application. It takes
care of creating a window, initializing OpenGL(optional), starting the message
pump etc. Only one instance of any class derived from CApp is allowed. This
class should not need to be changed much.
CMyApp derives from CApp and is used for application specific code. It overrides
a number of virtual functions in CApp. See source code comments for details.
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.