Tachyon (current)  Current Main Branch
Functions
glwin.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "glwin.h"

Go to the source code of this file.

Functions

void * glwin_create (const char *wintitle, int width, int height)
 
void glwin_destroy (void *voidhandle)
 
void glwin_swap_buffers (void *voidhandle)
 
int glwin_handle_events (void *voidhandle, int evblockmode)
 
int glwin_get_wininfo (void *voidhandle, int *instereo, int *havestencil)
 
int glwin_get_winsize (void *voidhandle, int *xsize, int *ysize)
 
int glwin_get_winpos (void *voidhandle, int *xpos, int *ypos)
 
int glwin_get_mousepointer (void *voidhandle, int *x, int *y)
 
int glwin_get_lastevent (void *voidhandle, int *evdev, int *evval, char *evkey)
 
int glwin_query_extension (const char *extname)
 
int glwin_query_vsync (void *voidhandle, int *onoff)
 
void glwin_draw_image (void *voidhandle, int xsize, int ysize, unsigned char *img)
 
void glwin_draw_image_rgb3u (void *voidhandle, int stereomode, int ixs, int iys, const unsigned char *rgb3u)
 
void glwin_draw_image_tex_rgb3u (void *voidhandle, int stereomode, int ixs, int iys, const unsigned char *rgb3u)
 
void glwin_spheremap_draw_prepare (void *voidhandle)
 
void glwin_spheremap_upload_tex_rgb3u (void *voidhandle, int ixs, int iys, const unsigned char *rgb3u)
 
void glwin_draw_sphere_tex (float rad, int res, float txlatstart, float txlatend)
 
void glwin_spheremap_draw (void *voidhandle, int stereomode, int ixs, int iys, const float *hmdquat, float fov, float rad, int res)
 
int glwin_resize (void *voidhandle, int width, int height)
 
int glwin_reposition (void *voidhandle, int xpos, int ypos)
 
int glwin_fullscreen (void *voidhandle, int fson, int xinescreen)
 
int glwin_spaceball_available (void *voidhandle)
 
int glwin_get_spaceball (void *voidhandle, int *rx, int *ry, int *rz, int *tx, int *ty, int *tz, int *buttons)
 

Function Documentation

◆ glwin_create()

void* glwin_create ( const char *  wintitle,
int  width,
int  height 
)

Definition at line 3315 of file glwin.c.

Referenced by main(), and tachyon_display_create().

◆ glwin_destroy()

void glwin_destroy ( void *  voidhandle)

Definition at line 3319 of file glwin.c.

Referenced by main(), and tachyon_display_delete().

◆ glwin_draw_image()

void glwin_draw_image ( void *  voidhandle,
int  xsize,
int  ysize,
unsigned char *  img 
)

Definition at line 3359 of file glwin.c.

Referenced by main(), and tachyon_display_draw().

◆ glwin_draw_image_rgb3u()

void glwin_draw_image_rgb3u ( void *  voidhandle,
int  stereomode,
int  ixs,
int  iys,
const unsigned char *  rgb3u 
)

Definition at line 3363 of file glwin.c.

◆ glwin_draw_image_tex_rgb3u()

void glwin_draw_image_tex_rgb3u ( void *  voidhandle,
int  stereomode,
int  ixs,
int  iys,
const unsigned char *  rgb3u 
)

Definition at line 3368 of file glwin.c.

◆ glwin_draw_sphere_tex()

void glwin_draw_sphere_tex ( float  rad,
int  res,
float  txlatstart,
float  txlatend 
)

Definition at line 3383 of file glwin.c.

◆ glwin_fullscreen()

int glwin_fullscreen ( void *  voidhandle,
int  fson,
int  xinescreen 
)

Definition at line 3400 of file glwin.c.

Referenced by tachyon_display_draw().

◆ glwin_get_lastevent()

int glwin_get_lastevent ( void *  voidhandle,
int *  evdev,
int *  evval,
char *  evkey 
)

Definition at line 3347 of file glwin.c.

Referenced by tachyon_display_draw().

◆ glwin_get_mousepointer()

int glwin_get_mousepointer ( void *  voidhandle,
int *  x,
int *  y 
)

Definition at line 3343 of file glwin.c.

◆ glwin_get_spaceball()

int glwin_get_spaceball ( void *  voidhandle,
int *  rx,
int *  ry,
int *  rz,
int *  tx,
int *  ty,
int *  tz,
int *  buttons 
)

Definition at line 3408 of file glwin.c.

Referenced by tachyon_spaceball_update().

◆ glwin_get_wininfo()

int glwin_get_wininfo ( void *  voidhandle,
int *  instereo,
int *  havestencil 
)

Definition at line 3331 of file glwin.c.

Referenced by main(), and tachyon_display_draw().

◆ glwin_get_winpos()

int glwin_get_winpos ( void *  voidhandle,
int *  xpos,
int *  ypos 
)

Definition at line 3339 of file glwin.c.

◆ glwin_get_winsize()

int glwin_get_winsize ( void *  voidhandle,
int *  xsize,
int *  ysize 
)

Definition at line 3335 of file glwin.c.

Referenced by main(), and tachyon_display_draw().

◆ glwin_handle_events()

int glwin_handle_events ( void *  voidhandle,
int  evblockmode 
)

Definition at line 3327 of file glwin.c.

Referenced by tachyon_display_draw().

◆ glwin_query_extension()

int glwin_query_extension ( const char *  extname)

Definition at line 3351 of file glwin.c.

◆ glwin_query_vsync()

int glwin_query_vsync ( void *  voidhandle,
int *  onoff 
)

Definition at line 3355 of file glwin.c.

References GLWIN_NOT_IMPLEMENTED.

◆ glwin_reposition()

int glwin_reposition ( void *  voidhandle,
int  xpos,
int  ypos 
)

Definition at line 3396 of file glwin.c.

◆ glwin_resize()

int glwin_resize ( void *  voidhandle,
int  width,
int  height 
)

Definition at line 3392 of file glwin.c.

Referenced by tachyon_display_draw().

◆ glwin_spaceball_available()

int glwin_spaceball_available ( void *  voidhandle)

Definition at line 3404 of file glwin.c.

◆ glwin_spheremap_draw()

void glwin_spheremap_draw ( void *  voidhandle,
int  stereomode,
int  ixs,
int  iys,
const float *  hmdquat,
float  fov,
float  rad,
int  res 
)

Definition at line 3387 of file glwin.c.

◆ glwin_spheremap_draw_prepare()

void glwin_spheremap_draw_prepare ( void *  voidhandle)

Definition at line 3374 of file glwin.c.

◆ glwin_spheremap_upload_tex_rgb3u()

void glwin_spheremap_upload_tex_rgb3u ( void *  voidhandle,
int  ixs,
int  iys,
const unsigned char *  rgb3u 
)

Definition at line 3378 of file glwin.c.

◆ glwin_swap_buffers()

void glwin_swap_buffers ( void *  voidhandle)

Definition at line 3323 of file glwin.c.