HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Gimp.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_Gimp.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  *
10  * Gimp Callback interface for the Gimp COP
11  */
12 
13 #ifndef __UT_Gimp__
14 #define __UT_Gimp__
15 
16 #include "UT_API.h"
17 #define GIMP_CURSOR_CHANGED 1
18 #define GIMP_IMAGE_CHANGED 2
19 #define GIMP_SHUTDOWN 3
20 
22 {
23  // naming conv: variables starting with 'app' are only set by Houdini.
24  // variables starting with 'gimp' are set by gimp.
25 
26  // flags
27  unsigned char gimpReady;
28  unsigned char appReady;
29  unsigned char gimpImageBusy;
30  unsigned char appImageBusy;
31  unsigned char gimpDone;
32  unsigned char appDone;
33  unsigned char gimpImageFullUpdate;
34 
35  // cursor, image size & serial #
36  unsigned int appImageSizeX;
37  unsigned int appImageSizeY;
38  unsigned int appExportTileSize;
39  unsigned int appDragUpdate;
42  unsigned int gimpImageSerial;
43 
44  // tile update data follows (1 byte per tile, tiles are 64x64 blocks)
45  // image data follows here...
46 };
47 
48 class UT_Gimp;
49 
50 typedef void (*UT_GimpCallback)(int why, void *data);
51 typedef UT_Gimp *(*UT_GimpCreator)(UT_GimpCallback func, utGimpInfoStruct *,void *data);
52 
53 
55 {
56 public:
58  virtual ~UT_Gimp();
59 
60  virtual int isValid();
61  virtual void startChecks();
62  virtual void stopChecks();
63 
64  virtual void updateCursor(int is_on);
65 };
66 
69  utGimpInfoStruct *info,
70  void *data);
71 
72 #endif
unsigned char appImageBusy
Definition: UT_Gimp.h:30
unsigned char gimpReady
Definition: UT_Gimp.h:27
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
#define UT_API
Definition: UT_API.h:12
unsigned int appImageSizeX
Definition: UT_Gimp.h:36
unsigned char gimpImageFullUpdate
Definition: UT_Gimp.h:33
unsigned char gimpDone
Definition: UT_Gimp.h:31
UT_Gimp *(* UT_GimpCreator)(UT_GimpCallback func, utGimpInfoStruct *, void *data)
Definition: UT_Gimp.h:51
unsigned char gimpImageBusy
Definition: UT_Gimp.h:29
unsigned char appReady
Definition: UT_Gimp.h:28
GLboolean * data
Definition: glcorearb.h:130
UT_API void UTsetGimpCreator(UT_GimpCreator func)
GLenum func
Definition: glcorearb.h:782
unsigned char appDone
Definition: UT_Gimp.h:32
UT_API UT_Gimp * UTgetNewGimp(UT_GimpCallback func, utGimpInfoStruct *info, void *data)
void(* UT_GimpCallback)(int why, void *data)
Definition: UT_Gimp.h:50
unsigned int gimpImageSerial
Definition: UT_Gimp.h:42
unsigned int appDragUpdate
Definition: UT_Gimp.h:39
unsigned int appExportTileSize
Definition: UT_Gimp.h:38
unsigned int appImageSizeY
Definition: UT_Gimp.h:37