MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / R_LoadImageProgram

Function R_LoadImageProgram

neo/renderer/Image_program.cpp:612–626  ·  view source on GitHub ↗

=================== R_LoadImageProgram =================== */

Source from the content-addressed store, hash-verified

610===================
611*/
612void R_LoadImageProgram( const char *name, byte **pic, int *width, int *height, ID_TIME_T *timestamps, textureDepth_t *depth ) {
613 idLexer src;
614
615 src.LoadMemory( name, strlen(name), name );
616 src.SetFlags( LEXFL_NOFATALERRORS | LEXFL_NOSTRINGCONCAT | LEXFL_NOSTRINGESCAPECHARS | LEXFL_ALLOWPATHNAMES );
617
618 parseBuffer[0] = 0;
619 if ( timestamps ) {
620 *timestamps = 0;
621 }
622
623 R_ParseImageProgram_r( src, pic, width, height, timestamps, depth );
624
625 src.FreeSource();
626}
627
628/*
629===================

Callers 4

ActuallyLoadImageMethod · 0.85
R_LoadCubeImagesFunction · 0.85
ReloadMethod · 0.85

Calls 4

R_ParseImageProgram_rFunction · 0.85
LoadMemoryMethod · 0.45
SetFlagsMethod · 0.45
FreeSourceMethod · 0.45

Tested by

no test coverage detected