24 #define GLWIN_SUCCESS 0 25 #define GLWIN_ERROR -1 26 #define GLWIN_NOT_IMPLEMENTED -2 28 #define GLWIN_EV_POLL_NONBLOCK 0 29 #define GLWIN_EV_POLL_BLOCK 1 31 #define GLWIN_EV_NONE 0 33 #define GLWIN_EV_KBD 1 35 #define GLWIN_EV_KBD_UP 2 36 #define GLWIN_EV_KBD_DOWN 3 37 #define GLWIN_EV_KBD_LEFT 4 38 #define GLWIN_EV_KBD_RIGHT 5 39 #define GLWIN_EV_KBD_PAGE_UP 6 40 #define GLWIN_EV_KBD_PAGE_DOWN 7 41 #define GLWIN_EV_KBD_HOME 8 42 #define GLWIN_EV_KBD_END 9 43 #define GLWIN_EV_KBD_INSERT 10 44 #define GLWIN_EV_KBD_DELETE 11 46 #define GLWIN_EV_KBD_F1 12 47 #define GLWIN_EV_KBD_F2 13 48 #define GLWIN_EV_KBD_F3 14 49 #define GLWIN_EV_KBD_F4 15 50 #define GLWIN_EV_KBD_F5 16 51 #define GLWIN_EV_KBD_F6 17 52 #define GLWIN_EV_KBD_F7 18 53 #define GLWIN_EV_KBD_F8 19 54 #define GLWIN_EV_KBD_F9 20 55 #define GLWIN_EV_KBD_F10 21 56 #define GLWIN_EV_KBD_F11 22 57 #define GLWIN_EV_KBD_F12 23 59 #define GLWIN_EV_KBD_ESC 24 61 #define GLWIN_EV_MOUSE_MOVE 31 63 #define GLWIN_EV_MOUSE_LEFT 32 64 #define GLWIN_EV_MOUSE_MIDDLE 34 65 #define GLWIN_EV_MOUSE_RIGHT 35 66 #define GLWIN_EV_MOUSE_WHEELUP 36 67 #define GLWIN_EV_MOUSE_WHEELDOWN 37 69 #define GLWIN_EV_WINDOW_CLOSE 128 71 #define GLWIN_STEREO_OFF 0 72 #define GLWIN_STEREO_OVERUNDER 1 74 void *
glwin_create(
const char * wintitle,
int width,
int height);
83 int glwin_get_spaceball(
void *voidhandle,
int *rx,
int *ry,
int *rz,
int *tx,
int *ty,
int *tz,
int *buttons);
85 int glwin_resize(
void *voidhandle,
int width,
int height);
91 void glwin_draw_image(
void * voidhandle,
int ixs,
int iys,
unsigned char * img);
93 const unsigned char *rgb3u);
95 int stereomode,
int ixs,
int iys,
96 const unsigned char *rgb3u);
100 const unsigned char *rgb3u);
103 int stereomode,
int ixs,
int iys,
104 const float *hmdquat,
105 float fov,
float rad,
int res);
115 int warpdivs,
int ixs,
int iys,
116 const float *user_coeffs);
120 int warpdivs,
int ixs,
int iys,
121 const float *user_coeffs,
int forceupdate);
123 int drawimage,
int drawlines,
int chromcorr,
125 int ixs,
int iys,
const float *hmdquat,
126 float fov,
float rad,
int hmd_spres);
void * glwin_fbo_target_create(void *voidhandle, int width, int height)
void glwin_spheremap_upload_tex_rgb3u(void *voidhandle, int ixs, int iys, const unsigned char *rgb3u)
int glwin_get_mousepointer(void *voidhandle, int *x, int *y)
void glwin_spheremap_destroy_hmd_warp(void *vwin, void *voidwarp)
int glwin_reposition(void *voidhandle, int xpos, int ypos)
int glwin_get_wininfo(void *voidhandle, int *instereo, int *havestencil)
int glwin_spheremap_draw_hmd_warp(void *vwin, void *voidwarp, int drawimage, int drawlines, int chromcorr, int wsx, int wsy, int ixs, int iys, const float *hmdquat, float fov, float rad, int hmd_spres)
int glwin_get_winsize(void *voidhandle, int *xsize, int *ysize)
int glwin_spaceball_available(void *voidhandle)
int glwin_fbo_target_draw_fbo(void *voidhandle, void *voidtarget, int width, int height)
int glwin_fullscreen(void *voidhandle, int fson, int xinescreen)
int glwin_get_lastevent(void *voidhandle, int *evdev, int *evval, char *evkey)
void * glwin_create(const char *wintitle, int width, int height)
void glwin_swap_buffers(void *voidhandle)
void glwin_spheremap_draw_prepare(void *voidhandle)
int glwin_fbo_target_destroy(void *voidhandle, void *voidtarget)
int glwin_fbo_target_bind(void *voidhandle, void *voidtarget)
void glwin_spheremap_draw_tex(void *voidhandle, int stereomode, int ixs, int iys, const float *hmdquat, float fov, float rad, int res)
void glwin_draw_image(void *voidhandle, int ixs, int iys, unsigned char *img)
int glwin_get_winpos(void *voidhandle, int *xpos, int *ypos)
void glwin_spheremap_update_hmd_warp(void *vwin, void *voidwarp, int wsx, int wsy, int warpdivs, int ixs, int iys, const float *user_coeffs, int forceupdate)
void glwin_draw_sphere_tex(float rad, int res, float txlatstart, float txlatend)
int glwin_fbo_target_unbind(void *voidhandle, void *voidtarget)
int glwin_fbo_target_draw_normal(void *voidhandle, void *voidtarget)
int glwin_query_vsync(void *voidhandle, int *onoff)
void glwin_destroy(void *voidhandle)
int glwin_handle_events(void *voidhandle, int evblockmode)
void * glwin_spheremap_create_hmd_warp(void *vwin, int wsx, int wsy, int wrot, int warpdivs, int ixs, int iys, const float *user_coeffs)
int glwin_get_spaceball(void *voidhandle, int *rx, int *ry, int *rz, int *tx, int *ty, int *tz, int *buttons)
void glwin_draw_image_tex_rgb3u(void *voidhandle, int stereomode, int ixs, int iys, const unsigned char *rgb3u)
void glwin_draw_image_rgb3u(void *voidhandle, int stereomode, int ixs, int iys, const unsigned char *rgb3u)
int glwin_query_extension(const char *extname)
int glwin_resize(void *voidhandle, int width, int height)
int glwin_fbo_target_resize(void *voidhandle, void *voidtarget, int width, int height)