Oolite 1.91.0.7644-241112-7f5034b
|
import "OOOpenGL.h"
import "OOLogging.h"
import "OOMaths.h"
import "OOMacroOpenGL.h"
import "OOFunctionAttributes.h"
import "OOOpenGLExtensionManager.h"
#include "OOOpenGLStates.tbl"
Go to the source code of this file.
Classes | |
struct | OOOpenGLState |
Macros | |
#define | ITEM_STATEFLAG(NAME) |
#define | ITEM_CLIENTSTATEFLAG(NAME) |
#define | ITEM_SPECIAL(NAME, TYPE, _) |
#define | ITEM_INT(NAME) |
#define | SetState_DEPTH_WRITEMASK(VALUE) |
#define | SetState_SHADE_MODEL(VALUE) |
#define | SetState_TEXTURE_ENV_MODE(VALUE) |
#define | SetState_FRONT_FACE(VALUE) |
#define | ITEM_STATEFLAG(NAME) |
#define | ITEM_CLIENTSTATEFLAG(NAME) |
#define | ITEM_SPECIAL(NAME, _, __) |
#define | ITEM_INT(NAME) |
#define | ITEM_STATEFLAG(NAME) |
#define | ITEM_CLIENTSTATEFLAG(NAME) |
#define | ITEM_SPECIAL(NAME, _, __) |
#define | ITEM_INT(NAME) |
#define | TEST_ITEM(NAME_, DISP_) |
#define | ITEM_STATEFLAG(NAME) |
#define | ITEM_CLIENTSTATEFLAG(NAME) |
#define | ITEM_SPECIAL(NAME, _, __) |
#define | ITEM_INT(NAME) |
#define | ITEM_STATEFLAG(NAME) |
#define | ITEM_CLIENTSTATEFLAG(NAME) |
#define | ITEM_SPECIAL(NAME, TYPE, _) |
#define | ITEM_INT(NAME) |
Enumerations | |
enum | StateFlag { kStateFalse = false , kStateTrue = true , kStateMaybe } |
Functions | |
static void | SwitchOpenGLStateInternal (const OOOpenGLState *sourceState, const OOOpenGLState *targetState) NONNULL_FUNC |
static bool | GetState_DEPTH_WRITEMASK (void) |
static GLenum | GetState_TEXTURE_ENV_MODE (void) |
static GLenum | GetState_ACTIVE_TEXTURE (void) |
static void | SetState_ACTIVE_TEXTURE (GLenum value) |
static GLenum | GetState_CLIENT_ACTIVE_TEXTURE (void) |
static void | SetState_CLIENT_ACTIVE_TEXTURE (GLenum value) |
static void | SetState_CULL_FACE_MODE (GLint value) |
static void | VerifyOpenGLStateInternal (const char *caller, const char *nominalCaller, unsigned line) NONNULL_FUNC |
static void | GetCurrentOpenGLState (OOOpenGLState *state) NONNULL_FUNC |
static bool | StatesEqual (const OOOpenGLState *a, const OOOpenGLState *b) NONNULL_FUNC |
static void | OOGLNoteCurrentFunction (const char *function, unsigned line) |
static void | SetFunctionTracking (bool value) |
void | OOSetOpenGLState_ (OOOpenGLStateID state, const char *function, unsigned line) |
void | OOVerifyOpenGLState_ (const char *function, unsigned line) |
void | OOResetGLStateVerifier (void) |
Variables | |
static const OOOpenGLState | kStandardStates [OPENGL_STATE_INTERNAL_USE_ONLY+1] |
static OOOpenGLStateID | sCurrentStateID = OPENGL_STATE_INTERNAL_USE_ONLY |
static NSString *const | kOOLogOpenGLVerifyDump = @"rendering.opengl.state" |
#define ITEM_CLIENTSTATEFLAG | ( | NAME | ) |
Definition at line 66 of file OOOpenGLStateManager.m.
#define ITEM_CLIENTSTATEFLAG | ( | NAME | ) |
Definition at line 66 of file OOOpenGLStateManager.m.
#define ITEM_CLIENTSTATEFLAG | ( | NAME | ) |
Definition at line 66 of file OOOpenGLStateManager.m.
#define ITEM_CLIENTSTATEFLAG | ( | NAME | ) |
Definition at line 66 of file OOOpenGLStateManager.m.
#define ITEM_CLIENTSTATEFLAG | ( | NAME | ) |
Definition at line 66 of file OOOpenGLStateManager.m.
#define ITEM_INT | ( | NAME | ) |
Definition at line 68 of file OOOpenGLStateManager.m.
#define ITEM_INT | ( | NAME | ) |
Definition at line 68 of file OOOpenGLStateManager.m.
#define ITEM_INT | ( | NAME | ) |
Definition at line 68 of file OOOpenGLStateManager.m.
#define ITEM_INT | ( | NAME | ) |
Definition at line 68 of file OOOpenGLStateManager.m.
#define ITEM_INT | ( | NAME | ) |
Definition at line 68 of file OOOpenGLStateManager.m.
#define ITEM_SPECIAL | ( | NAME, | |
_, | |||
__ ) |
Definition at line 67 of file OOOpenGLStateManager.m.
#define ITEM_SPECIAL | ( | NAME, | |
_, | |||
__ ) |
Definition at line 67 of file OOOpenGLStateManager.m.
#define ITEM_SPECIAL | ( | NAME, | |
_, | |||
__ ) |
Definition at line 67 of file OOOpenGLStateManager.m.
#define ITEM_SPECIAL | ( | NAME, | |
TYPE, | |||
_ ) |
Definition at line 67 of file OOOpenGLStateManager.m.
#define ITEM_SPECIAL | ( | NAME, | |
TYPE, | |||
_ ) |
Definition at line 67 of file OOOpenGLStateManager.m.
#define ITEM_STATEFLAG | ( | NAME | ) |
Definition at line 65 of file OOOpenGLStateManager.m.
#define ITEM_STATEFLAG | ( | NAME | ) |
Definition at line 65 of file OOOpenGLStateManager.m.
#define ITEM_STATEFLAG | ( | NAME | ) |
Definition at line 65 of file OOOpenGLStateManager.m.
#define ITEM_STATEFLAG | ( | NAME | ) |
Definition at line 65 of file OOOpenGLStateManager.m.
#define ITEM_STATEFLAG | ( | NAME | ) |
Definition at line 65 of file OOOpenGLStateManager.m.
#define SetState_DEPTH_WRITEMASK | ( | VALUE | ) |
Definition at line 113 of file OOOpenGLStateManager.m.
#define SetState_FRONT_FACE | ( | VALUE | ) |
Definition at line 171 of file OOOpenGLStateManager.m.
#define SetState_SHADE_MODEL | ( | VALUE | ) |
Definition at line 115 of file OOOpenGLStateManager.m.
#define SetState_TEXTURE_ENV_MODE | ( | VALUE | ) |
Definition at line 128 of file OOOpenGLStateManager.m.
#define TEST_ITEM | ( | NAME_, | |
DISP_ ) |
enum StateFlag |
Enumerator | |
---|---|
kStateFalse | |
kStateTrue | |
kStateMaybe |
Definition at line 53 of file OOOpenGLStateManager.m.
|
static |
Definition at line 283 of file OOOpenGLStateManager.m.
References OOOpenGLState::BLEND_DST, OOOpenGLState::BLEND_SRC, OOOpenGLState::name, OO_ENTER_OPENGL, and OOGL.
Referenced by VerifyOpenGLStateInternal().
|
inlinestatic |
Definition at line 158 of file OOOpenGLStateManager.m.
|
inlinestatic |
Definition at line 160 of file OOOpenGLStateManager.m.
|
inlinestatic |
Definition at line 103 of file OOOpenGLStateManager.m.
References OO_ENTER_OPENGL, and OOGL.
|
inlinestatic |
Definition at line 118 of file OOOpenGLStateManager.m.
References OO_ENTER_OPENGL, and OOGL.
|
inlinestatic |
Definition at line 247 of file OOOpenGLStateManager.m.
Referenced by OOSetOpenGLState_(), and OOVerifyOpenGLState_().
void OOResetGLStateVerifier | ( | void | ) |
Definition at line 462 of file OOOpenGLStateManager.m.
References OPENGL_STATE_INTERNAL_USE_ONLY, and sCurrentStateID.
void OOSetOpenGLState_ | ( | OOOpenGLStateID | state, |
const char * | function, | ||
unsigned | line ) |
Definition at line 253 of file OOOpenGLStateManager.m.
References kStandardStates, OOGLNoteCurrentFunction(), OPENGL_STATE_INTERNAL_USE_ONLY, sCurrentStateID, SetFunctionTracking(), SwitchOpenGLStateInternal(), and VerifyOpenGLStateInternal().
void OOVerifyOpenGLState_ | ( | const char * | function, |
unsigned | line ) |
Definition at line 272 of file OOOpenGLStateManager.m.
References OOGLNoteCurrentFunction(), SetFunctionTracking(), and VerifyOpenGLStateInternal().
|
inlinestatic |
Definition at line 248 of file OOOpenGLStateManager.m.
Referenced by OOSetOpenGLState_(), and OOVerifyOpenGLState_().
|
inlinestatic |
Definition at line 159 of file OOOpenGLStateManager.m.
|
inlinestatic |
Definition at line 161 of file OOOpenGLStateManager.m.
|
inlinestatic |
Definition at line 164 of file OOOpenGLStateManager.m.
References OO_ENTER_OPENGL, and OOGL.
|
static |
Definition at line 309 of file OOOpenGLStateManager.m.
Referenced by VerifyOpenGLStateInternal().
|
static |
Definition at line 404 of file OOOpenGLStateManager.m.
References OOOpenGLState::BLEND_DST, OOOpenGLState::BLEND_SRC, OO_ENTER_OPENGL, and OOGL.
Referenced by OOSetOpenGLState_(), and VerifyOpenGLStateInternal().
|
static |
Definition at line 329 of file OOOpenGLStateManager.m.
References OOOpenGLState::BLEND_DST, OOOpenGLState::BLEND_SRC, GetCurrentOpenGLState(), kOOLogOpenGLVerifyDump, kStandardStates, OOOpenGLState::name, OOGLEnumToString(), OOLog, OOLogIndent(), OOLogOutdent(), OOLogWillDisplayMessagesInClass(), OPENGL_STATE_INTERNAL_USE_ONLY, sCurrentStateID, StatesEqual(), and SwitchOpenGLStateInternal().
Referenced by OOSetOpenGLState_(), and OOVerifyOpenGLState_().
|
static |
Definition at line 178 of file OOOpenGLStateManager.m.
Referenced by VerifyOpenGLStateInternal().
|
static |
Definition at line 83 of file OOOpenGLStateManager.m.
Referenced by OOSetOpenGLState_(), and VerifyOpenGLStateInternal().
|
static |
Definition at line 85 of file OOOpenGLStateManager.m.
Referenced by OOResetGLStateVerifier(), OOSetOpenGLState_(), and VerifyOpenGLStateInternal().