|
UFO: Alien Invasion
|
#include "r_gl.h"

Go to the source code of this file.
Data Structures | |
| struct | r_shader_t |
| struct | r_progvar_t |
| struct | r_program_t |
Macros | |
| #define | GL_UNIFORM 1 |
| #define | GL_ATTRIBUTE 2 |
| #define | MAX_PROGRAM_VARS 32 |
| #define | MAX_PROGRAMS 16 |
| #define | MAX_SHADERS MAX_PROGRAMS * 2 |
Typedefs | |
| typedef void(* | programInitFunc_t) (struct r_program_s *prog) |
| typedef void(* | programUseFunc_t) (struct r_program_s *prog) |
| #define GL_ATTRIBUTE 2 |
Definition at line 36 of file r_program.h.
Referenced by R_AttributePointer(), R_DisableAttribute(), and R_EnableAttribute().
| #define GL_UNIFORM 1 |
Definition at line 34 of file r_program.h.
Referenced by R_ProgramParameter1f(), R_ProgramParameter1fvs(), R_ProgramParameter1i(), R_ProgramParameter2fv(), R_ProgramParameter2fvs(), R_ProgramParameter3fv(), R_ProgramParameter3fvs(), R_ProgramParameter4fv(), R_ProgramParameter4fvs(), R_ProgramParameterMatrix4fv(), and R_ProgramVariable().
| #define MAX_PROGRAM_VARS 32 |
Definition at line 46 of file r_program.h.
Referenced by R_ProgramVariable().
| #define MAX_PROGRAMS 16 |
Definition at line 65 of file r_program.h.
Referenced by R_LoadProgram(), and R_ShutdownPrograms().
| #define MAX_SHADERS MAX_PROGRAMS * 2 |
Definition at line 66 of file r_program.h.
Referenced by R_LoadShader().
| typedef void(* programInitFunc_t) (struct r_program_s *prog) |
Definition at line 50 of file r_program.h.
| typedef void(* programUseFunc_t) (struct r_program_s *prog) |
Definition at line 51 of file r_program.h.
Definition at line 211 of file r_program.cpp.
References GL_ATTRIBUTE, GLuint, name, R_ProgramVariable(), and v.
Referenced by R_BindArray().
| void R_DisableAttribute | ( | const char * | name | ) |
Definition at line 231 of file r_program.cpp.
References GL_ATTRIBUTE, name, R_ProgramVariable(), and v.
Referenced by R_EnableAnimation(), and R_EnableModelLights().
| void R_EnableAttribute | ( | const char * | name | ) |
Definition at line 221 of file r_program.cpp.
References GL_ATTRIBUTE, name, R_ProgramVariable(), and v.
Referenced by R_EnableAnimation(), R_EnableModelLights(), and R_EnableWorldLights().
| void R_InitParticleProgram | ( | r_program_t * | prog | ) |
Definition at line 1012 of file r_program.cpp.
References R_ProgramParameter1i().
Referenced by CL_ParseMapParticle(), and CL_ParticleFunction().
Definition at line 1022 of file r_program.cpp.
References Com_Printf(), Cvar_Set(), DOUBLEQUOTE, FILTER_SIZE, OBJZERO, R_InitAtmosphereProgram(), R_InitCombine2Program(), R_InitConvolveProgram(), R_InitGeoscapeProgram(), R_InitModelProgram(), R_InitSimpleGlowProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_LoadProgram(), r_programs, r_state, R_UseConvolveProgram(), R_UseModelProgram(), R_UseWarpProgram(), R_UseWorldProgram(), and shaderQualityLevelNames.
Referenced by R_Init(), R_ReinitOpenglContext(), and R_RestartPrograms_f().
| r_program_t * R_LoadProgram | ( | const char * | name, |
| programInitFunc_t | init, | ||
| programUseFunc_t | use ) |
Definition at line 684 of file r_program.cpp.
References Com_Printf(), r_program_t::f, GL_FRAGMENT_SHADER, GL_LINK_STATUS, GL_VERTEX_SHADER, i, r_program_t::id, r_shader_t::id, r_program_t::init, MAX_PROGRAMS, MAX_STRING_CHARS, name, r_program_t::name, Q_streq, Q_strncpyz(), R_LoadShader(), r_programs, R_ShutdownProgram(), r_state, R_UseProgram(), r_program_t::use, r_program_t::v, and va().
Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), and R_InitPrograms().
| void R_ProgramParameter1f | ( | const char * | name, |
| GLfloat | value ) |
Definition at line 121 of file r_program.cpp.
References GL_UNIFORM, name, R_ProgramVariable(), and v.
Referenced by R_EnableAnimation(), R_EnableFog(), R_EnableShell(), R_InitModelProgram(), R_InitSimpleGlowProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_SphereShadeGLSL(), R_StageGlow(), R_UpdateGlowBufferBinding(), R_UseMaterial(), R_UseModelProgram(), R_UseWarpProgram(), and R_UseWorldProgram().
Definition at line 131 of file r_program.cpp.
References GL_UNIFORM, GLint, name, R_ProgramVariable(), and v.
Referenced by R_InitConvolveProgram().
Definition at line 111 of file r_program.cpp.
References GL_UNIFORM, GLint, name, R_ProgramVariable(), and v.
Referenced by R_EnableAnimation(), R_EnableBumpmap(), R_EnableRoughnessMap(), R_EnableSpecularMap(), R_InitAtmosphereProgram(), R_InitCombine2Program(), R_InitConvolveProgram(), R_InitGeoscapeProgram(), R_InitModelProgram(), R_InitParticleProgram(), R_InitSimpleGlowProgram(), R_InitWarpProgram(), and R_InitWorldProgram().
| void R_ProgramParameter2fv | ( | const char * | name, |
| GLfloat * | value ) |
Definition at line 141 of file r_program.cpp.
References GL_UNIFORM, name, R_ProgramVariable(), and v.
Referenced by R_EnableFog(), R_InitAtmosphereProgram(), R_InitGeoscapeProgram(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_UseModelProgram(), R_UseWarpProgram(), and R_UseWorldProgram().
Definition at line 151 of file r_program.cpp.
References GL_UNIFORM, GLint, name, R_ProgramVariable(), and v.
Referenced by R_UseConvolveProgram().
| void R_ProgramParameter3fv | ( | const char * | name, |
| GLfloat * | value ) |
Definition at line 161 of file r_program.cpp.
References GL_UNIFORM, name, R_ProgramVariable(), and v.
Referenced by R_EnableFog(), R_EnableModelLights(), R_InitModelProgram(), R_InitWarpProgram(), R_InitWorldProgram(), R_UseModelProgram(), R_UseWarpProgram(), and R_UseWorldProgram().
Definition at line 171 of file r_program.cpp.
References GL_UNIFORM, GLint, name, R_ProgramVariable(), and v.
Referenced by R_EnableModelLights(), and R_EnableWorldLights().
| void R_ProgramParameter4fv | ( | const char * | name, |
| GLfloat * | value ) |
Definition at line 181 of file r_program.cpp.
References GL_UNIFORM, name, R_ProgramVariable(), and v.
Referenced by R_InitAtmosphereProgram(), R_InitCombine2Program(), R_InitGeoscapeProgram(), R_InitWarpProgram(), and R_UseWarpProgram().
Definition at line 191 of file r_program.cpp.
References GL_UNIFORM, GLint, name, R_ProgramVariable(), and v.
Referenced by R_EnableModelLights(), and R_EnableWorldLights().
| void R_ProgramParameterMatrix4fv | ( | const char * | name, |
| GLfloat * | value ) |
Definition at line 201 of file r_program.cpp.
References GL_UNIFORM, name, R_ProgramVariable(), and v.
Reloads the glsl shaders.
Definition at line 1058 of file r_program.cpp.
References Com_Printf(), Cvar_Get(), R_InitFBObjects(), R_InitPrograms(), r_programs, and R_ShutdownPrograms().
Referenced by R_BeginFrame().
Definition at line 265 of file r_program.cpp.
References i, MAX_PROGRAMS, r_programs, R_ShutdownProgram(), and r_state.
Referenced by R_ReinitOpenglContext(), R_RestartPrograms_f(), and R_Shutdown().
| void R_UseParticleProgram | ( | r_program_t * | prog | ) |
Definition at line 1017 of file r_program.cpp.
Referenced by CL_ParseMapParticle(), and CL_ParticleFunction().
| void R_UseProgram | ( | r_program_t * | prog | ) |
Definition at line 43 of file r_program.cpp.
References r_program_t::id, r_state, refdef, and r_program_t::use.
Referenced by R_BlurStack(), R_DrawBloom(), R_DrawParticles(), R_EnableBlur(), R_EnableGlowMap(), R_EnableLighting(), R_EnableWarp(), and R_LoadProgram().