![]() |
TinyGL 0.4.1 for MinGW
|
#include <stdlib.h>#include <stdio.h>#include <math.h>#include <assert.h>#include <string.h>#include <GL/gl.h>#include "zbuffer.h"#include "zmath.h"#include "zfeatures.h"#include "opinfo.h"Go to the source code of this file.
Data Structures | |
| struct | GLSpecBuf |
| struct | GLLight |
| struct | GLMaterial |
| struct | GLViewport |
| union | GLParam |
| struct | GLParamBuffer |
| struct | GLList |
| struct | GLVertex |
| struct | GLImage |
| struct | GLTexture |
| struct | GLSharedState |
| struct | GLContext |
Macros | |
| #define | DEBUG |
| #define | ADD_OP(a, b, c) OP_ ## a , |
| #define | POLYGON_MAX_VERTEX 16 |
| #define | MAX_SPECULAR_BUFFERS 8 |
| #define | SPECULAR_BUFFER_SIZE 1024 |
| #define | SPECULAR_BUFFER_RESOLUTION 1024 |
| #define | MAX_MODELVIEW_STACK_DEPTH 32 |
| #define | MAX_PROJECTION_STACK_DEPTH 8 |
| #define | MAX_TEXTURE_STACK_DEPTH 8 |
| #define | MAX_NAME_STACK_DEPTH 64 |
| #define | MAX_TEXTURE_LEVELS 11 |
| #define | MAX_LIGHTS 16 |
| #define | VERTEX_HASH_SIZE 1031 |
| #define | MAX_DISPLAY_LISTS 1024 |
| #define | OP_BUFFER_MAX_SIZE 512 |
| #define | TGL_OFFSET_FILL 0x1 |
| #define | TGL_OFFSET_LINE 0x2 |
| #define | TGL_OFFSET_POINT 0x4 |
| #define | TEXTURE_HASH_TABLE_SIZE 256 |
| #define | dprintf(format, args...) fprintf(stderr,"In '%s': " format "\n",__FUNCTION__, ##args); |
| #define | ADD_OP(a, b, c) void glop ## a (GLContext *,GLParam *); |
| #define | CLIP_EPSILON (1E-5) |
Typedefs | |
| typedef struct GLSpecBuf | GLSpecBuf |
| typedef struct GLLight | GLLight |
| typedef struct GLMaterial | GLMaterial |
| typedef struct GLViewport | GLViewport |
| typedef struct GLParamBuffer | GLParamBuffer |
| typedef struct GLList | GLList |
| typedef struct GLVertex | GLVertex |
| typedef struct GLImage | GLImage |
| typedef struct GLTexture | GLTexture |
| typedef struct GLSharedState | GLSharedState |
| typedef void(* | gl_draw_triangle_func) (struct GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| typedef struct GLContext | GLContext |
Enumerations | |
| enum | |
Functions | |
| void | gl_add_op (GLParam *p) |
| void | gl_transform_to_viewport (GLContext *c, GLVertex *v) |
| void | gl_draw_triangle (GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| void | gl_draw_line (GLContext *c, GLVertex *p0, GLVertex *p1) |
| void | gl_draw_point (GLContext *c, GLVertex *p0) |
| void | gl_draw_triangle_point (GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| void | gl_draw_triangle_line (GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| void | gl_draw_triangle_fill (GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| void | gl_draw_triangle_select (GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p2) |
| void | gl_print_matrix (const float *m) |
| void | gl_add_select (GLContext *c, unsigned int zmin, unsigned int zmax) |
| void | gl_enable_disable_light (GLContext *c, int light, int v) |
| void | gl_shade_vertex (GLContext *c, GLVertex *v) |
| void | glInitTextures (GLContext *c) |
| void | glEndTextures (GLContext *c) |
| GLTexture * | alloc_texture (GLContext *c, int h) |
| void | gl_convertRGB_to_5R6G5B (unsigned short *pixmap, unsigned char *rgb, int xsize, int ysize) |
| void | gl_convertRGB_to_8A8R8G8B (unsigned int *pixmap, unsigned char *rgb, int xsize, int ysize) |
| void | gl_resizeImage (unsigned char *dest, int xsize_dest, int ysize_dest, unsigned char *src, int xsize_src, int ysize_src) |
| void | gl_resizeImageNoInterpolate (unsigned char *dest, int xsize_dest, int ysize_dest, unsigned char *src, int xsize_src, int ysize_src) |
| GLContext * | gl_get_context (void) |
| void | gl_fatal_error (char *format,...) |
| GLSpecBuf * | specbuf_get_buffer (GLContext *c, const int shininess_i, const float shininess) |
Variables | |
| GLContext * | gl_ctx |
| #define dprintf | ( | format, | |
| args... | |||
| ) | fprintf(stderr,"In '%s': " format "\n",__FUNCTION__, ##args); |
| typedef struct GLMaterial GLMaterial |
| typedef struct GLParamBuffer GLParamBuffer |
| typedef struct GLSharedState GLSharedState |
| typedef struct GLViewport GLViewport |
| void gl_add_select | ( | GLContext * | c, |
| unsigned int | zmin, | ||
| unsigned int | zmax | ||
| ) |
| void gl_convertRGB_to_5R6G5B | ( | unsigned short * | pixmap, |
| unsigned char * | rgb, | ||
| int | xsize, | ||
| int | ysize | ||
| ) |
Definition at line 7 of file image_util.c.
| void gl_convertRGB_to_8A8R8G8B | ( | unsigned int * | pixmap, |
| unsigned char * | rgb, | ||
| int | xsize, | ||
| int | ysize | ||
| ) |
Definition at line 21 of file image_util.c.
| void gl_enable_disable_light | ( | GLContext * | c, |
| int | light, | ||
| int | v | ||
| ) |
| void gl_resizeImage | ( | unsigned char * | dest, |
| int | xsize_dest, | ||
| int | ysize_dest, | ||
| unsigned char * | src, | ||
| int | xsize_src, | ||
| int | ysize_src | ||
| ) |
Definition at line 54 of file image_util.c.
| void gl_resizeImageNoInterpolate | ( | unsigned char * | dest, |
| int | xsize_dest, | ||
| int | ysize_dest, | ||
| unsigned char * | src, | ||
| int | xsize_src, | ||
| int | ysize_src | ||
| ) |
Definition at line 105 of file image_util.c.
| void glEndTextures | ( | GLContext * | c | ) |