File: glgdTexture.h

package info (click to toggle)
gauche-gtk 0.6%2Bgit20160927-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,452 kB
  • sloc: ansic: 7,097; lisp: 5,659; sh: 2,829; makefile: 338
file content (36 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (7)
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__ */