summaryrefslogtreecommitdiff
path: root/src/renderergl1/tr_local.h
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-11-02 02:35:59 -0500
committerTim Angus <tim@ngus.net>2014-06-17 17:43:35 +0100
commit2bb457c9e41557212b87f5525f9c199f52fd20f6 (patch)
tree7c24d58d2b4634ebcaa38b481d4d0432f56b676f /src/renderergl1/tr_local.h
parent9dc7556b7a1d3cc63e9055a0f98b1187b1e3fdcf (diff)
Remove unused shader state code from tr_local.h
Diffstat (limited to 'src/renderergl1/tr_local.h')
-rw-r--r--src/renderergl1/tr_local.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/renderergl1/tr_local.h b/src/renderergl1/tr_local.h
index bfabca71..fcce54fc 100644
--- a/src/renderergl1/tr_local.h
+++ b/src/renderergl1/tr_local.h
@@ -42,10 +42,6 @@ typedef unsigned int glIndex_t;
#define SHADERNUM_BITS 14
#define MAX_SHADERS (1<<SHADERNUM_BITS)
-//#define MAX_SHADER_STATES 2048
-#define MAX_STATES_PER_SHADER 32
-#define MAX_STATE_NAME 32
-
typedef struct dlight_s {
@@ -371,27 +367,11 @@ typedef struct shader_s {
float clampTime; // time this shader is clamped to
float timeOffset; // current time offset for this shader
- int numStates; // if non-zero this is a state shader
- struct shader_s *currentShader; // current state if this is a state shader
- struct shader_s *parentShader; // current state if this is a state shader
- int currentState; // current state index for cycle purposes
- long expireTime; // time in milliseconds this expires
-
struct shader_s *remappedShader; // current shader this one is remapped too
- int shaderStates[MAX_STATES_PER_SHADER]; // index to valid shader states
-
struct shader_s *next;
} shader_t;
-typedef struct shaderState_s {
- char shaderName[MAX_QPATH]; // name of shader this state belongs to
- char name[MAX_STATE_NAME]; // name of this state
- char stateShader[MAX_QPATH]; // shader this name invokes
- int cycleTime; // time this cycle lasts, <= 0 is forever
- shader_t *shader;
-} shaderState_t;
-
// trRefdef_t holds everything that comes in refdef_t,
// as well as the locally generated scene information