Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions | Variables
glemu.cpp File Reference
#include <string.h>
#include <algorithm>
#include "SDL_opengl.h"
#include "inexor/engine/glemu.hpp"
#include "inexor/engine/glexts.hpp"
#include "inexor/network/SharedVar.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_vector.hpp"
#include "inexor/shared/tools.hpp"

Classes

struct  gle::attribinfo
 

Namespaces

 gle
 

Macros

#define MAXQUADS   (0x10000/4)
 
#define MAXVBOSIZE   (4*1024*1024)
 

Functions

void gle::enablequads ()
 
void gle::disablequads ()
 
void gle::drawquads (int offset, int count)
 
void gle::defattrib (int type, int size, int format)
 
void gle::defattribs (const char *fmt)
 
static void gle::setattrib (const attribinfo &a, uchar *buf)
 
static void gle::unsetattrib (const attribinfo &a)
 
static void gle::setattribs (uchar *buf)
 
void gle::begin (GLenum mode)
 
void gle::begin (GLenum mode, int numverts)
 
void gle::multidraw ()
 
int gle::end ()
 
void gle::forcedisable ()
 
void gle::setup ()
 
void gle::cleanup ()
 

Variables

SharedVar< int > glversion
 
SharedVar< int > intel_mapbufferrange_bug
 
const char *const gle::attribnames [MAXATTRIBS] = { "vvertex", "vcolor", "vtexcoord0", "vtexcoord1", "vnormal", "vtangent", "vboneweight", "vboneindex" }
 
ucharbuf gle::attribbuf
 
static uchargle::attribdata
 
static attribinfo gle::attribdefs [MAXATTRIBS]
 
static attribinfo gle::lastattribs [MAXATTRIBS]
 
int gle::enabled = 0
 
static int gle::numattribs = 0
 
static int gle::attribmask = 0
 
static int gle::numlastattribs = 0
 
static int gle::lastattribmask = 0
 
static int gle::vertexsize = 0
 
static int gle::lastvertexsize = 0
 
static GLenum gle::primtype = GL_TRIANGLES
 
static uchargle::lastbuf = nullptr
 
static bool gle::changedattribs = false
 
static vector< GLint > gle::multidrawstart
 
static vector< GLsizei > gle::multidrawcount
 
static GLuint gle::quadindexes = 0
 
static bool gle::quadsenabled = false
 
static GLuint gle::vbo = 0
 
static int gle::vbooffset = MAXVBOSIZE
 
static GLuint gle::defaultvao = 0
 

Macro Definition Documentation

#define MAXQUADS   (0x10000/4)
#define MAXVBOSIZE   (4*1024*1024)

Variable Documentation

SharedVar<int> glversion
SharedVar<int> intel_mapbufferrange_bug