-
Notifications
You must be signed in to change notification settings - Fork 3
Tracker.h
tiffany352 edited this page Jan 1, 2013
·
1 revision
typedef struct ilG_trackiterator ilG_trackiterator;
A type used for iterating over all of the tracked positionables in a context.
void ilG_trackPositionable(ilG_context*, il_positionable*);
void ilG_untrackPositionable(ilG_context*, il_positionable*);
Registers a positionable to be tracked (AKA drawn) in the provided context. WARNING: the drawable, material, and texture in the positionable MUST have an ID assigned (see the *assignId functions) or they will not be registered.
ilG_trackiterator* ilG_trackiterator_new(ilG_context*);
Creates a new iterator for the given context.
int ilG_trackIterate(ilG_trackiterator*);
Iterates by 1 step and returns whether it was successful.
il_positionable* ilG_trackGetPositionable(ilG_trackiterator*);
ilG_drawable3d* ilG_trackGetDrawable(ilG_trackiterator*);
ilG_material* ilG_trackGetMaterial(ilG_trackiterator*);
ilG_texture* ilG_trackGetTexture(ilG_trackiterator*);
Gets the curren positionable/drawable/material/texture from the provided iterator.
ilG_drawable3d* ilG_drawable3d_fromId(unsigned int id);
ilG_material* ilG_material_fromId(unsigned int id);
ilG_texture* ilG_texture_fromId(unsigned int id);
void ilG_drawable3d_assignId(ilG_drawable3d* self);
void ilG_material_assignId(ilG_material* self);
void ilG_texture_assignId(ilG_texture* self);
void ilG_drawable3d_setId(ilG_drawable3d* self, unsigned int id);
void ilG_material_setId(ilG_material* self, unsigned int id);
void ilG_texture_setId(ilG_texture* self, unsigned int id);
ID management functions.