1 // Generated Code - DO NOT EDIT !! 2 // generated by 'emugen' 3 4 #ifndef GUARD_renderControl_encoder_context_t 5 #define GUARD_renderControl_encoder_context_t 6 7 #include "IOStream.h" 8 #include "renderControl_client_context.h" 9 10 11 #include <stdint.h> 12 #include <EGL/egl.h> 13 #include "glUtils.h" 14 15 struct renderControl_encoder_context_t : public renderControl_client_context_t { 16 17 IOStream *m_stream; 18 19 renderControl_encoder_context_t(IOStream *stream); 20 21 22 }; 23 24 extern "C" { 25 GLint rcGetRendererVersion_enc(void *self ); 26 EGLint rcGetEGLVersion_enc(void *self , EGLint* major, EGLint* minor); 27 EGLint rcQueryEGLString_enc(void *self , EGLenum name, void* buffer, EGLint bufferSize); 28 EGLint rcGetGLString_enc(void *self , EGLenum name, void* buffer, EGLint bufferSize); 29 EGLint rcGetNumConfigs_enc(void *self , uint32_t* numAttribs); 30 EGLint rcGetConfigs_enc(void *self , uint32_t bufSize, GLuint* buffer); 31 EGLint rcChooseConfig_enc(void *self , EGLint* attribs, uint32_t attribs_size, uint32_t* configs, uint32_t configs_size); 32 EGLint rcGetFBParam_enc(void *self , EGLint param); 33 uint32_t rcCreateContext_enc(void *self , uint32_t config, uint32_t share, uint32_t glVersion); 34 void rcDestroyContext_enc(void *self , uint32_t context); 35 uint32_t rcCreateWindowSurface_enc(void *self , uint32_t config, uint32_t width, uint32_t height); 36 void rcDestroyWindowSurface_enc(void *self , uint32_t windowSurface); 37 uint32_t rcCreateColorBuffer_enc(void *self , uint32_t width, uint32_t height, GLenum internalFormat); 38 void rcOpenColorBuffer_enc(void *self , uint32_t colorbuffer); 39 void rcCloseColorBuffer_enc(void *self , uint32_t colorbuffer); 40 void rcSetWindowColorBuffer_enc(void *self , uint32_t windowSurface, uint32_t colorBuffer); 41 int rcFlushWindowColorBuffer_enc(void *self , uint32_t windowSurface); 42 EGLint rcMakeCurrent_enc(void *self , uint32_t context, uint32_t drawSurf, uint32_t readSurf); 43 void rcFBPost_enc(void *self , uint32_t colorBuffer); 44 void rcFBSetSwapInterval_enc(void *self , EGLint interval); 45 void rcBindTexture_enc(void *self , uint32_t colorBuffer); 46 void rcBindRenderbuffer_enc(void *self , uint32_t colorBuffer); 47 EGLint rcColorBufferCacheFlush_enc(void *self , uint32_t colorbuffer, EGLint postCount, int forRead); 48 void rcReadColorBuffer_enc(void *self , uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels); 49 int rcUpdateColorBuffer_enc(void *self , uint32_t colorbuffer, GLint x, GLint y, GLint width, GLint height, GLenum format, GLenum type, void* pixels); 50 }; 51 #endif