added precompiled.h everywhere
This was SVN commit r392.
This commit is contained in:
parent
5747fe33b0
commit
c7a84e84be
@ -10,6 +10,8 @@
|
||||
//
|
||||
//***********************************************************
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Camera.h"
|
||||
|
||||
CCamera::CCamera ()
|
||||
|
@ -13,6 +13,8 @@
|
||||
//
|
||||
//***********************************************************
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Frustum.h"
|
||||
|
||||
CFrustum::CFrustum ()
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "HFTracer.h"
|
||||
#include "Terrain.h"
|
||||
#include "Bound.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "MiniPatch.h"
|
||||
#include "Patch.h"
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Model.h"
|
||||
#include "Quaternion.h"
|
||||
#include "Bound.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ModelDef.h"
|
||||
#include "FilePacker.h"
|
||||
#include "FileUnpacker.h"
|
||||
|
@ -1,15 +1,15 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ObjectEntry.h"
|
||||
#include "ObjectManager.h"
|
||||
#include "Model.h"
|
||||
#include "ModelDef.h"
|
||||
#include "CLogger.h"
|
||||
|
||||
#include "UnitManager.h"
|
||||
|
||||
#include "XML.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "xerces-c_2.lib")
|
||||
#endif
|
||||
|
||||
// automatically use namespace ..
|
||||
XERCES_CPP_NAMESPACE_USE
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ObjectManager.h"
|
||||
#include <algorithm>
|
||||
#include "CLogger.h"
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
|
||||
==================================================================*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Particle.h"
|
||||
#include "timer.h"
|
||||
#include "ogl.h"
|
||||
|
@ -26,6 +26,8 @@
|
||||
|
|
||||
==================================================================*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ParticleEmitter.h"
|
||||
#include "timer.h"
|
||||
#include "ogl.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Patch.h"
|
||||
#include "Terrain.h"
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "SkeletonAnimDef.h"
|
||||
#include "FilePacker.h"
|
||||
#include "FileUnpacker.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "res/res.h"
|
||||
#include "Model.h"
|
||||
#include "CLogger.h"
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
|
||||
==================================================================*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Sprite.h"
|
||||
#include "Renderer.h"
|
||||
#include "ogl.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "res/tex.h"
|
||||
#include "res/mem.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "TextureManager.h"
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "res/res.h"
|
||||
#include "Model.h"
|
||||
#include "UnitManager.h"
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
#include "CButton.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
#include "CCheckBox.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
// Types - when including them into the engine.
|
||||
@ -34,9 +34,6 @@ gee@pyro.nu
|
||||
XERCES_CPP_NAMESPACE_USE
|
||||
using namespace std;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "xerces-c_2.lib")
|
||||
#endif
|
||||
|
||||
extern int g_xres, g_yres;
|
||||
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
#include "CRadioButton.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
#include "CText.h"
|
||||
|
||||
|
@ -4,8 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
///// janwas: remove stdafx.h completely?
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
|
||||
|
@ -4,6 +4,8 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "GUI.h"
|
||||
#include "Parser.h"
|
||||
#include "OverlayText.h"
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
#include "Parser.h"
|
||||
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx."
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
///// janwas: again, including etiquette?
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -4,7 +4,7 @@ by Gustav Larsson
|
||||
gee@pyro.nu
|
||||
*/
|
||||
|
||||
//#include "stdafx.h"
|
||||
#include "precompiled.h"
|
||||
#include "GUI.h"
|
||||
|
||||
using namespace std;
|
||||
|
@ -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?
|
||||
|
||||
#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, 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*))
|
||||
FUNC(void, glCompressedTexSubImage2DARB, (int, int, int, int, unsigned int, int, int, unsigned int, const void*))
|
||||
// ARB_texture_compression
|
||||
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*))
|
||||
|
@ -5,26 +5,15 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "sysdep/win/wgl.h"
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// 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__
|
||||
# include <OpenGL/gl.h>
|
||||
# include <OpenGL/glu.h>
|
||||
@ -52,6 +41,7 @@ typedef unsigned short wchar_t; // for glu.h
|
||||
# include <OpenGL/glext.h>
|
||||
#else
|
||||
# include <GL/glext.h>
|
||||
# include <GL/wglext.h>
|
||||
#endif
|
||||
|
||||
#define GL_TEXTURE_IMAGE_SIZE_ARB 0x86A0
|
||||
|
@ -6,6 +6,8 @@
|
||||
* Contents: implementation of sound fx resource functions
|
||||
*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <fmod.h>
|
||||
|
||||
|
@ -134,7 +134,7 @@ static int path_validate(const uint line, const char* const path)
|
||||
if(last_was_dot)
|
||||
{
|
||||
msg = "contains \"..\"";
|
||||
goto fail;
|
||||
/// goto fail;
|
||||
}
|
||||
last_was_dot = true;
|
||||
}
|
||||
@ -145,7 +145,7 @@ static int path_validate(const uint line, const char* const path)
|
||||
if(c == '\\' || c == ':')
|
||||
{
|
||||
msg = "contains OS-specific dir separator (e.g. '\\', ':')";
|
||||
goto fail;
|
||||
/// goto fail;
|
||||
}
|
||||
|
||||
// end of string, all is well.
|
||||
|
@ -338,11 +338,11 @@ again:
|
||||
|
||||
// HACK: if _WIN32, the HRT makes its final implementation choice
|
||||
// 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
|
||||
// does try to keep the timer continuous.
|
||||
#ifdef _WIN32
|
||||
hrt_override_impl(HRT_DEFAULT, HRT_NONE);
|
||||
wtime_reset_impl();
|
||||
#endif
|
||||
}
|
||||
// else: TSC not available, can't measure
|
||||
|
@ -19,11 +19,6 @@
|
||||
|
||||
#include "lib.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,
|
||||
@ -34,11 +29,7 @@ double get_time()
|
||||
{
|
||||
double t;
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
t = hrt_time();
|
||||
|
||||
#elif defined(HAVE_CLOCK_GETTIME)
|
||||
#ifdef HAVE_CLOCK_GETTIME
|
||||
|
||||
static struct timespec start;
|
||||
struct timespec ts;
|
||||
@ -77,14 +68,7 @@ double get_time()
|
||||
|
||||
double timer_res()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
||||
HRTImpl impl;
|
||||
i64 nominal_freq;
|
||||
hrt_query_impl(impl, nominal_freq);
|
||||
return 1.0 / nominal_freq;
|
||||
|
||||
#elif defined(HAVE_CLOCK_GETTIME)
|
||||
#ifdef HAVE_CLOCK_GETTIME
|
||||
|
||||
struct timespec res;
|
||||
clock_getres(CLOCK_REALTIME, &res);
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
|
@ -6,6 +6,7 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
// necessary includes
|
||||
#include <assert.h>
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#if 0
|
||||
// last modified Thursday, May 08, 2003
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
//
|
||||
//***********************************************************
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Matrix3D.h"
|
||||
#include "Quaternion.h"
|
||||
|
@ -11,6 +11,8 @@
|
||||
//
|
||||
//***********************************************************
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Plane.h"
|
||||
|
||||
CPlane::CPlane ()
|
||||
|
@ -6,6 +6,8 @@
|
||||
*
|
||||
************************************************************/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Quaternion.h"
|
||||
|
||||
const float EPSILON=0.0001f;
|
||||
|
@ -9,6 +9,8 @@
|
||||
//
|
||||
//***********************************************************
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Vector3D.h"
|
||||
|
||||
CVector3D::CVector3D (float x, float y, float z)
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "CConsole.h"
|
||||
|
||||
#include "prometheus.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "CLogger.h"
|
||||
#include "lib.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "CStr.h"
|
||||
#include "Network/Serialization.h"
|
||||
#include <cassert>
|
||||
|
@ -3,6 +3,8 @@
|
||||
// TODO: A few changes from VFS -> CFile usage if required.
|
||||
// TODO: Optimizations, when we've decided what needs to be done.
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#if 0
|
||||
|
||||
#include "Config.h"
|
||||
|
@ -1,5 +1,7 @@
|
||||
// last modified Friday, May 09, 2003
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Encryption.h"
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "FilePacker.h"
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "FileUnpacker.h"
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
// last modified Thursday, May 08, 2003
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#if 0
|
||||
|
||||
#include "LogFile.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "NPFont.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "NPFontManager.h"
|
||||
#include "NPFont.h"
|
||||
|
||||
|
@ -4,6 +4,8 @@ by Rich Cross
|
||||
rich@0ad.wildfiregames.com
|
||||
*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Overlay.h"
|
||||
|
||||
COverlay::COverlay()
|
||||
|
@ -4,6 +4,8 @@ by Rich Cross
|
||||
rich@0ad.wildfiregames.com
|
||||
*/
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "OverlayText.h"
|
||||
#include "NPFont.h"
|
||||
#include "NPFontManager.h"
|
||||
|
@ -1,5 +1,7 @@
|
||||
// last modified Thursday, May 08, 2003
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Parser.h"
|
||||
|
||||
#pragma warning(disable:4786)
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "Prometheus.h"
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Prometheus.h"
|
||||
|
||||
DEFINE_ERROR(PS_OK, "OK");
|
||||
DEFINE_ERROR(PS_FAIL, "Fail");
|
||||
|
@ -1,9 +1,16 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "XML.h"
|
||||
#include "CStr.h"
|
||||
#include "CLogger.h"
|
||||
|
||||
#include "res/vfs.h"
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "xerces-c_2.lib")
|
||||
#endif
|
||||
|
||||
XERCES_CPP_NAMESPACE_USE
|
||||
|
||||
CStr XMLTranscode(const XMLCh* xmltext)
|
||||
|
@ -7,6 +7,9 @@ gee@pyro.nu
|
||||
// ---------------------------------------------------------------------------
|
||||
// Includes
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <xercesc/sax/SAXParseException.hpp>
|
||||
#include "XercesErrorHandler.h"
|
||||
#include <iostream>
|
||||
|
@ -6,6 +6,8 @@
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "AlphaMapCalculator.h"
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <algorithm>
|
||||
#include "res/tex.h"
|
||||
|
@ -1,14 +1,24 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "pbuffer.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
// janwas: wgl-specific crap is in sysdep/win/wgl.h;
|
||||
// function pointers are imported automagically
|
||||
|
||||
/*
|
||||
#include <windows.h>
|
||||
#include <gl/gl.h>
|
||||
#include <gl/glext.h>
|
||||
#include <gl/wglext.h>
|
||||
*/
|
||||
|
||||
#include "ogl.h"
|
||||
|
||||
static HDC lastDC;
|
||||
static HGLRC lastGLRC;
|
||||
|
||||
/*
|
||||
static bool GotExts=false;
|
||||
static PFNWGLCREATEPBUFFERARBPROC wglCreatePbufferARB=0;
|
||||
static PFNWGLGETPBUFFERDCARBPROC wglGetPbufferDCARB=0;
|
||||
@ -18,6 +28,7 @@ static PFNWGLQUERYPBUFFERARBPROC wglQueryPbufferARB=0;
|
||||
static PFNWGLGETPIXELFORMATATTRIBIVARBPROC wglGetPixelFormatAttribivARB=0;
|
||||
static PFNWGLGETPIXELFORMATATTRIBFVARBPROC wglGetPixelFormatAttribfvARB=0;
|
||||
static PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB=0;
|
||||
*/
|
||||
|
||||
class PBuffer
|
||||
{
|
||||
@ -75,6 +86,7 @@ void PBuffer::close()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
static void GetExts()
|
||||
{
|
||||
wglCreatePbufferARB=(PFNWGLCREATEPBUFFERARBPROC) wglGetProcAddress("wglCreatePbufferARB");
|
||||
@ -87,15 +99,18 @@ static void GetExts()
|
||||
wglChoosePixelFormatARB=(PFNWGLCHOOSEPIXELFORMATARBPROC) wglGetProcAddress("wglChoosePixelFormatARB");
|
||||
GotExts=true;
|
||||
}
|
||||
*/
|
||||
|
||||
// This function actually does the creation of the p-buffer.
|
||||
// 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,
|
||||
int rendertextureformat,int rendertexturetarget,int havemipmaps)
|
||||
{
|
||||
/*
|
||||
if (!GotExts) {
|
||||
GetExts();
|
||||
}
|
||||
*/
|
||||
|
||||
// store requested parameters
|
||||
_width=width;
|
||||
|
@ -12,6 +12,8 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <algorithm>
|
||||
|
@ -9,6 +9,8 @@
|
||||
// lighting
|
||||
//----------------------------------------------------------------
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "SHCoeffs.h"
|
||||
|
||||
CSHCoeffs::CSHCoeffs()
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include "Renderer.h"
|
||||
#include "TransparencyRenderer.h"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScriptingHost.h"
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScriptGlue.h"
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ScriptingHost.h"
|
||||
#include "ScriptGlue.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "BaseEntity.h"
|
||||
#include "ObjectManager.h"
|
||||
#include "CStr.h"
|
||||
|
@ -1,5 +1,7 @@
|
||||
// Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com)
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "BaseEntityCollection.h"
|
||||
#include "ObjectManager.h"
|
||||
#include "Model.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "BoundingObjects.h"
|
||||
#include "ogl.h"
|
||||
#include "MathUtil.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Collision.h"
|
||||
#include "EntityManager.h"
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
// Last modified: May 15 2004, Mark Thompson (mark@wildfiregames.com)
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Entity.h"
|
||||
#include "EntityManager.h"
|
||||
#include "BaseEntityCollection.h"
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "EntityManager.h"
|
||||
#include "BaseEntityCollection.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "EntityProperties.h"
|
||||
|
||||
#include <cassert>
|
||||
|
@ -1,5 +1,7 @@
|
||||
// Entity state-machine processing code.
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Entity.h"
|
||||
#include "Model.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "PathfindEngine.h"
|
||||
#include "PathfindSparse.h"
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "PathfindSparse.h"
|
||||
|
||||
sparsePathTree::sparsePathTree( const CVector2D& _from, const CVector2D& _to, HEntity _entity, CBoundingObject* _destinationCollisionObject )
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "Matrix3D.h"
|
||||
#include "Renderer.h"
|
||||
|
Loading…
Reference in New Issue
Block a user