ReactOS  0.4.12-dev-712-ge6be187
types.h File Reference
#include "GL/gl.h"
#include "config.h"
#include "fixed.h"
#include "dd.h"
Include dependency graph for types.h:

Go to the source code of this file.

Classes

struct  gl_image
 
struct  gl_texture_image
 
struct  gl_api_table
 
struct  gl_light
 
struct  gl_lightmodel
 
struct  gl_material
 
struct  gl_accum_attrib
 
struct  gl_colorbuffer_attrib
 
struct  gl_current_attrib
 
struct  gl_depthbuffer_attrib
 
struct  gl_enable_attrib
 
struct  gl_eval_attrib
 
struct  gl_fog_attrib
 
struct  gl_hint_attrib
 
struct  gl_light_attrib
 
struct  gl_line_attrib
 
struct  gl_list_attrib
 
struct  gl_pixel_attrib
 
struct  gl_point_attrib
 
struct  gl_polygon_attrib
 
struct  gl_scissor_attrib
 
struct  gl_stencil_attrib
 
struct  gl_texture_attrib
 
struct  gl_transform_attrib
 
struct  gl_viewport_attrib
 
struct  gl_attrib_node
 
struct  gl_pixelstore_attrib
 
struct  gl_array_attrib
 
struct  gl_feedback
 
struct  gl_selection
 
struct  gl_1d_map
 
struct  gl_2d_map
 
struct  gl_evaluators
 
struct  gl_texture_object
 
struct  gl_shared_state
 
struct  gl_visual
 
struct  gl_frame_buffer
 
struct  gl_context
 

Macros

#define FRONT_AMBIENT_BIT   0x1
 
#define BACK_AMBIENT_BIT   0x2
 
#define FRONT_DIFFUSE_BIT   0x4
 
#define BACK_DIFFUSE_BIT   0x8
 
#define FRONT_SPECULAR_BIT   0x10
 
#define BACK_SPECULAR_BIT   0x20
 
#define FRONT_EMISSION_BIT   0x40
 
#define BACK_EMISSION_BIT   0x80
 
#define FRONT_SHININESS_BIT   0x100
 
#define BACK_SHININESS_BIT   0x200
 
#define FRONT_INDEXES_BIT   0x400
 
#define BACK_INDEXES_BIT   0x800
 
#define FRONT_MATERIAL_BITS
 
#define BACK_MATERIAL_BITS
 
#define ALL_MATERIAL_BITS   (FRONT_MATERIAL_BITS | BACK_MATERIAL_BITS)
 
#define EXP_TABLE_SIZE   512
 
#define SHINE_TABLE_SIZE   200
 
#define Q_BIT   1
 
#define R_BIT   2
 
#define S_BIT   4
 
#define T_BIT   8
 
#define TEXTURE_1D   1
 
#define TEXTURE_2D   2
 
#define CLIP_FCOLOR_BIT   0x01
 
#define CLIP_BCOLOR_BIT   0x02
 
#define CLIP_FINDEX_BIT   0x04
 
#define CLIP_BINDEX_BIT   0x08
 
#define CLIP_TEXTURE_BIT   0x10
 
#define ALPHATEST_BIT   0x001 /* Alpha-test pixels */
 
#define BLEND_BIT   0x002 /* Blend pixels */
 
#define DEPTH_BIT   0x004 /* Depth-test pixels */
 
#define FOG_BIT   0x008 /* Per-pixel fog */
 
#define LOGIC_OP_BIT   0x010 /* Apply logic op in software */
 
#define SCISSOR_BIT   0x020 /* Scissor pixels */
 
#define STENCIL_BIT   0x040 /* Stencil pixels */
 
#define MASKING_BIT   0x080 /* Do glColorMask() or glIndexMask() */
 
#define ALPHABUF_BIT   0x100 /* Using software alpha buffer */
 
#define WINCLIP_BIT   0x200 /* Clip pixels/primitives to window */
 
#define FRONT_AND_BACK_BIT   0x400 /* Write to front and back buffers */
 
#define NO_DRAW_BIT   0x800 /* Don't write any pixels */
 
#define NEW_LIGHTING   0x1
 
#define NEW_RASTER_OPS   0x2
 
#define NEW_TEXTURING   0x4
 
#define NEW_POLYGON   0x8
 
#define NEW_ALL   0xf
 
#define MATRIX_GENERAL   0 /* general 4x4 matrix */
 
#define MATRIX_IDENTITY   1 /* identity matrix */
 
#define MATRIX_ORTHO   2 /* orthographic projection matrix */
 
#define MATRIX_PERSPECTIVE   3 /* perspective projection matrix */
 
#define MATRIX_2D   4 /* 2-D transformation */
 
#define MATRIX_2D_NO_ROT   5 /* 2-D scale & translate only */
 
#define MATRIX_3D   6 /* 3-D transformation */
 

Typedefs

typedef GLshort GLaccum
 
typedef GLubyte GLstencil
 
typedef GLint GLdepth
 
typedef struct gl_visual GLvisual
 
typedef struct gl_context GLcontext
 
typedef struct gl_frame_buffer GLframebuffer
 
typedef void(* points_func) (GLcontext *ctx, GLuint first, GLuint last)
 
typedef void(* line_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint pv)
 
typedef void(* triangle_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint v3, GLuint pv)
 
typedef void(* quad_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint v3, GLuint v4, GLuint pv)
 
typedef void(* rect_func) (GLcontext *ctx, GLint x, GLint y, GLint width, GLint height)
 
typedef void(* interp_func) (GLcontext *, GLuint, GLuint, GLfloat, GLuint, GLuint)
 
typedef void(* TextureSampleFunc) (const struct gl_texture_object *tObj, GLuint n, const GLfloat s[], const GLfloat t[], const GLfloat u[], const GLfloat lambda[], GLubyte r[], GLubyte g[], GLubyte b[], GLubyte a[])
 
typedef union node Node
 

Macro Definition Documentation

◆ ALL_MATERIAL_BITS

#define ALL_MATERIAL_BITS   (FRONT_MATERIAL_BITS | BACK_MATERIAL_BITS)

Definition at line 550 of file types.h.

◆ ALPHABUF_BIT

#define ALPHABUF_BIT   0x100 /* Using software alpha buffer */

Definition at line 1223 of file types.h.

◆ ALPHATEST_BIT

#define ALPHATEST_BIT   0x001 /* Alpha-test pixels */

Definition at line 1215 of file types.h.

◆ BACK_AMBIENT_BIT

#define BACK_AMBIENT_BIT   0x2

Definition at line 530 of file types.h.

◆ BACK_DIFFUSE_BIT

#define BACK_DIFFUSE_BIT   0x8

Definition at line 532 of file types.h.

◆ BACK_EMISSION_BIT

#define BACK_EMISSION_BIT   0x80

Definition at line 536 of file types.h.

◆ BACK_INDEXES_BIT

#define BACK_INDEXES_BIT   0x800

Definition at line 540 of file types.h.

◆ BACK_MATERIAL_BITS

#define BACK_MATERIAL_BITS
Value:
BACK_DIFFUSE_BIT | BACK_SPECULAR_BIT | \
BACK_SHININESS_BIT | BACK_INDEXES_BIT)
#define BACK_EMISSION_BIT
Definition: types.h:536
#define BACK_AMBIENT_BIT
Definition: types.h:530
#define BACK_INDEXES_BIT
Definition: types.h:540
#define BACK_SPECULAR_BIT
Definition: types.h:534

Definition at line 546 of file types.h.

◆ BACK_SHININESS_BIT

#define BACK_SHININESS_BIT   0x200

Definition at line 538 of file types.h.

◆ BACK_SPECULAR_BIT

#define BACK_SPECULAR_BIT   0x20

Definition at line 534 of file types.h.

◆ BLEND_BIT

#define BLEND_BIT   0x002 /* Blend pixels */

Definition at line 1216 of file types.h.

◆ CLIP_BCOLOR_BIT

#define CLIP_BCOLOR_BIT   0x02

Definition at line 1205 of file types.h.

◆ CLIP_BINDEX_BIT

#define CLIP_BINDEX_BIT   0x08

Definition at line 1207 of file types.h.

◆ CLIP_FCOLOR_BIT

#define CLIP_FCOLOR_BIT   0x01

Definition at line 1204 of file types.h.

◆ CLIP_FINDEX_BIT

#define CLIP_FINDEX_BIT   0x04

Definition at line 1206 of file types.h.

◆ CLIP_TEXTURE_BIT

#define CLIP_TEXTURE_BIT   0x10

Definition at line 1208 of file types.h.

◆ DEPTH_BIT

#define DEPTH_BIT   0x004 /* Depth-test pixels */

Definition at line 1217 of file types.h.

◆ EXP_TABLE_SIZE

#define EXP_TABLE_SIZE   512

Definition at line 557 of file types.h.

◆ FOG_BIT

#define FOG_BIT   0x008 /* Per-pixel fog */

Definition at line 1218 of file types.h.

◆ FRONT_AMBIENT_BIT

#define FRONT_AMBIENT_BIT   0x1

Definition at line 529 of file types.h.

◆ FRONT_AND_BACK_BIT

#define FRONT_AND_BACK_BIT   0x400 /* Write to front and back buffers */

Definition at line 1225 of file types.h.

◆ FRONT_DIFFUSE_BIT

#define FRONT_DIFFUSE_BIT   0x4

Definition at line 531 of file types.h.

◆ FRONT_EMISSION_BIT

#define FRONT_EMISSION_BIT   0x40

Definition at line 535 of file types.h.

◆ FRONT_INDEXES_BIT

#define FRONT_INDEXES_BIT   0x400

Definition at line 539 of file types.h.

◆ FRONT_MATERIAL_BITS

#define FRONT_MATERIAL_BITS
Value:
FRONT_DIFFUSE_BIT | FRONT_SPECULAR_BIT | \
FRONT_SHININESS_BIT | FRONT_INDEXES_BIT)
#define FRONT_AMBIENT_BIT
Definition: types.h:529
#define FRONT_INDEXES_BIT
Definition: types.h:539
#define FRONT_EMISSION_BIT
Definition: types.h:535
#define FRONT_SPECULAR_BIT
Definition: types.h:533

Definition at line 542 of file types.h.

◆ FRONT_SHININESS_BIT

#define FRONT_SHININESS_BIT   0x100

Definition at line 537 of file types.h.

◆ FRONT_SPECULAR_BIT

#define FRONT_SPECULAR_BIT   0x10

Definition at line 533 of file types.h.

◆ LOGIC_OP_BIT

#define LOGIC_OP_BIT   0x010 /* Apply logic op in software */

Definition at line 1219 of file types.h.

◆ MASKING_BIT

#define MASKING_BIT   0x080 /* Do glColorMask() or glIndexMask() */

Definition at line 1222 of file types.h.

◆ MATRIX_2D

#define MATRIX_2D   4 /* 2-D transformation */

Definition at line 1246 of file types.h.

◆ MATRIX_2D_NO_ROT

#define MATRIX_2D_NO_ROT   5 /* 2-D scale & translate only */

Definition at line 1247 of file types.h.

◆ MATRIX_3D

#define MATRIX_3D   6 /* 3-D transformation */

Definition at line 1248 of file types.h.

◆ MATRIX_GENERAL

#define MATRIX_GENERAL   0 /* general 4x4 matrix */

Definition at line 1242 of file types.h.

◆ MATRIX_IDENTITY

#define MATRIX_IDENTITY   1 /* identity matrix */

Definition at line 1243 of file types.h.

◆ MATRIX_ORTHO

#define MATRIX_ORTHO   2 /* orthographic projection matrix */

Definition at line 1244 of file types.h.

◆ MATRIX_PERSPECTIVE

#define MATRIX_PERSPECTIVE   3 /* perspective projection matrix */

Definition at line 1245 of file types.h.

◆ NEW_ALL

#define NEW_ALL   0xf

Definition at line 1236 of file types.h.

◆ NEW_LIGHTING

#define NEW_LIGHTING   0x1

Definition at line 1232 of file types.h.

◆ NEW_POLYGON

#define NEW_POLYGON   0x8

Definition at line 1235 of file types.h.

◆ NEW_RASTER_OPS

#define NEW_RASTER_OPS   0x2

Definition at line 1233 of file types.h.

◆ NEW_TEXTURING

#define NEW_TEXTURING   0x4

Definition at line 1234 of file types.h.

◆ NO_DRAW_BIT

#define NO_DRAW_BIT   0x800 /* Don't write any pixels */

Definition at line 1226 of file types.h.

◆ Q_BIT

#define Q_BIT   1

Definition at line 889 of file types.h.

◆ R_BIT

#define R_BIT   2

Definition at line 890 of file types.h.

◆ S_BIT

#define S_BIT   4

Definition at line 891 of file types.h.

◆ SCISSOR_BIT

#define SCISSOR_BIT   0x020 /* Scissor pixels */

Definition at line 1220 of file types.h.

◆ SHINE_TABLE_SIZE

#define SHINE_TABLE_SIZE   200

Definition at line 558 of file types.h.

◆ STENCIL_BIT

#define STENCIL_BIT   0x040 /* Stencil pixels */

Definition at line 1221 of file types.h.

◆ T_BIT

#define T_BIT   8

Definition at line 892 of file types.h.

◆ TEXTURE_1D

#define TEXTURE_1D   1

Definition at line 894 of file types.h.

◆ TEXTURE_2D

#define TEXTURE_2D   2

Definition at line 895 of file types.h.

◆ WINCLIP_BIT

#define WINCLIP_BIT   0x200 /* Clip pixels/primitives to window */

Definition at line 1224 of file types.h.

Typedef Documentation

◆ GLaccum

typedef GLshort GLaccum

Definition at line 189 of file types.h.

◆ GLcontext

Definition at line 228 of file types.h.

◆ GLdepth

typedef GLint GLdepth

Definition at line 218 of file types.h.

◆ GLframebuffer

Definition at line 230 of file types.h.

◆ GLstencil

typedef GLubyte GLstencil

Definition at line 208 of file types.h.

◆ GLvisual

Definition at line 226 of file types.h.

◆ interp_func

typedef void(* interp_func) (GLcontext *, GLuint, GLuint, GLfloat, GLuint, GLuint)

Definition at line 253 of file types.h.

◆ line_func

typedef void(* line_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint pv)

Definition at line 239 of file types.h.

◆ Node

typedef union node Node

Definition at line 1255 of file types.h.

◆ points_func

typedef void(* points_func) (GLcontext *ctx, GLuint first, GLuint last)

Definition at line 237 of file types.h.

◆ quad_func

typedef void(* quad_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint v3, GLuint v4, GLuint pv)

Definition at line 244 of file types.h.

◆ rect_func

typedef void(* rect_func) (GLcontext *ctx, GLint x, GLint y, GLint width, GLint height)

Definition at line 247 of file types.h.

◆ TextureSampleFunc

typedef void(* TextureSampleFunc) (const struct gl_texture_object *tObj, GLuint n, const GLfloat s[], const GLfloat t[], const GLfloat u[], const GLfloat lambda[], GLubyte r[], GLubyte g[], GLubyte b[], GLubyte a[])

Definition at line 261 of file types.h.

◆ triangle_func

typedef void(* triangle_func) (GLcontext *ctx, GLuint v1, GLuint v2, GLuint v3, GLuint pv)

Definition at line 241 of file types.h.