mojoshader_effects.h
changeset 1270 fb28ba997299
parent 1245 ad9a16c8b023
equal deleted inserted replaced
1269:5ed167069622 1270:fb28ba997299
   504 typedef void (MOJOSHADERCALL * MOJOSHADER_mapUniformBufferMemoryFunc)(
   504 typedef void (MOJOSHADERCALL * MOJOSHADER_mapUniformBufferMemoryFunc)(
   505     float **vsf, int **vsi, unsigned char **vsb,
   505     float **vsf, int **vsi, unsigned char **vsb,
   506     float **psf, int **psi, unsigned char **psb
   506     float **psf, int **psi, unsigned char **psb
   507 );
   507 );
   508 typedef void (MOJOSHADERCALL * MOJOSHADER_unmapUniformBufferMemoryFunc)();
   508 typedef void (MOJOSHADERCALL * MOJOSHADER_unmapUniformBufferMemoryFunc)();
       
   509 typedef const char* (MOJOSHADERCALL * MOJOSHADER_getErrorFunc)();
   509 
   510 
   510 typedef struct MOJOSHADER_effectShaderContext
   511 typedef struct MOJOSHADER_effectShaderContext
   511 {
   512 {
   512     /* Shader Backend */
   513     /* Shader Backend */
   513     MOJOSHADER_compileShaderFunc compileShader;
   514     MOJOSHADER_compileShaderFunc compileShader;
   516     MOJOSHADER_getParseDataFunc getParseData;
   517     MOJOSHADER_getParseDataFunc getParseData;
   517     MOJOSHADER_bindShadersFunc bindShaders;
   518     MOJOSHADER_bindShadersFunc bindShaders;
   518     MOJOSHADER_getBoundShadersFunc getBoundShaders;
   519     MOJOSHADER_getBoundShadersFunc getBoundShaders;
   519     MOJOSHADER_mapUniformBufferMemoryFunc mapUniformBufferMemory;
   520     MOJOSHADER_mapUniformBufferMemoryFunc mapUniformBufferMemory;
   520     MOJOSHADER_unmapUniformBufferMemoryFunc unmapUniformBufferMemory;
   521     MOJOSHADER_unmapUniformBufferMemoryFunc unmapUniformBufferMemory;
       
   522     MOJOSHADER_getErrorFunc getError;
   521 
   523 
   522     /* Allocator */
   524     /* Allocator */
   523     MOJOSHADER_malloc m;
   525     MOJOSHADER_malloc m;
   524     MOJOSHADER_free f;
   526     MOJOSHADER_free f;
   525     void *malloc_data;
   527     void *malloc_data;