struct texture * TextureInitFromFile(char *file)
Initialize a new texture object.
Definition: texture.c:28
unsigned char * data
data is always RGB with 8-bits per component and no padding in rows.
Definition: texture.h:24
unsigned int TextureSample(struct texture *texture, float u, float v)
Texel lookup.
Definition: texture.c:51
void TextureDeinit(struct texture *texture)
De-initialize a texture object.
Definition: texture.c:40
Structure representing a texture image.
Definition: texture.h:23