Files
CGR3D-Eind/Meinkraft/Meinkraft.h
T
2016-06-20 22:35:14 +02:00

40 lines
547 B
C++

#pragma once
class Player;
class StateHandler;
#include "Vector.h"
#include <GL\freeglut.h>
class KeyboardState
{
public:
bool keys[256];
bool special[256];
bool control, shift, alt;
KeyboardState();
};
class Meinkraft
{
private:
void loadTexture(void);
public:
void init();
void draw();
void update();
Player* player;
StateHandler* statehandler;
static int width, height;
KeyboardState keyboardState;
KeyboardState prevKeyboardState;
Vec2f mouseOffset;
Vec2f mousePosition;
float lastFrameTime;
static GLuint texture;
};