@@ -20,15 +20,15 @@ typedef struct Evaluation_t
2020 float inv_view_rot [16 ];
2121 float viewProjection [16 ];
2222 float viewInverse [16 ];
23+ float viewport [4 ];
2324
2425 int targetIndex ;
2526 int forcedDirty ;
2627 int uiPass ;
27- int padding ;
28+ int passNumber ;
2829 float mouse [4 ];
2930 int inputIndices [8 ];
3031
31- float viewport [2 ];
3232 int frame ;
3333 int localFrame ;
3434} Evaluation ;
@@ -84,14 +84,14 @@ enum CubeMapFace
8484};
8585
8686// call FreeImage when done
87- int ReadImage (char * filename , Image * image );
87+ int ReadImage (void * context , char * filename , Image * image );
8888// writes an allocated image
89- int WriteImage (char * filename , Image * image , int format , int quality );
89+ int WriteImage (void * context , char * filename , Image * image , int format , int quality );
9090// call FreeImage when done
91- int GetEvaluationImage (int target , Image * image );
91+ int GetEvaluationImage (void * context , int target , Image * image );
9292//
93- int SetEvaluationImage (int target , Image * image );
94- int SetEvaluationImageCube (int target , Image * image , int cubeFace );
93+ int SetEvaluationImage (void * context , int target , Image * image );
94+ int SetEvaluationImageCube (void * context , int target , Image * image , int cubeFace );
9595// call FreeImage when done
9696// set the bits pointer with an allocated memory
9797int AllocateImage (Image * image );
@@ -100,36 +100,36 @@ int LoadSVG(const char *filename, Image *image, float dpi);
100100
101101// Image resize
102102// Image thumbnail
103- int SetThumbnailImage (Image * image );
103+ int SetThumbnailImage (void * context , Image * image );
104104
105105// force evaluation of a target with a specified size
106106// no guarantee that the resulting Image will have that size.
107- int Evaluate (int target , int width , int height , Image * image );
107+ int Evaluate (void * context , int target , int width , int height , Image * image );
108108
109- void SetBlendingMode (int target , int blendSrc , int blendDst );
110- void EnableDepthBuffer (int target , int enable );
111- int GetEvaluationSize (int target , int * imageWidth , int * imageHeight );
112- int SetEvaluationSize (int target , int imageWidth , int imageHeight );
113- int SetEvaluationCubeSize (int target , int faceWidth );
109+ void SetBlendingMode (void * context , int target , int blendSrc , int blendDst );
110+ void EnableDepthBuffer (void * context , int target , int enable );
111+ int GetEvaluationSize (void * context , int target , int * imageWidth , int * imageHeight );
112+ int SetEvaluationSize (void * context , int target , int imageWidth , int imageHeight );
113+ int SetEvaluationCubeSize (void * context , int target , int faceWidth );
114114int CubemapFilter (Image * image , int faceSize , int lightingModel , int excludeBase , int glossScale , int glossBias );
115115
116- int Job (int (* jobFunction )(void * ), void * ptr , unsigned int size );
117- int JobMain (int (* jobMainFunction )(void * ), void * ptr , unsigned int size );
116+ int Job (void * context , int (* jobFunction )(void * ), void * ptr , unsigned int size );
117+ int JobMain (void * context , int (* jobMainFunction )(void * ), void * ptr , unsigned int size );
118118// processing values:
119119// 0 : no more processing, display node as normal
120120// 1 : processing with an animation for node display
121121// 2 : display node as normal despite it processing
122- void SetProcessing (int target , int processing );
122+ void SetProcessing (void * context , int target , int processing );
123123
124124// compute shader memory allocation
125- int AllocateComputeBuffer (int target , int elementCount , int elementSize );
125+ int AllocateComputeBuffer (void * context , int target , int elementCount , int elementSize );
126126
127127int LoadScene (const char * filename , void * * scene );
128- int SetEvaluationScene (int target , void * scene );
129- int GetEvaluationScene (int target , void * * scene );
130- int GetEvaluationRenderer (int target , void * * renderer );
131- int InitRenderer (int target , int mode , void * scene );
132- int UpdateRenderer (int target );
128+ int SetEvaluationScene (void * context , int target , void * scene );
129+ int GetEvaluationScene (void * context , int target , void * * scene );
130+ int GetEvaluationRenderer (void * context , int target , void * * renderer );
131+ int InitRenderer (void * context , int target , int mode , void * scene );
132+ int UpdateRenderer (void * context , int target );
133133
134134#define EVAL_OK 0
135135#define EVAL_ERR 1
0 commit comments