1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
/*
* gldgTexture.h
*
* OpenGL Graph Display texture utility module header file
*
* Written by: Shawn Taras
*/
#ifndef __GLGDTEXTURE_H__
#define __GLGDTEXTURE_H__
SCM_DECL_BEGIN
/*
* Type Definitions
*/
typedef struct _glgdTexture
{
GLuint name;
GLsizei width;
GLsizei height;
GLvoid *texels;
} glgdTexture;
/*
* Module API
*/
glgdTexture *glgdTextureCreate(void);
glgdTexture *glgdTextureDestroy(glgdTexture *tex);
GLboolean glgdTextureInit(glgdTexture *tex);
GLboolean glgdTextureFini(glgdTexture *tex);
GLboolean glgdTextureSetup(glgdTexture *tex, int width, int height);
SCM_DECL_END
#endif /* __GLGDTEXTURE_H__ */
|