CGxDeviceOpenGl::BuildVertexProgram
function · gx · host
- Address
0x59e700· 250 bytes, up to0x59e7f9- Signature
void __thiscall (CGxDeviceOpenGl *this, void *program)- Meaning
- Builds an OpenGL vertex program from a program object's text
- Confidence
- inferred
- Finding
- gx/renderstate#opengl-fragment-program-build
Finding: OpenGL fragment program build in gx: render state
0x59e530(program) builds an OpenGL fragment program from a program object's text (+0x5c, length +0x58) when the device's program level [dev+0x2d4] is 10: the text must begin with !!ARBfp1.0; the function splices \nOPTION ARB_fog_linear;\n, ARB_fog_exp or ARB_fog_exp2 after it when the fog state (id 15) is on, by the fog mode (id 9), then generates a program name, binds target 0x8804 and passes the text with glProgramStringARB (format 0x8875). The program counts as loaded (+0x2c = 1) when GL_PROGRAM_ERROR_POSITION (0x864b) is -1 and GL_PROGRAM_UNDER_NATIVE_LIMITS (0x88b6) is non-zero. Levels 5 to 8 set the name field and the loaded flag to 1 without a program.
The derivation is in the doc.
Callers 3
- CGxDeviceOpenGl::ApplyVertexProgram gx
- CGxDeviceOpenGl::LoadShaders gx
- CGxDeviceOpenGl::ReloadShader gx
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.