MCPcopy Create free account
hub / github.com/TankOs/SFGUI / sfgogl_LoadFunctions

Function sfgogl_LoadFunctions

src/SFGUI/GLLoader.cpp:1889–1904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1887}
1888
1889int sfgogl_LoadFunctions(void)
1890{
1891 int numFailed = 0;
1892 ClearExtensionVars();
1893
1894 sfg_ptrc_glGetString = (const GLubyte * (CODEGEN_FUNCPTR *)(GLenum))IntGetProcAddress("glGetString");
1895 if(!sfg_ptrc_glGetString) return sfgogl_LOAD_FAILED;
1896
1897 ProcExtsFromExtString((const char *)sfg_ptrc_glGetString(GL_EXTENSIONS));
1898 numFailed = Load_Version_1_2();
1899
1900 if(numFailed == 0)
1901 return sfgogl_LOAD_SUCCEEDED;
1902 else
1903 return sfgogl_LOAD_SUCCEEDED + numFailed;
1904}
1905
1906static int g_major_version = 0;
1907static int g_minor_version = 0;

Callers 3

VertexBufferRendererMethod · 0.85
IsAvailableMethod · 0.85
IsAvailableMethod · 0.85

Calls 3

ClearExtensionVarsFunction · 0.85
ProcExtsFromExtStringFunction · 0.85
Load_Version_1_2Function · 0.85

Tested by

no test coverage detected