Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct {
- void (*systemSleep)(long ms);
- long (*currentTimeMillis)();
- void* (*createPrimarySurface)();
- void* (*createSurface)(int width, int height);
- void (*getSystemPath)(char *buf, char *name);
- void* (*loadSurfaceFromFile)(char * name);
- void (*blitSurface)(void * dest, void * src, int x, int y);
- void (*blitSurfaceRegion)(void * dest, void * src, int x, int y, int dx, int dy, int w, int h);
- void (*flipSurface)(void * surface);
- void (*fillSurfaceRect)(void * surface, int x, int y, int w, int h, int color);
- void (*surfaceClip)(void * surface, int i, int j, int k, int l);
- void (*surfaceAlpha)(void * surface, int alpha);
- int (*getSurfaceWidth)(void * surface);
- int (*getSurfaceHeight)(void * surface);
- int (*processEvents)();
- int (*loadSound)(char *name, int type, int id);
- void (*playSound)(int id, int loops);
- void (*stopSound)(int id);
- void (*freeSound)(int id);
- void (*setSoundVolume)(int id, int volume);
- void (*getDocumentPath)(char *buf, char *name);
- void (*platformRequest)(char *wapLink);
- void (*quit)();
- } refexport_t;
- typedef struct {
- void (*init)();
- void (*tick)();
- void (*paint)();
- void (*keyPressed)(int code);
- void (*keyReleased)(int code);
- void (*pointerPressed)(int x, int y);
- void (*pointerReleased)(int x, int y);
- void (*pointerDragged)(int x, int y);
- void (*startApp)();
- void (*pauseApp)();
- void (*quit)();
- } refimport_t;
- //dll exports the only function:
- refimport_t * GetRefAPI( int apiVersion, refexport_t *rexp );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement