25 #include "common/config.h"
77 CompFunc TranslateGLCompFunc(GLenum flag);
79 GLenum TranslateGfxCompFunc(
CompFunc func);
81 BlendFunc TranslateGLBlendFunc(GLenum flag);
83 GLenum TranslateGfxBlendFunc(
BlendFunc func);
87 GLenum TranslateTextureCoordinate(
int index);
89 GLenum TranslateTextureCoordinateGen(
int index);
91 GLint LoadShader(GLint type,
const char* filename);
93 GLint LinkProgram(
int count, GLint shaders[]);
Additional config with OpenGL-specific settings.
Definition: glutil.h:48
GLDeviceConfig()
Constructor calls LoadDefaults()
Definition: glutil.cpp:27
int depthSize
Color depth in bits.
Definition: glutil.h:59
int redSize
Size of red channel in bits.
Definition: glutil.h:51
int blueSize
Size of blue channel in bits.
Definition: glutil.h:55
CompFunc
Type of function used to compare values.
Definition: device.h:119
< override: disable
Definition: glutil.h:42
General config for graphics device.
Definition: device.h:53
BlendFunc
Type of blending function.
Definition: device.h:135
int alphaSize
Size of alpha channel in bits.
Definition: glutil.h:57
< override: enable
Definition: glutil.h:41
GLenum TranslateGfxPrimitive(PrimitiveType type)
Translate Gfx primitive type to OpenGL primitive type.
Definition: glutil.cpp:50
PrimitiveType
Type of primitive to render.
Definition: device.h:201
VBOMode
VBO autodetect/override.
Definition: glutil.h:38
Namespace for (new) graphics code.
Definition: app.h:49
int greenSize
Size of green channel in bits.
Definition: glutil.h:53
3D (3x1) vector
Definition: vector.h:52
Abstract graphics device - CDevice class and related structs/enums.
void LoadDefault()
Loads the default values.
Definition: glutil.cpp:35
VBOMode vboMode
VBO override/autodetect.
Definition: glutil.h:65
bool hardwareAccel
Force hardware acceleration (video mode set will fail on lack of hw accel)
Definition: glutil.h:62