Classes | |
struct | DisplayAssoc |
struct | OpenGLTextureStruct |
Structure holding information on OpenGL textures. More... | |
struct | _Gan_GLExt_Function_Pointers |
Structure to hold ARB OpenGL extension function pointers. More... | |
Defines | |
#define | QUIT 99 |
#define | GL_GLEXT_PROTOTYPES 1 |
#define | LARGEST_TEXTURE_TILE_SIZE 256 |
#define | gan_texGetProcAddress(name) (*glXGetProcAddressARB)(name) |
Typedefs | |
typedef OpenGLTextureStruct | Gan_OpenGLTextureStruct |
Structure holding information on OpenGL textures. | |
typedef _Gan_GLExt_Function_Pointers | Gan_GLExt_Function_Pointers |
Structure to hold ARB OpenGL extension function pointers. | |
Functions | |
Gan_Bool | gan_image_display (const Gan_Image *img) |
Displays an image using OpenGL. | |
Gan_Bool | gan_display_new_window (int height, int width, double zoom, char *name, int offset_r, int offset_c, int *window_id) |
Creates an OpenGL display window. | |
Gan_Bool | gan_display_new_window_array (int rows, int cols, int height, int width, double zoom, char *name, int offset_r, int offset_c, int *window_id, int **subwindow_id) |
Creates an OpenGL display window with subwindows. | |
void | gan_image_display_free_windows (void) |
Frees image display stuff. | |
Gan_Bool | gan_image_display_new_window (const Gan_Image *img, double zoom, char *name, int offset_r, int offset_c, int *window_idp) |
Displays an image using OpenGL. | |
void | gan_initialise_glext_func_ptrs (Gan_GLExt_Function_Pointers *pExtFnPtrs) |
Initialise OpenGL extension function pointer structure. | |
int | gan_check_glext_func_ptrs () |
Return status of OpenGL extension function pointer structure, non-zero is error. | |
Gan_Bool | gan_build_openGL_textures_for_image (Gan_Image *pgiImage, Gan_OpenGLTextureStruct *pOGLTexStruct) |
Build a set of OpenGL texture tiles for an image. | |
void | gan_free_openGL_textures_for_image (Gan_OpenGLTextureStruct *pOGLTexStruct) |
Free OpenGL texture tiles for an image. | |
Gan_Bool | gan_render_openGL_textures_for_image (Gan_OpenGLTextureStruct *pOGLTexStruct) |
Render OpenGL texture tiles for an image. | |
Variables | |
Gan_List * | list = NULL |
|
Build a set of OpenGL texture tiles for an image.
|
|
Creates an OpenGL display window.
|
|
Creates an OpenGL display window with subwindows.
malloc() .
|
|
Displays an image using OpenGL.
glDrawPixels() . Assumes that the graphics window has already been set up in a way similar to the procedure in gan_image_display_new_window().
|
|
Frees image display stuff.
|
|
Displays an image using OpenGL.
|