File: gltest.h

package info (click to toggle)
devil 1.6.7-5%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 11,536 kB
  • ctags: 7,441
  • sloc: ansic: 35,573; sh: 8,075; cpp: 7,465; pascal: 792; makefile: 399; python: 47
file content (36 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (10)
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
//-----------------------------------------------------------------------------
//
// ImageLib GL Test Source
// Copyright (C) 2000-2002 by Denton Woods
// Last modified: 10/13/2000 <--Y2K Compliant! =]
//
// Filename: examples/gl example/gl example.h
//
// Description: Sample implementation of an OpenGL image viewer.
//
//-----------------------------------------------------------------------------

#ifndef GLTEST_H
#define GLTEST_H

// We don't want a larger window than this.
#define MAX_X 640
#define MAX_Y 480

// Function prototypes.
void DisplayFunc(void);
void CleanUp(void);
void ResizeFunc(int NewWidth, int NewHeight);
void IdleFunc(void);
void KeyboardFunc(unsigned char cChar, int nMouseX, int nMouseY);
ILboolean Setup();

// Has the main GL texture been deleted?
ILboolean bCleaned = 0;

// GL texture ID
GLuint TexID = 0;
// IL image ID
ILuint ImgId = 0;

#endif//GLTEST_H