Click here to Skip to main content
11,645,893 members (70,050 online)
Click here to Skip to main content
Articles » Multimedia » OpenGL » General » Downloads
Add your own
alternative version

OpenGL Win32 AppWizard

, 19 May 2003 394.9K 20.5K 108
This Custom AppWizard for VC++ 6.0 or VC++.NET creates an OpenGL enabled Win32 application suitable for demos and simple games.
oglwiz7.zip
OGLWiz7
1033
HTML
1033
Images
OGLWiz7.gif
OGLWiz7_Background.gif
Scripts
1033
Templates
1033
Templates.inf
res
Mainicon.ico
OGLWiz7.ico
OGLWiz7.vsdir
OGLWiz7.vsz
oglwiz_bin.zip
OGLWiz.awx
OGLWIZ.HLP
oglwiz_src.zip
res
OGLWiz.ico
Template
newproj.inf
confirm.inf
res
SDKTest.ICO
small.ico
hlp
OGLWiz.hpj
OGLWiz.rtf
OGLWiz.hm
OGLWIZ.HLP
OGLWiz.clv
OGLWiz.dsp
OGLWiz.dsw
----------------------------------
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.

License

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

Share

About the Author

Ulf Öhlén
Sweden Sweden
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150731.1 | Last Updated 20 May 2003
Article Copyright 2001 by Ulf Öhlén
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid