1
0
Fork 0
spectre/include/Spectre/Graphics.h
2016-01-10 09:26:43 +01:00

49 lines
644 B
C++

#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <Spectre/Display/Display.h>
class PlatformApplication;
class Graphics
{
public :
enum MatrixMode {
PROJECTION,
MODELVIEW,
};
enum VertexType {
TRIANGLES,
};
public :
Graphics(PlatformApplication *platform);
~Graphics();
bool init();
void shutdown();
void setDisplayMode(Display::Mode mode);
void setSize(int width, int height);
void setViewport(int x, int y, int width, int height);
void setClearColor(float r, float g, float b);
void clearBuffer();
void swapBuffers();
protected :
int m_width;
int m_height;
Display *m_display;
};
#endif /* GRAPHICS_H */