uninclude opengl globally

master
Daniel Kolesa 2020-07-29 04:56:55 +02:00
parent 2deb5d2e4d
commit 7cb75077b7
6 changed files with 8 additions and 33 deletions

View File

@ -1,6 +1,7 @@
#ifndef ENGINE_OCTA_HH #ifndef ENGINE_OCTA_HH
#define ENGINE_OCTA_HH #define ENGINE_OCTA_HH
#include <shared/gl.hh>
#include <shared/geom.hh> #include <shared/geom.hh>
#include <shared/ents.hh> #include <shared/ents.hh>

View File

@ -1,5 +1,7 @@
// rendergl.cpp: core opengl rendering stuff // rendergl.cpp: core opengl rendering stuff
#include <shared/gl.hh>
#include "aa.hh" #include "aa.hh"
#include "blend.hh" #include "blend.hh"
#include "console.hh" #include "console.hh"

View File

@ -1,6 +1,7 @@
#ifndef ENGINE_RENDERGL_HH #ifndef ENGINE_RENDERGL_HH
#define ENGINE_RENDERGL_HH #define ENGINE_RENDERGL_HH
#include <shared/gl.hh>
#include <shared/geom.hh> #include <shared/geom.hh>
extern bool hasVAO, hasTR, hasTSW, hasPBO, hasFBO, hasAFBO, hasDS, hasTF, hasCBF, hasS3TC, hasFXT1, hasLATC, hasRGTC, hasAF, hasFBB, hasFBMS, hasTMS, hasMSS, hasFBMSBS, hasUBO, hasMBR, hasDB2, hasDBB, hasTG, hasTQ, hasPF, hasTRG, hasTI, hasHFV, hasHFP, hasDBT, hasDC, hasDBGO, hasEGPU4, hasGPU4, hasGPU5, hasBFE, hasEAL, hasCR, hasOQ2, hasES3, hasCB, hasCI; extern bool hasVAO, hasTR, hasTSW, hasPBO, hasFBO, hasAFBO, hasDS, hasTF, hasCBF, hasS3TC, hasFXT1, hasLATC, hasRGTC, hasAF, hasFBB, hasFBMS, hasTMS, hasMSS, hasFBMSBS, hasUBO, hasMBR, hasDB2, hasDBB, hasTG, hasTQ, hasPF, hasTRG, hasTI, hasHFV, hasHFP, hasDBT, hasDC, hasDBGO, hasEGPU4, hasGPU4, hasGPU5, hasBFE, hasEAL, hasCR, hasOQ2, hasES3, hasCB, hasCI;

View File

@ -1,3 +1,5 @@
add_global_arguments('-D_FILE_OFFSET_BITS=64', language: 'cpp')
octacore_includes = [ octacore_includes = [
include_directories('.', 'shared', 'engine', 'game') include_directories('.', 'shared', 'engine', 'game')
] ]

View File

@ -1,11 +1,6 @@
#ifndef __CUBE_H__ #ifndef __CUBE_H__
#define __CUBE_H__ #define __CUBE_H__
#define _FILE_OFFSET_BITS 64
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
@ -18,32 +13,9 @@
#include <assert.h> #include <assert.h>
#include <time.h> #include <time.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0500
#include "windows.h"
#ifndef _WINDOWS
#define _WINDOWS
#endif
#ifndef __GNUC__
#include <eh.h>
#include <dbghelp.h>
#include <intrin.h>
#endif
#define ZLIB_DLL
#endif
#include "gl.hh"
#include <zlib.h>
#include "tools.hh" #include "tools.hh"
#include "geom.hh" #include "geom.hh"
#include "ents.hh" #include "ents.hh"
#include "command.hh" #include "command.hh"
#endif #endif

View File

@ -7,12 +7,9 @@
#include <cstring> #include <cstring>
#include <cmath> #include <cmath>
#include <SDL.h>
#include <zlib.h> #include <zlib.h>
#ifndef STANDALONE
#include "gl.hh"
#endif
#ifdef NULL #ifdef NULL
#undef NULL #undef NULL
#endif #endif
@ -542,7 +539,7 @@ static inline bool htcmp(int x, int y)
return x==y; return x==y;
} }
#ifndef STANDALONE #ifdef GL_HH
static inline uint hthash(GLuint key) static inline uint hthash(GLuint key)
{ {
return key; return key;