| 1 |
2 |
moose |
// cube.h - interface for Cube class |
| 2 |
|
|
// (C)2001 Nicholas Davies |
| 3 |
|
|
|
| 4 |
|
|
#ifndef CUBE_H |
| 5 |
|
|
#define CUBE_H |
| 6 |
|
|
|
| 7 |
|
|
#include <alleggl.h> |
| 8 |
|
|
#include <allegro.h> |
| 9 |
|
|
|
| 10 |
|
|
class Cube |
| 11 |
|
|
{ |
| 12 |
|
|
private: |
| 13 |
|
|
float sl; |
| 14 |
|
|
float x, y, z; |
| 15 |
|
|
float xrot, yrot, zrot; |
| 16 |
|
|
|
| 17 |
|
|
public: |
| 18 |
|
|
static const float Vertices[8][3]; |
| 19 |
|
|
static const int Indices[6][4]; |
| 20 |
8 |
moose |
static const float Colors[6][4]; |
| 21 |
2 |
moose |
|
| 22 |
|
|
Cube(float x, float y, float z, float side_length); |
| 23 |
|
|
~Cube() {} |
| 24 |
|
|
|
| 25 |
|
|
void Update(); |
| 26 |
|
|
void Render(); |
| 27 |
|
|
}; |
| 28 |
|
|
|
| 29 |
|
|
#endif // CUBE_H |