CGxDeviceOpenGl::BuildPixelProgram
function · gx · host
- Address
0x59e530· 453 bytes, up to0x59e6f4- Signature
void __thiscall (CGxDeviceOpenGl *this, void *program)- Meaning
- Splices the fog option into an ARB fragment program's text and loads it, marking the program object loaded
- Confidence
- verified, proof one
- 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::ApplyPixelProgram gx
- CGxDeviceOpenGl::LoadShaders gx
- CGxDeviceOpenGl::ReloadShader gx
Callees 4
- __alloca_probe crt
- _strncpy crt
- CGxDevice::GetRenderStateInt gx
- SStrCmp storm
Calls and jumps by a bare address, from tables/calls.tsv.