MCPcopy Create free account
hub / github.com/cinder/Cinder / initializeFunctionPointers

Method initializeFunctionPointers

src/cinder/gl/EnvironmentEs.cpp:113–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void EnvironmentEs::initializeFunctionPointers()
114{
115#if defined( CINDER_ANDROID ) || defined( CINDER_LINUX )
116 gladLoadGLES2Loader( (GLADloadproc)eglGetProcAddress );
117
118/*
119 #if ( CINDER_GL_ES_VERSION == CINDER_GL_ES_VERSION_2 )
120 if( supportsHardwareVao() ) {
121 fnptr_ci_glBindVertexArrayOES = (PFNGLBINDVERTEXARRAYOESPROC)eglGetProcAddress( "glBindVertexArrayOES" );
122 fnptr_ci_glDeleteVertexArraysOES = (PFNGLDELETEVERTEXARRAYSOESPROC)eglGetProcAddress( "glDeleteVertexArraysOES" );
123 fnptr_ci_glGenVertexArraysOES = (PFNGLGENVERTEXARRAYSOESPROC)eglGetProcAddress( "glGenVertexArraysOES" );
124 fnptr_ci_glIsVertexArrayOES = (PFNGLISVERTEXARRAYOESPROC)eglGetProcAddress( "glIsVertexArrayOES" );
125 }
126
127 if( supportsMapBufferRange() ) {
128 fnptr_ci_glMapBufferRangeEXT = (PFNGLMAPBUFFERRANGEEXTPROC)eglGetProcAddress( "glMapBufferRangeEXT" );
129 fnptr_ci_glFlushMappedBufferRangeEXT = (PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC)eglGetProcAddress( "glFlushMappedBufferRangeEXT" );
130 }
131 #endif
132
133 if( isExtensionAvailable( "GL_OES_mapbuffer" ) ) {
134 fnptr_ci_glMapBufferOES = (PFNGLMAPBUFFEROESPROC)eglGetProcAddress( "glMapBufferOES" );
135 fnptr_ci_glUnmapBufferOES = (PFNGLUNMAPBUFFEROESPROC)eglGetProcAddress( "glUnmapBufferOES" );
136 fnptr_ci_glGetBufferPointervOES = (PFNGLGETBUFFERPOINTERVOESPROC)eglGetProcAddress( "glGetBufferPointervOES" );
137 }
138*/
139#endif
140}
141
142bool EnvironmentEs::isExtensionAvailable( const std::string &extName ) const
143{

Callers 6

createFromExistingMethod · 0.45
createSharedContextMethod · 0.45
initializeGlFunction · 0.45
initializeMethod · 0.45
initializeMethod · 0.45
initializeMethod · 0.45

Calls 1

gladLoadGLES2LoaderFunction · 0.85

Tested by

no test coverage detected