Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » OpenGL » General » Downloads
 
Add your own
alternative version

OpenGL Win32 AppWizard

, 19 May 2003
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
<HTML dir="ltr">
	<HEAD>
		<TITLE>'OGLWiz7'</TITLE>
		<SYMBOL NAME='WIZARD_DIALOG_TITLE' TYPE=text VALUE='OGLWiz7'></SYMBOL>
		<META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<STYLE type="text/css">@import url(); 
		</STYLE>
		<SCRIPT>
		var strURL = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
		strURL += "VCWizards/";
		strURL += window.external.GetHostLocale();
		strURL += "/NewStyles.css";
		document.styleSheets(0).imports(0).href = strURL;
		</SCRIPT>
		<!--  -->
		<!-- The SYMBOL tag is used to set the default values for the user-defined symbols.-->
		<!--  -->
		<script language="javascript" id="clientEventHandlersJS">
<!--

function UpdateCmd() 
{
	var bUseOgl = document.all("CHK_OPENGL").checked;	
	var bShowFPS = bUseOgl && document.all("LST_WINMODE").value!= "WM_FULL";
	
	document.all("CHK_SAMPLE").disabled = !bUseOgl;
	document.all("CHK_FPS").disabled = !bShowFPS;	
	document.all("LST_COLORDEPTH").disabled = !bUseOgl;
	document.all("LST_ZDEPTH").disabled = !bUseOgl;
	document.all("CHK_DBLBUF").disabled = !bUseOgl;
	document.all("TXT_BG_R").disabled = !bUseOgl;
	document.all("TXT_BG_G").disabled = !bUseOgl;
	document.all("TXT_BG_B").disabled = !bUseOgl;
}


//-->
		</script>
	</HEAD>
	<BODY onkeypress="OnPress();" onkeydown="OnKey();" bottomMargin="0" bgColor="buttonface" leftMargin="0" topMargin="0" onload="InitDocument(document);" rightMargin="0">
		<TABLE class="ONE" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
			<COLGROUP>
				<COL width="100%">
				<!--OPEN OF INTRODUCTORY INFORMATION TABLE//-->
				<TR vAlign="top">
					<TD width="100%" colSpan="2" height="79">
						<TABLE class="TWO" cellSpacing="0" cellPadding="0" border="0">
							<COLGROUP>
								<COL width="12">
								<COL>
								<COL width="12">
								<TR>
									<TD vAlign="top" width="12" height="12">&nbsp;
									</TD>
									<TD vAlign="top" height="12">&nbsp;
									</TD>
									<TD vAlign="top" width="12" height="12">&nbsp;
									</TD>
									<TD class="IMAGE" vAlign="bottom" width="110" rowSpan="2">
										<DIV class="SMALLA" id="Layer0"><IMG class="SMALLEST" height="63" alt="" src="../../Images/OGLWiz7.gif" width="63" border="0">
										</DIV>
									</TD>
									<TD vAlign="top" width="6" height="12" rowSpan="2">&nbsp;
									</TD>
								</TR>
								<TR>
									<TD vAlign="top" width="12" height="65">&nbsp;
									</TD>
									<TD vAlign="top" height="65">
										<H4 class="HEAD" id="HEAD">OpenGL Win32 Application</H4>
										<P class="SUBHEAD" id="SUBHEAD">This Appwizard will create an OpenGL application 
											template suitable for demos and simple games.</P>
									</TD>
									<TD vAlign="top" width="12" height="65">&nbsp;
									</TD>
								</TR>
								<TR>
									<TD class="RULE" vAlign="top" colSpan="5" height="2">
										<TABLE height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR vAlign="top">
												<TD width="100%" bgColor="buttonshadow" height="1"><IMG height="1" alt="" src="../../Images/spacer.gif" width="1"></TD>
												<TD width="1" bgColor="window" height="1"><IMG height="1" alt="" src="../../Images/spacer.gif" width="1"></TD>
											</TR>
										</TABLE>
									</TD>
								</TR>
						</TABLE>
					</TD>
				</TR>
				<!--CLOSE OF INTRODUCTORY INFORMATION TABLE//-->
				<!--OPEN OF NAVIGATION, CONTENT, AND BUTTON TABLES//-->
				<TR vAlign="top">
					<TD vAlign="top" height="100%">
						<!--OPEN OF CONTENT AND BUTTON TABLE//-->
						<TABLE class="ONE" cellSpacing="0" cellPadding="0" border="0">
							<COLGROUP>
								<COL width="100%">
								<TR vAlign="top">
									<TD height="100%">
										<!--OPEN OF CONTENT//-->
										<TABLE language="javascript" id="TABLE3" cellSpacing="0" cellPadding="0" border="0">
											<tr>
												<td>&nbsp;</td>
											</tr>
											<TR>
												<TD width="12">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_MENU" accessKey="M" type="checkbox" CHECKED language="javascript" onclick="return UpdateCmd()">&nbsp;Menu</TD>
												<TD vAlign="center">
													<P align="right">Window mode:</P>
												</TD>
												<TD vAlign="center" align="left">&nbsp;<SELECT language="javascript" id="LST_WINMODE" name="LST_WINMODE" style="WIDTH: 118px" onclick="return UpdateCmd()">
														<OPTION value="WM_WINDOW" selected>Window</OPTION>
														<OPTION value="WM_FULL">Fullscreen</OPTION>
														<OPTION value="WM_ASK">Ask</OPTION>
													</SELECT></TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_ACCEL" accessKey="T" type="checkbox" onclick="return UpdateCmd()">&nbsp;Keyboard&nbsp;accelerator</TD>
												<TD vAlign="center">
													<P align="right">Color&nbsp;depth:</P>
												</TD>
												<TD vAlign="center" align="left">&nbsp;<SELECT id="LST_COLORDEPTH" style="WIDTH: 118px" onclick="return UpdateCmd()">
														<OPTION value="8">8 bits</OPTION>
														<OPTION value="16">16 bits</OPTION>
														<OPTION value="24" selected>24 bits</OPTION>
														<OPTION value="32">32 bits</OPTION>
													</SELECT></TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_ABOUT" accessKey="A" type="checkbox" onclick="return UpdateCmd()">&nbsp;About&nbsp;box</TD>
												<TD vAlign="center">
													<P align="right">Z buffer depth:</P>
												</TD>
												<TD vAlign="center">&nbsp;<SELECT id="LST_ZDEPTH" style="WIDTH: 118px" onclick="return UpdateCmd()">
														<OPTION value="8">8 bits</OPTION>
														<OPTION value="16" selected>16 bits</OPTION>
														<OPTION value="24">24 bits</OPTION>
														<OPTION value="32">32 bits</OPTION>
													</SELECT></TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_FPS" accessKey="F" type="checkbox" onclick="return UpdateCmd()">&nbsp;Show 
													FPS in caption</TD>
												<TD vAlign="center">
													<P align="right">&nbsp;Background color (RGB):</P>
												</TD>
												<TD vAlign="center">&nbsp;<INPUT id="TXT_BG_R" style="WIDTH: 37px; HEIGHT: 22px" type="text" size="1" value="0.0f">
													<INPUT id="TXT_BG_G" style="WIDTH: 37px; HEIGHT: 22px" type="text" size="1" value="0.0f">
													<INPUT id="TXT_BG_B" style="WIDTH: 37px; HEIGHT: 22px" type="text" size="1" value="0.0f"></TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_OPENGL" CHECKED accessKey="K" type="checkbox" onclick="return UpdateCmd()">&nbsp;Use 
													OpenGL</TD>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"></TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_SAMPLE" CHECKED accessKey="K" type="checkbox" onclick="return UpdateCmd()">&nbsp;Sample 
													code (spinning cube)</TD>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center">													</TD>
											</TR>
											<TR>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center"><INPUT class="CheckBox" id="CHK_DBLBUF" CHECKED accessKey="K" type="checkbox" onclick="return UpdateCmd()">&nbsp;Double 
													buffering</TD>
												<TD vAlign="center">&nbsp;</TD>
												<TD vAlign="center">&nbsp;</TD>
											</TR>
										</TABLE>
										<!--CLOSE OF CONTENT//--></TD>
								</TR>
								<TR vAlign="bottom">
									<TD height="48">
										<!--OPEN OF BUTTON HTML//-->
										<TABLE height="48" cellSpacing="0" cellPadding="0" border="0">
											<COLGROUP>
												<COL width="12">
												<COL>
												<COL width="75">
												<COL width="4">
												<COL width="75">
												<COL width="4">
												<COL width="75">
												<COL width="12">
												<TR>
													<TD class="RULE" vAlign="top" colSpan="8" height="2">
														<TABLE height="1" cellSpacing="0" cellPadding="0" width="100%" border="0">
															<TR vAlign="top">
																<TD width="100%" bgColor="buttonshadow" height="1"><IMG height="1" alt="" src="../../Images/spacer.gif" width="1"></TD>
																<TD width="1" bgColor="window" height="1"><IMG height="1" alt="" src="../../Images/spacer.gif" width="1"></TD>
															</TR>
														</TABLE>
													</TD>
												</TR>
												<TR>
													<TD vAlign="top" colSpan="8" height="11">&nbsp;
													</TD>
												</TR>
												<TR>
													<TD vAlign="center" width="12" height="23">&nbsp;
													</TD>
													<TD vAlign="top" height="23">&nbsp;
													</TD>
													<TD vAlign="center" width="75" height="23"><BUTTON class="BUTTONS" id="FinishBtn" accessKey="F" onclick="OnFinish(document);" type="button"><U>F</U>inish</BUTTON>
													</TD>
													<TD vAlign="center" width="4" height="23">&nbsp;
													</TD>
													<TD vAlign="center" width="75" height="23"><BUTTON class="BUTTONS" id="CancelBtn" accessKey="C" onclick="window.external.Finish(document, 'cancel');" type="button"><U>C</U>ancel</BUTTON>
													</TD>
													<TD vAlign="center" width="4" height="23">&nbsp;
													</TD>
													<TD vAlign="center" width="75" height="23"><BUTTON class="BUTTONS" id="HelpBtn" accessKey="H" onclick="window.external.OnHelp('vc.appwiz.custom.overview');" type="button"><U>H</U>elp</BUTTON>
													</TD>
													<TD vAlign="center" width="12" height="23">&nbsp;
													</TD>
												</TR>
												<TR>
													<TD VALIGN="top" HEIGHT="12" COLSPAN="8">
														&nbsp;
													</TD>
												</TR>
										</TABLE>
										<!--CLOSE OF BUTTON HTML//--></TD>
								</TR>
						</TABLE>
						<!--CLOSE OF NAVIGATION, CONTENT, AND BUTTON TABLES//--></TD>
				</TR>
		</TABLE>
		<SCRIPT language="JSCRIPT">


// This is an example of a function which initializes the page
//
function InitDocument(document)
{
	setDirection();
	
	if (window.external.FindSymbol('DOCUMENT_FIRST_LOAD'))
	{
		// This function sets the default symbols based 
		// on the values specified in the SYMBOL tags above
		//
		window.external.SetDefaults(document);
	}

	// Load the document and initialize the controls 
	// with the appropriate symbol values
	//
	window.external.Load(document);
	
	UpdateCmd();
}

// If the wizard has more than 1 page, this 
// function will browse to the page specified
//
function Next(document, linkto)
{
	window.external.Next(document, linkto);
}

// This is an example of a function which
// gets called when the user clicks on 'Finish'
//
function OnFinish(document)
{
	OnWizFinish(document);
}
		</SCRIPT>
		<SCRIPT language="JSCRIPT" id="INCLUDE_SCRIPT"></SCRIPT>
		<SCRIPT language="JSCRIPT" id="INCLUDE_COMMON"></SCRIPT>
		<!-- 
Common.js is a script file which contains the helper functions 
used by the wizards.  Include this line if you want to
call these functions from your html scripts.
//-->
		<SCRIPT>
	var strPath = window.external.FindSymbol("PRODUCT_INSTALLATION_DIR");
	strPath += "VCWizards/";
	strPath += window.external.GetHostLocale();
	var strScriptPath = strPath + "/Script.js";
	var strCommonPath = strPath + "/Common.js";
	document.scripts("INCLUDE_SCRIPT").src = strScriptPath;
	document.scripts("INCLUDE_COMMON").src = strCommonPath;
		</SCRIPT>
	</BODY>
</HTML>

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

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