1
0
forked from 0ad/0ad

added precompiled.h everywhere

This was SVN commit r392.
This commit is contained in:
janwas 2004-06-03 18:38:14 +00:00
parent 5747fe33b0
commit c7a84e84be
82 changed files with 192 additions and 64 deletions

View File

@ -10,6 +10,8 @@
// //
//*********************************************************** //***********************************************************
#include "precompiled.h"
#include "Camera.h" #include "Camera.h"
CCamera::CCamera () CCamera::CCamera ()

View File

@ -13,6 +13,8 @@
// //
//*********************************************************** //***********************************************************
#include "precompiled.h"
#include "Frustum.h" #include "Frustum.h"
CFrustum::CFrustum () CFrustum::CFrustum ()

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "HFTracer.h" #include "HFTracer.h"
#include "Terrain.h" #include "Terrain.h"
#include "Bound.h" #include "Bound.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "MiniPatch.h" #include "MiniPatch.h"
#include "Patch.h" #include "Patch.h"

View File

@ -6,6 +6,8 @@
// //
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "Model.h" #include "Model.h"
#include "Quaternion.h" #include "Quaternion.h"
#include "Bound.h" #include "Bound.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "ModelDef.h" #include "ModelDef.h"
#include "FilePacker.h" #include "FilePacker.h"
#include "FileUnpacker.h" #include "FileUnpacker.h"

View File

@ -1,15 +1,15 @@
#include "precompiled.h"
#include "ObjectEntry.h" #include "ObjectEntry.h"
#include "ObjectManager.h" #include "ObjectManager.h"
#include "Model.h" #include "Model.h"
#include "ModelDef.h" #include "ModelDef.h"
#include "CLogger.h"
#include "UnitManager.h" #include "UnitManager.h"
#include "XML.h" #include "XML.h"
#ifdef _MSC_VER
#pragma comment(lib, "xerces-c_2.lib")
#endif
// automatically use namespace .. // automatically use namespace ..
XERCES_CPP_NAMESPACE_USE XERCES_CPP_NAMESPACE_USE

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "ObjectManager.h" #include "ObjectManager.h"
#include <algorithm> #include <algorithm>
#include "CLogger.h" #include "CLogger.h"

View File

@ -24,6 +24,8 @@
| |
==================================================================*/ ==================================================================*/
#include "precompiled.h"
#include "Particle.h" #include "Particle.h"
#include "timer.h" #include "timer.h"
#include "ogl.h" #include "ogl.h"

View File

@ -26,6 +26,8 @@
| |
==================================================================*/ ==================================================================*/
#include "precompiled.h"
#include "ParticleEmitter.h" #include "ParticleEmitter.h"
#include "timer.h" #include "timer.h"
#include "ogl.h" #include "ogl.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "Patch.h" #include "Patch.h"
#include "Terrain.h" #include "Terrain.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "SkeletonAnimDef.h" #include "SkeletonAnimDef.h"
#include "FilePacker.h" #include "FilePacker.h"
#include "FileUnpacker.h" #include "FileUnpacker.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "res/res.h" #include "res/res.h"
#include "Model.h" #include "Model.h"
#include "CLogger.h" #include "CLogger.h"

View File

@ -24,6 +24,8 @@
| |
==================================================================*/ ==================================================================*/
#include "precompiled.h"
#include "Sprite.h" #include "Sprite.h"
#include "Renderer.h" #include "Renderer.h"
#include "ogl.h" #include "ogl.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "res/tex.h" #include "res/tex.h"
#include "res/mem.h" #include "res/mem.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include <algorithm> #include <algorithm>
#include "TextureManager.h" #include "TextureManager.h"

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "res/res.h" #include "res/res.h"
#include "Model.h" #include "Model.h"
#include "UnitManager.h" #include "UnitManager.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "CButton.h" #include "CButton.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "CCheckBox.h" #include "CCheckBox.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
// Types - when including them into the engine. // Types - when including them into the engine.
@ -34,9 +34,6 @@ gee@pyro.nu
XERCES_CPP_NAMESPACE_USE XERCES_CPP_NAMESPACE_USE
using namespace std; using namespace std;
#ifdef _MSC_VER
#pragma comment(lib, "xerces-c_2.lib")
#endif
extern int g_xres, g_yres; extern int g_xres, g_yres;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "CRadioButton.h" #include "CRadioButton.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "CText.h" #include "CText.h"

View File

@ -4,8 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
///// janwas: remove stdafx.h completely? #include "precompiled.h"
//#include "stdafx.h"
#include "GUI.h" #include "GUI.h"

View File

@ -4,6 +4,8 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
#include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "Parser.h" #include "Parser.h"
#include "OverlayText.h" #include "OverlayText.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
#include "Parser.h" #include "Parser.h"

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx." #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
///// janwas: again, including etiquette? ///// janwas: again, including etiquette?

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@ by Gustav Larsson
gee@pyro.nu gee@pyro.nu
*/ */
//#include "stdafx.h" #include "precompiled.h"
#include "GUI.h" #include "GUI.h"
using namespace std; using namespace std;

View File

@ -1,3 +1,11 @@
//#include <GL/glext.h>
//#include <GL/wglext.h>
typedef void* HDC;
typedef void* HGLRC;
typedef void* HPBUFFERARB;
// were these defined as real functions in gl.h already? // were these defined as real functions in gl.h already?
#ifndef REAL_GL_1_2 #ifndef REAL_GL_1_2
@ -41,7 +49,23 @@ FUNC(bool, glUnmapBufferARB, (int target))
FUNC(void, glGetBufferParameterivARB, (int target, int pname, int* params)) FUNC(void, glGetBufferParameterivARB, (int target, int pname, int* params))
FUNC(void, glGetBufferPointervARB, (int target, int pname, void** params)) FUNC(void, glGetBufferPointervARB, (int target, int pname, void** params))
// ARB_pbuffer
FUNC(HPBUFFERARB, wglCreatePbufferARB, (HDC, int, int, int, const int*))
FUNC(HDC, wglGetPbufferDCARB, (HPBUFFERARB))
FUNC(int, wglReleasePbufferDCARB, (HPBUFFERARB, HDC))
FUNC(int, wglDestroyPbufferARB, (HPBUFFERARB))
FUNC(int, wglQueryPbufferARB, (HPBUFFERARB, int, int*))
// ARB_pixel_format
FUNC(int, wglGetPixelFormatAttribivARB, (HDC, int, int, unsigned int, const int*, int*))
FUNC(int, wglGetPixelFormatAttribfvARB, (HDC, int, int, unsigned int, const int*, float*))
FUNC(int, wglChoosePixelFormatARB, (HDC, const int *, const float*, unsigned int, int*, unsigned int*))
FUNC(void, glCompressedTexImage2DARB, (int, int, int, unsigned int, unsigned int, int, unsigned int, const void*)) // ARB_texture_compression
FUNC(void, glCompressedTexSubImage2DARB, (int, int, int, int, unsigned int, int, int, unsigned int, const void*)) FUNC(void, glCompressedTexImage3DARB, (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*))
FUNC(void, glCompressedTexImage2DARB, (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid*))
FUNC(void, glCompressedTexImage1DARB, (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid*))
FUNC(void, glCompressedTexSubImage3DARB, (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*))
FUNC(void, glCompressedTexSubImage2DARB, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid*))
FUNC(void, glCompressedTexSubImage1DARB, (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid*))
FUNC(void, glGetCompressedTexImageARB, (GLenum, GLint, GLvoid*))

View File

@ -5,26 +5,15 @@
extern "C" { extern "C" {
#endif #endif
#ifdef _WIN32
#include "sysdep/win/wgl.h"
#endif
// //
// OpenGL header // OpenGL header
// //
#ifdef _WIN32
#ifndef WINGDIAPI
#define WINGDIAPI __declspec(dllimport)
#endif
#ifndef CALLBACK
#define CALLBACK __stdcall
#endif
#ifndef APIENTRY
#define APIENTRY __stdcall
#endif
typedef unsigned short wchar_t; // for glu.h
#endif // #ifndef _WIN32
#ifdef __APPLE__ #ifdef __APPLE__
# include <OpenGL/gl.h> # include <OpenGL/gl.h>
# include <OpenGL/glu.h> # include <OpenGL/glu.h>
@ -52,6 +41,7 @@ typedef unsigned short wchar_t; // for glu.h
# include <OpenGL/glext.h> # include <OpenGL/glext.h>
#else #else
# include <GL/glext.h> # include <GL/glext.h>
# include <GL/wglext.h>
#endif #endif
#define GL_TEXTURE_IMAGE_SIZE_ARB 0x86A0 #define GL_TEXTURE_IMAGE_SIZE_ARB 0x86A0

View File

@ -6,6 +6,8 @@
* Contents: implementation of sound fx resource functions * Contents: implementation of sound fx resource functions
*/ */
#include "precompiled.h"
#include <stdio.h> #include <stdio.h>
#include <fmod.h> #include <fmod.h>

View File

@ -134,7 +134,7 @@ static int path_validate(const uint line, const char* const path)
if(last_was_dot) if(last_was_dot)
{ {
msg = "contains \"..\""; msg = "contains \"..\"";
goto fail; /// goto fail;
} }
last_was_dot = true; last_was_dot = true;
} }
@ -145,7 +145,7 @@ static int path_validate(const uint line, const char* const path)
if(c == '\\' || c == ':') if(c == '\\' || c == ':')
{ {
msg = "contains OS-specific dir separator (e.g. '\\', ':')"; msg = "contains OS-specific dir separator (e.g. '\\', ':')";
goto fail; /// goto fail;
} }
// end of string, all is well. // end of string, all is well.

View File

@ -338,11 +338,11 @@ again:
// HACK: if _WIN32, the HRT makes its final implementation choice // HACK: if _WIN32, the HRT makes its final implementation choice
// in the first calibrate call where cpu_freq and cpu_caps are // in the first calibrate call where cpu_freq and cpu_caps are
// available. call it here (via get_time) to have that happen now, // available. call wtime_reset_impl here to have that happen now,
// so app code isn't surprised by a timer change, although the HRT // so app code isn't surprised by a timer change, although the HRT
// does try to keep the timer continuous. // does try to keep the timer continuous.
#ifdef _WIN32 #ifdef _WIN32
hrt_override_impl(HRT_DEFAULT, HRT_NONE); wtime_reset_impl();
#endif #endif
} }
// else: TSC not available, can't measure // else: TSC not available, can't measure

View File

@ -19,11 +19,6 @@
#include "lib.h" #include "lib.h"
#include "timer.h" #include "timer.h"
#include "sysdep/sysdep.h"
#ifdef _WIN32
#include "sysdep/win/hrt.h"
#endif
// wrapper over gettimeofday, instead of emulating it for Windows, // wrapper over gettimeofday, instead of emulating it for Windows,
@ -34,11 +29,7 @@ double get_time()
{ {
double t; double t;
#ifdef _WIN32 #ifdef HAVE_CLOCK_GETTIME
t = hrt_time();
#elif defined(HAVE_CLOCK_GETTIME)
static struct timespec start; static struct timespec start;
struct timespec ts; struct timespec ts;
@ -77,14 +68,7 @@ double get_time()
double timer_res() double timer_res()
{ {
#ifdef _WIN32 #ifdef HAVE_CLOCK_GETTIME
HRTImpl impl;
i64 nominal_freq;
hrt_query_impl(impl, nominal_freq);
return 1.0 / nominal_freq;
#elif defined(HAVE_CLOCK_GETTIME)
struct timespec res; struct timespec res;
clock_getres(CLOCK_REALTIME, &res); clock_getres(CLOCK_REALTIME, &res);

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include <cstdlib> #include <cstdlib>

View File

@ -6,6 +6,7 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
// necessary includes // necessary includes
#include <assert.h> #include <assert.h>

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#if 0 #if 0
// last modified Thursday, May 08, 2003 // last modified Thursday, May 08, 2003

View File

@ -9,6 +9,7 @@
// //
//*********************************************************** //***********************************************************
#include "precompiled.h"
#include "Matrix3D.h" #include "Matrix3D.h"
#include "Quaternion.h" #include "Quaternion.h"

View File

@ -11,6 +11,8 @@
// //
//*********************************************************** //***********************************************************
#include "precompiled.h"
#include "Plane.h" #include "Plane.h"
CPlane::CPlane () CPlane::CPlane ()

View File

@ -6,6 +6,8 @@
* *
************************************************************/ ************************************************************/
#include "precompiled.h"
#include "Quaternion.h" #include "Quaternion.h"
const float EPSILON=0.0001f; const float EPSILON=0.0001f;

View File

@ -9,6 +9,8 @@
// //
//*********************************************************** //***********************************************************
#include "precompiled.h"
#include "Vector3D.h" #include "Vector3D.h"
CVector3D::CVector3D (float x, float y, float z) CVector3D::CVector3D (float x, float y, float z)

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "CConsole.h" #include "CConsole.h"
#include "prometheus.h" #include "prometheus.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "CLogger.h" #include "CLogger.h"
#include "lib.h" #include "lib.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "CStr.h" #include "CStr.h"
#include "Network/Serialization.h" #include "Network/Serialization.h"
#include <cassert> #include <cassert>

View File

@ -3,6 +3,8 @@
// TODO: A few changes from VFS -> CFile usage if required. // TODO: A few changes from VFS -> CFile usage if required.
// TODO: Optimizations, when we've decided what needs to be done. // TODO: Optimizations, when we've decided what needs to be done.
#include "precompiled.h"
#if 0 #if 0
#include "Config.h" #include "Config.h"

View File

@ -1,5 +1,7 @@
// last modified Friday, May 09, 2003 // last modified Friday, May 09, 2003
#include "precompiled.h"
#include "Encryption.h" #include "Encryption.h"
//-------------------------------------------------------------------- //--------------------------------------------------------------------

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "FilePacker.h" #include "FilePacker.h"
#include <stdio.h> #include <stdio.h>

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "FileUnpacker.h" #include "FileUnpacker.h"
#include <stdio.h> #include <stdio.h>

View File

@ -1,5 +1,7 @@
// last modified Thursday, May 08, 2003 // last modified Thursday, May 08, 2003
#include "precompiled.h"
#if 0 #if 0
#include "LogFile.h" #include "LogFile.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "NPFont.h" #include "NPFont.h"
#include "Renderer.h" #include "Renderer.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "NPFontManager.h" #include "NPFontManager.h"
#include "NPFont.h" #include "NPFont.h"

View File

@ -4,6 +4,8 @@ by Rich Cross
rich@0ad.wildfiregames.com rich@0ad.wildfiregames.com
*/ */
#include "precompiled.h"
#include "Overlay.h" #include "Overlay.h"
COverlay::COverlay() COverlay::COverlay()

View File

@ -4,6 +4,8 @@ by Rich Cross
rich@0ad.wildfiregames.com rich@0ad.wildfiregames.com
*/ */
#include "precompiled.h"
#include "OverlayText.h" #include "OverlayText.h"
#include "NPFont.h" #include "NPFont.h"
#include "NPFontManager.h" #include "NPFontManager.h"

View File

@ -1,5 +1,7 @@
// last modified Thursday, May 08, 2003 // last modified Thursday, May 08, 2003
#include "precompiled.h"
#include "Parser.h" #include "Parser.h"
#pragma warning(disable:4786) #pragma warning(disable:4786)

View File

@ -1,5 +1,6 @@
#include "Prometheus.h" #include "precompiled.h"
#include "Prometheus.h"
DEFINE_ERROR(PS_OK, "OK"); DEFINE_ERROR(PS_OK, "OK");
DEFINE_ERROR(PS_FAIL, "Fail"); DEFINE_ERROR(PS_FAIL, "Fail");

View File

@ -1,9 +1,16 @@
#include "precompiled.h"
#include "XML.h" #include "XML.h"
#include "CStr.h" #include "CStr.h"
#include "CLogger.h" #include "CLogger.h"
#include "res/vfs.h" #include "res/vfs.h"
#ifdef _MSC_VER
#pragma comment(lib, "xerces-c_2.lib")
#endif
XERCES_CPP_NAMESPACE_USE XERCES_CPP_NAMESPACE_USE
CStr XMLTranscode(const XMLCh* xmltext) CStr XMLTranscode(const XMLCh* xmltext)

View File

@ -7,6 +7,9 @@ gee@pyro.nu
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Includes // Includes
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
#include "precompiled.h"
#include <xercesc/sax/SAXParseException.hpp> #include <xercesc/sax/SAXParseException.hpp>
#include "XercesErrorHandler.h" #include "XercesErrorHandler.h"
#include <iostream> #include <iostream>

View File

@ -6,6 +6,8 @@
// //
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include "AlphaMapCalculator.h" #include "AlphaMapCalculator.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include <assert.h> #include <assert.h>
#include <algorithm> #include <algorithm>
#include "res/tex.h" #include "res/tex.h"

View File

@ -1,14 +1,24 @@
#include "precompiled.h"
#include "pbuffer.h" #include "pbuffer.h"
#ifdef _WIN32 #ifdef _WIN32
// janwas: wgl-specific crap is in sysdep/win/wgl.h;
// function pointers are imported automagically
/*
#include <windows.h> #include <windows.h>
#include <gl/gl.h> #include <gl/gl.h>
#include <gl/glext.h> #include <gl/glext.h>
#include <gl/wglext.h> */
#include "ogl.h"
static HDC lastDC; static HDC lastDC;
static HGLRC lastGLRC; static HGLRC lastGLRC;
/*
static bool GotExts=false; static bool GotExts=false;
static PFNWGLCREATEPBUFFERARBPROC wglCreatePbufferARB=0; static PFNWGLCREATEPBUFFERARBPROC wglCreatePbufferARB=0;
static PFNWGLGETPBUFFERDCARBPROC wglGetPbufferDCARB=0; static PFNWGLGETPBUFFERDCARBPROC wglGetPbufferDCARB=0;
@ -18,6 +28,7 @@ static PFNWGLQUERYPBUFFERARBPROC wglQueryPbufferARB=0;
static PFNWGLGETPIXELFORMATATTRIBIVARBPROC wglGetPixelFormatAttribivARB=0; static PFNWGLGETPIXELFORMATATTRIBIVARBPROC wglGetPixelFormatAttribivARB=0;
static PFNWGLGETPIXELFORMATATTRIBFVARBPROC wglGetPixelFormatAttribfvARB=0; static PFNWGLGETPIXELFORMATATTRIBFVARBPROC wglGetPixelFormatAttribfvARB=0;
static PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB=0; static PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB=0;
*/
class PBuffer class PBuffer
{ {
@ -75,6 +86,7 @@ void PBuffer::close()
} }
} }
/*
static void GetExts() static void GetExts()
{ {
wglCreatePbufferARB=(PFNWGLCREATEPBUFFERARBPROC) wglGetProcAddress("wglCreatePbufferARB"); wglCreatePbufferARB=(PFNWGLCREATEPBUFFERARBPROC) wglGetProcAddress("wglCreatePbufferARB");
@ -87,15 +99,18 @@ static void GetExts()
wglChoosePixelFormatARB=(PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress("wglChoosePixelFormatARB"); wglChoosePixelFormatARB=(PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress("wglChoosePixelFormatARB");
GotExts=true; GotExts=true;
} }
*/
// This function actually does the creation of the p-buffer. // This function actually does the creation of the p-buffer.
// It can only be called once a window has already been created. // It can only be called once a window has already been created.
bool PBuffer::init(int width,int height,int doublebuffer,int colorbits,int depthbits,int stencilbits, bool PBuffer::init(int width,int height,int doublebuffer,int colorbits,int depthbits,int stencilbits,
int rendertextureformat,int rendertexturetarget,int havemipmaps) int rendertextureformat,int rendertexturetarget,int havemipmaps)
{ {
/*
if (!GotExts) { if (!GotExts) {
GetExts(); GetExts();
} }
*/
// store requested parameters // store requested parameters
_width=width; _width=width;

View File

@ -12,6 +12,8 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#include "precompiled.h"
#include <map> #include <map>
#include <set> #include <set>
#include <algorithm> #include <algorithm>

View File

@ -9,6 +9,8 @@
// lighting // lighting
//---------------------------------------------------------------- //----------------------------------------------------------------
#include "precompiled.h"
#include "SHCoeffs.h" #include "SHCoeffs.h"
CSHCoeffs::CSHCoeffs() CSHCoeffs::CSHCoeffs()

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include <algorithm> #include <algorithm>
#include "Renderer.h" #include "Renderer.h"
#include "TransparencyRenderer.h" #include "TransparencyRenderer.h"

View File

@ -1,3 +1,4 @@
#include "precompiled.h"
#include "ScriptingHost.h" #include "ScriptingHost.h"

View File

@ -1,3 +1,4 @@
#include "precompiled.h"
#include "ScriptGlue.h" #include "ScriptGlue.h"

View File

@ -1,3 +1,4 @@
#include "precompiled.h"
#include "ScriptingHost.h" #include "ScriptingHost.h"
#include "ScriptGlue.h" #include "ScriptGlue.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "BaseEntity.h" #include "BaseEntity.h"
#include "ObjectManager.h" #include "ObjectManager.h"
#include "CStr.h" #include "CStr.h"

View File

@ -1,5 +1,7 @@
// Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com) // Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com)
#include "precompiled.h"
#include "BaseEntityCollection.h" #include "BaseEntityCollection.h"
#include "ObjectManager.h" #include "ObjectManager.h"
#include "Model.h" #include "Model.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "BoundingObjects.h" #include "BoundingObjects.h"
#include "ogl.h" #include "ogl.h"
#include "MathUtil.h" #include "MathUtil.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "Collision.h" #include "Collision.h"
#include "EntityManager.h" #include "EntityManager.h"

View File

@ -1,5 +1,7 @@
// Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com) // Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com)
#include "precompiled.h"
#include "Entity.h" #include "Entity.h"
#include "EntityManager.h" #include "EntityManager.h"
#include "BaseEntityCollection.h" #include "BaseEntityCollection.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "EntityManager.h" #include "EntityManager.h"
#include "BaseEntityCollection.h" #include "BaseEntityCollection.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "EntityProperties.h" #include "EntityProperties.h"
#include <cassert> #include <cassert>

View File

@ -1,5 +1,7 @@
// Entity state-machine processing code. // Entity state-machine processing code.
#include "precompiled.h"
#include "Entity.h" #include "Entity.h"
#include "Model.h" #include "Model.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "PathfindEngine.h" #include "PathfindEngine.h"
#include "PathfindSparse.h" #include "PathfindSparse.h"

View File

@ -1,3 +1,5 @@
#include "precompiled.h"
#include "PathfindSparse.h" #include "PathfindSparse.h"
sparsePathTree::sparsePathTree( const CVector2D& _from, const CVector2D& _to, HEntity _entity, CBoundingObject* _destinationCollisionObject ) sparsePathTree::sparsePathTree( const CVector2D& _from, const CVector2D& _to, HEntity _entity, CBoundingObject* _destinationCollisionObject )

View File

@ -1,3 +1,4 @@
#include "precompiled.h"
#include "Matrix3D.h" #include "Matrix3D.h"
#include "Renderer.h" #include "Renderer.h"