-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ground.h
35 lines (25 loc) · 847 Bytes
/
Ground.h
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
/*
* Ground.h: Header file for a class that draws the ground.
*
* (c) 2001-2002: Stephen Chenney, University of Wisconsin at Madison.
*/
#ifndef _GROUND_H_
#define _GROUND_H_
#include <FL/gl.h>
class Ground {
private:
GLubyte display_list; // The display list that does all the work.
GLuint texture_obj; // The object for the grass texture.
bool initialized; // Whether or not we have been initialised.
public:
// Constructor. Can't do initialization here because we are
// created before the OpenGL context is set up.
Ground(void) { display_list = 0; initialized = false; };
// Destructor. Frees the display lists and texture object.
~Ground(void);
// Initializer. Creates the display list.
bool Initialize(void);
// Does the drawing.
void Draw(void);
};
#endif