Init commit

This commit is contained in:
Dane Johnson
2021-01-12 14:09:38 -06:00
commit 584a8654a8
5 changed files with 51 additions and 0 deletions

4
core/.dir-locals.el Normal file
View File

@@ -0,0 +1,4 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c-mode . ((mode . c++))))

10
core/Transform.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef TRANSFORM_H
#define TRANSFORM_H
#include "types.h"
struct Transform {
Position position;
}
#endif /* TRANSFORM_H */

10
core/Vertex.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef VERTEX_H
#define VERTEX_H
#include "types.h"
struct Vertex {
cfloat x, y, z;
}
#endif /* VERTEX_H */

10
core/types.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef TYPES_H
#define TYPES_H
#include <GL/glew.h>
#include <glm/glm.hpp>
typedef glm::vec3 Position;
typedef GLfloat cfloat;
#endif /* TYPES_H */