-
Notifications
You must be signed in to change notification settings - Fork 3
Context.h
tiffany352 edited this page Jan 1, 2013
·
1 revision
typedef struct ilG_context {
ilG_drawable3d* drawable;
ilG_material* material;
ilG_texture* texture;
ilG_camera* camera;
il_world* world;
struct timeval tv;
unsigned *texunits;
size_t num_texunits;
size_t num_active;
} ilG_context;
Defines some useful state records for an OpenGL context. Allows the engine to save on redundant state changes. There should only ever be one of these per context. See drawable3d.h, material.h, texture.h, camera.h, world.h, and textureunit.h for more information.