Initial commit
This commit is contained in:
commit
2193fa6696
390 changed files with 138391 additions and 0 deletions
23
headers/block.h
Normal file
23
headers/block.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
class CollisionBox
|
||||
{
|
||||
public:
|
||||
double x = 1;
|
||||
double y = 1;
|
||||
double z = 1;
|
||||
double fallSpeed = 1;
|
||||
bool fallDamage = true;
|
||||
bool enabled = true;
|
||||
};
|
||||
|
||||
class Block
|
||||
{
|
||||
public:
|
||||
double posx;
|
||||
double posy;
|
||||
double posz;
|
||||
int type;
|
||||
bool passesRedstone = true;
|
||||
bool isLight = false;
|
||||
int lightLevel = 0;
|
||||
CollisionBox collisionBox;
|
||||
};
|
11
headers/colors.h
Normal file
11
headers/colors.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
|
||||
class COLORS
|
||||
{
|
||||
public:
|
||||
int hexToDec(char num[]);
|
||||
// std::vector toRGB(char hexcode[]);
|
||||
};
|
17
headers/controls.h
Normal file
17
headers/controls.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
class Controls
|
||||
{
|
||||
public:
|
||||
bool FORWARD = false;
|
||||
bool BACKWARD = false;
|
||||
bool LEFT = false;
|
||||
bool RIGHT = false;
|
||||
bool JUMP = false;
|
||||
bool SNEAK = false;
|
||||
bool SPRINT = false;
|
||||
bool ATTACK = false;
|
||||
double ATTACK_PITCH = 0;
|
||||
double ATTACK_YAW = 0;
|
||||
bool USE = false;
|
||||
double USE_PITCH = 0;
|
||||
double USE_YAW = 0;
|
||||
};
|
16
headers/renderer.h
Normal file
16
headers/renderer.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <GLES3/gl3.h>
|
||||
#include <GL/glew.h>
|
||||
|
||||
#include "../defs.h"
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <GL/glut.h>
|
||||
#include <math.h>
|
||||
|
||||
// main renderer class
|
||||
class RENDERER
|
||||
{
|
||||
public:
|
||||
void render(GLFWwindow *window);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue