summaryrefslogtreecommitdiffstats
path: root/kue/graphics.h
blob: 810fe8d858d70d6a2cc39c9173568527a974edd6 (plain)
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
37
// Main header for the graphics subsystem

#ifndef _GRAPHICS_H
#define _GRAPHICS_H

#include "cue.h"
#include "disc.h"
#include "sphere.h"
#include "table.h"
#include "texture.h"

const int GRAPHICS_NOTEXTURE = 0;

class graphics {
  public:
	// Setup OpenGL
	static bool init();
	// Shut down OpenGL
	static bool deinit();

	static void resize(int width, int height);

	// Start and end drawing mode
	static void startDraw();
	static void endDraw();

	// Draw the basic scene
	static void drawScene();

	// Set the pen color
	static void setColor(double r, double g, double b);

	// Sets the viewing angle
	static void lookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz);
};

#endif