Lines Matching refs:ESContext
78 int Init ( ESContext *esContext )
80 UserData *userData = esContext->userData;
120 void Draw ( ESContext *esContext )
122 UserData *userData = esContext->userData;
135 glViewport ( 0, 0, esContext->width, esContext->height );
162 eglSwapBuffers ( esContext->eglDisplay, esContext->eglSurface );
168 void ShutDown ( ESContext *esContext )
170 UserData *userData = esContext->userData;
182 ESContext esContext;
185 esInitContext ( &esContext );
186 esContext.userData = &userData;
188 esCreateWindow ( &esContext, TEXT("Simple Texture 2D"), 320, 240, ES_WINDOW_RGB );
190 if ( !Init ( &esContext ) )
193 esRegisterDrawFunc ( &esContext, Draw );
195 esMainLoop ( &esContext );
197 ShutDown ( &esContext );