TinyGL 0.4.1 for MinGW
Data Fields
GLContext Struct Reference

#include <zgl.h>

Data Fields

ZBufferzb
 
GLLight lights [MAX_LIGHTS]
 
GLLightfirst_light
 
V4 ambient_light_model
 
int local_light_model
 
int lighting_enabled
 
int light_model_two_side
 
GLMaterial materials [2]
 
int color_material_enabled
 
int current_color_material_mode
 
int current_color_material_type
 
GLTexturecurrent_texture
 
int texture_2d_enabled
 
GLSharedState shared_state
 
GLParamBuffercurrent_op_buffer
 
int current_op_buffer_index
 
int exec_flag
 
int compile_flag
 
int print_flag
 
int matrix_mode
 
M4matrix_stack [3]
 
M4matrix_stack_ptr [3]
 
int matrix_stack_depth_max [3]
 
M4 matrix_model_view_inv
 
M4 matrix_model_projection
 
int matrix_model_projection_updated
 
int matrix_model_projection_no_w_transform
 
int apply_texture_matrix
 
GLViewport viewport
 
int polygon_mode_back
 
int polygon_mode_front
 
int current_front_face
 
int current_shade_model
 
int current_cull_face
 
int cull_face_enabled
 
int normalize_enabled
 
gl_draw_triangle_func draw_triangle_front
 
gl_draw_triangle_func draw_triangle_back
 
int render_mode
 
unsigned int * select_buffer
 
int select_size
 
unsigned int * select_ptr
 
unsigned int * select_hit
 
int select_overflow
 
int select_hits
 
unsigned int name_stack [MAX_NAME_STACK_DEPTH]
 
int name_stack_size
 
float clear_depth
 
V4 clear_color
 
V4 current_color
 
unsigned int longcurrent_color [3]
 
V4 current_normal
 
V4 current_tex_coord
 
int current_edge_flag
 
int in_begin
 
int begin_type
 
int vertex_n
 
int vertex_cnt
 
int vertex_max
 
GLVertexvertex
 
float * vertex_array
 
int vertex_array_size
 
int vertex_array_stride
 
float * normal_array
 
int normal_array_stride
 
float * color_array
 
int color_array_size
 
int color_array_stride
 
float * texcoord_array
 
int texcoord_array_size
 
int texcoord_array_stride
 
int client_states
 
float offset_factor
 
float offset_units
 
int offset_states
 
GLSpecBufspecbuf_first
 
int specbuf_used_counter
 
int specbuf_num_buffers
 
void * opaque
 
int(* gl_resize_viewport )(struct GLContext *c, int *xsize, int *ysize)
 
int depth_test
 

Detailed Description

Definition at line 159 of file zgl.h.

Field Documentation

◆ ambient_light_model

V4 ambient_light_model

Definition at line 166 of file zgl.h.

◆ apply_texture_matrix

int apply_texture_matrix

Definition at line 200 of file zgl.h.

◆ begin_type

int begin_type

Definition at line 241 of file zgl.h.

◆ clear_color

V4 clear_color

Definition at line 230 of file zgl.h.

◆ clear_depth

float clear_depth

Definition at line 229 of file zgl.h.

◆ client_states

int client_states

Definition at line 258 of file zgl.h.

◆ color_array

float* color_array

Definition at line 252 of file zgl.h.

◆ color_array_size

int color_array_size

Definition at line 253 of file zgl.h.

◆ color_array_stride

int color_array_stride

Definition at line 254 of file zgl.h.

◆ color_material_enabled

int color_material_enabled

Definition at line 173 of file zgl.h.

◆ compile_flag

int compile_flag

Definition at line 187 of file zgl.h.

◆ cull_face_enabled

int cull_face_enabled

Definition at line 212 of file zgl.h.

◆ current_color

V4 current_color

Definition at line 233 of file zgl.h.

◆ current_color_material_mode

int current_color_material_mode

Definition at line 174 of file zgl.h.

◆ current_color_material_type

int current_color_material_type

Definition at line 175 of file zgl.h.

◆ current_cull_face

int current_cull_face

Definition at line 211 of file zgl.h.

◆ current_edge_flag

int current_edge_flag

Definition at line 237 of file zgl.h.

◆ current_front_face

int current_front_face

Definition at line 209 of file zgl.h.

◆ current_normal

V4 current_normal

Definition at line 235 of file zgl.h.

◆ current_op_buffer

GLParamBuffer* current_op_buffer

Definition at line 185 of file zgl.h.

◆ current_op_buffer_index

int current_op_buffer_index

Definition at line 186 of file zgl.h.

◆ current_shade_model

int current_shade_model

Definition at line 210 of file zgl.h.

◆ current_tex_coord

V4 current_tex_coord

Definition at line 236 of file zgl.h.

◆ current_texture

GLTexture* current_texture

Definition at line 178 of file zgl.h.

◆ depth_test

int depth_test

Definition at line 277 of file zgl.h.

◆ draw_triangle_back

gl_draw_triangle_func draw_triangle_back

Definition at line 214 of file zgl.h.

◆ draw_triangle_front

gl_draw_triangle_func draw_triangle_front

Definition at line 214 of file zgl.h.

◆ exec_flag

int exec_flag

Definition at line 187 of file zgl.h.

◆ first_light

GLLight* first_light

Definition at line 165 of file zgl.h.

◆ gl_resize_viewport

int(* gl_resize_viewport) (struct GLContext *c, int *xsize, int *ysize)

Definition at line 274 of file zgl.h.

◆ in_begin

int in_begin

Definition at line 240 of file zgl.h.

◆ light_model_two_side

int light_model_two_side

Definition at line 169 of file zgl.h.

◆ lighting_enabled

int lighting_enabled

Definition at line 168 of file zgl.h.

◆ lights

Definition at line 164 of file zgl.h.

◆ local_light_model

int local_light_model

Definition at line 167 of file zgl.h.

◆ longcurrent_color

unsigned int longcurrent_color[3]

Definition at line 234 of file zgl.h.

◆ materials

GLMaterial materials[2]

Definition at line 172 of file zgl.h.

◆ matrix_mode

int matrix_mode

Definition at line 191 of file zgl.h.

◆ matrix_model_projection

M4 matrix_model_projection

Definition at line 197 of file zgl.h.

◆ matrix_model_projection_no_w_transform

int matrix_model_projection_no_w_transform

Definition at line 199 of file zgl.h.

◆ matrix_model_projection_updated

int matrix_model_projection_updated

Definition at line 198 of file zgl.h.

◆ matrix_model_view_inv

M4 matrix_model_view_inv

Definition at line 196 of file zgl.h.

◆ matrix_stack

M4* matrix_stack[3]

Definition at line 192 of file zgl.h.

◆ matrix_stack_depth_max

int matrix_stack_depth_max[3]

Definition at line 194 of file zgl.h.

◆ matrix_stack_ptr

M4* matrix_stack_ptr[3]

Definition at line 193 of file zgl.h.

◆ name_stack

unsigned int name_stack[MAX_NAME_STACK_DEPTH]

Definition at line 225 of file zgl.h.

◆ name_stack_size

int name_stack_size

Definition at line 226 of file zgl.h.

◆ normal_array

float* normal_array

Definition at line 250 of file zgl.h.

◆ normal_array_stride

int normal_array_stride

Definition at line 251 of file zgl.h.

◆ normalize_enabled

int normalize_enabled

Definition at line 213 of file zgl.h.

◆ offset_factor

float offset_factor

Definition at line 261 of file zgl.h.

◆ offset_states

int offset_states

Definition at line 263 of file zgl.h.

◆ offset_units

float offset_units

Definition at line 262 of file zgl.h.

◆ opaque

void* opaque

Definition at line 272 of file zgl.h.

◆ polygon_mode_back

int polygon_mode_back

Definition at line 206 of file zgl.h.

◆ polygon_mode_front

int polygon_mode_front

Definition at line 207 of file zgl.h.

◆ print_flag

int print_flag

Definition at line 187 of file zgl.h.

◆ render_mode

int render_mode

Definition at line 217 of file zgl.h.

◆ select_buffer

unsigned int* select_buffer

Definition at line 218 of file zgl.h.

◆ select_hit

unsigned int * select_hit

Definition at line 220 of file zgl.h.

◆ select_hits

int select_hits

Definition at line 222 of file zgl.h.

◆ select_overflow

int select_overflow

Definition at line 221 of file zgl.h.

◆ select_ptr

unsigned int* select_ptr

Definition at line 220 of file zgl.h.

◆ select_size

int select_size

Definition at line 219 of file zgl.h.

◆ shared_state

GLSharedState shared_state

Definition at line 182 of file zgl.h.

◆ specbuf_first

GLSpecBuf* specbuf_first

Definition at line 267 of file zgl.h.

◆ specbuf_num_buffers

int specbuf_num_buffers

Definition at line 269 of file zgl.h.

◆ specbuf_used_counter

int specbuf_used_counter

Definition at line 268 of file zgl.h.

◆ texcoord_array

float* texcoord_array

Definition at line 255 of file zgl.h.

◆ texcoord_array_size

int texcoord_array_size

Definition at line 256 of file zgl.h.

◆ texcoord_array_stride

int texcoord_array_stride

Definition at line 257 of file zgl.h.

◆ texture_2d_enabled

int texture_2d_enabled

Definition at line 179 of file zgl.h.

◆ vertex

GLVertex* vertex

Definition at line 244 of file zgl.h.

◆ vertex_array

float* vertex_array

Definition at line 247 of file zgl.h.

◆ vertex_array_size

int vertex_array_size

Definition at line 248 of file zgl.h.

◆ vertex_array_stride

int vertex_array_stride

Definition at line 249 of file zgl.h.

◆ vertex_cnt

int vertex_cnt

Definition at line 242 of file zgl.h.

◆ vertex_max

int vertex_max

Definition at line 243 of file zgl.h.

◆ vertex_n

int vertex_n

Definition at line 242 of file zgl.h.

◆ viewport

GLViewport viewport

Definition at line 203 of file zgl.h.

◆ zb

ZBuffer* zb

Definition at line 161 of file zgl.h.


The documentation for this struct was generated from the following file: