Change notation for dengine headers

This commit is contained in:
Doyle Thai 2016-06-28 16:00:03 +10:00
parent 26cec05ff0
commit 76d6dfcf2f
14 changed files with 30 additions and 28 deletions

View File

@ -2,8 +2,9 @@
#define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION
#include <STB/stb_image.h> #include <STB/stb_image.h>
#include <Dengine/Platform.h> #include "Dengine/Platform.h"
#include <Dengine/AssetManager.h> #include "Dengine/AssetManager.h"
GLOBAL_VAR AssetManager assetManager; GLOBAL_VAR AssetManager assetManager;
Texture *asset_getTexture(const enum TexList type) Texture *asset_getTexture(const enum TexList type)

View File

@ -1,4 +1,4 @@
#include <Dengine/Platform.h> #include "Dengine/Platform.h"
i32 platform_readFileToBuffer(const char *const filePath, i32 platform_readFileToBuffer(const char *const filePath,
PlatformFileReadResult *file) PlatformFileReadResult *file)

View File

@ -1,5 +1,5 @@
#include <Dengine/OpenGL.h> #include "Dengine/OpenGL.h"
#include <Dengine/Renderer.h> #include "Dengine/Renderer.h"
void renderer_entity(Renderer *renderer, Entity *entity, f32 rotate, v3 color) void renderer_entity(Renderer *renderer, Entity *entity, f32 rotate, v3 color)
{ {

View File

@ -1,4 +1,4 @@
#include <Dengine/Shader.h> #include "Dengine/Shader.h"
const i32 shader_loadProgram(Shader *const shader, const GLuint vertexShader, const i32 shader_loadProgram(Shader *const shader, const GLuint vertexShader,
const GLuint fragmentShader) const GLuint fragmentShader)

View File

@ -1,4 +1,4 @@
#include <Dengine\Texture.h> #include "Dengine\Texture.h"
enum BytesPerPixel enum BytesPerPixel
{ {

View File

@ -1,6 +1,6 @@
#include <Dengine/AssetManager.h> #include "Dengine/AssetManager.h"
#include <Dengine/Math.h> #include "Dengine/Math.h"
#include <WorldTraveller/WorldTraveller.h> #include "WorldTraveller/WorldTraveller.h"
//TODO(doyle): This is temporary! Maybe abstract into our platform layer, or //TODO(doyle): This is temporary! Maybe abstract into our platform layer, or
//choose to load assets outside of WorldTraveller! //choose to load assets outside of WorldTraveller!

View File

@ -1,9 +1,9 @@
#if 1 #if 1
#include <Dengine/AssetManager.h> #include "Dengine/AssetManager.h"
#include <Dengine/Renderer.h> #include "Dengine/Renderer.h"
#include <Dengine/Math.h> #include "Dengine/Math.h"
#include <WorldTraveller/WorldTraveller.h> #include "WorldTraveller/WorldTraveller.h"
void key_callback(GLFWwindow *window, int key, int scancode, int action, int mode) void key_callback(GLFWwindow *window, int key, int scancode, int action, int mode)
{ {

View File

@ -1,8 +1,8 @@
#ifndef DENGINE_ASSET_MANAGER_H #ifndef DENGINE_ASSET_MANAGER_H
#define DENGINE_ASSET_MANAGER_H #define DENGINE_ASSET_MANAGER_H
#include <Dengine/Shader.h> #include "Dengine/Shader.h"
#include <Dengine/Texture.h> #include "Dengine/Texture.h"
enum TexList enum TexList
{ {

View File

@ -1,8 +1,8 @@
#ifndef DENGINE_ENTITY_H #ifndef DENGINE_ENTITY_H
#define DENGINE_ENTITY_H #define DENGINE_ENTITY_H
#include <Dengine/Texture.h> #include "Dengine/Texture.h"
#include <Dengine/Math.h> #include "Dengine/Math.h"
enum Direction enum Direction
{ {

View File

@ -1,9 +1,10 @@
#ifndef DENGINE_MATH_H #ifndef DENGINE_MATH_H
#define DENGINE_MATH_H #define DENGINE_MATH_H
#include <Dengine/Common.h>
#include <math.h> #include <math.h>
#include "Dengine/Common.h"
#define squared(x) (x * x) #define squared(x) (x * x)
#define absolute(x) ((x) > 0 ? (x) : -(x)) #define absolute(x) ((x) > 0 ? (x) : -(x))

View File

@ -1,11 +1,11 @@
#ifndef DENGINE_PLATFORM_H #ifndef DENGINE_PLATFORM_H
#define DENGINE_PLATFORM_H #define DENGINE_PLATFORM_H
#include <Dengine/Common.h>
#include <Windows.h> #include <Windows.h>
#include <stdio.h> #include <stdio.h>
#include "Dengine/Common.h"
typedef struct typedef struct
{ {
void *buffer; void *buffer;

View File

@ -1,9 +1,9 @@
#ifndef DENGINE_RENDERER_H #ifndef DENGINE_RENDERER_H
#define DENGINE_RENDERER_H #define DENGINE_RENDERER_H
#include <Dengine/Math.h> #include "Dengine/Math.h"
#include <Dengine/Entity.h> #include "Dengine/Entity.h"
#include <Dengine/Shader.h> #include "Dengine/Shader.h"
typedef struct Renderer typedef struct Renderer
{ {

View File

@ -1,8 +1,8 @@
#ifndef DENGINE_SHADER_H #ifndef DENGINE_SHADER_H
#define DENGINE_SHADER_H #define DENGINE_SHADER_H
#include <Dengine/OpenGL.h> #include "Dengine/OpenGL.h"
#include <Dengine/Math.h> #include "Dengine/Math.h"
typedef struct Shader typedef struct Shader
{ {

View File

@ -1,8 +1,8 @@
#ifndef DENGINE_TEXTURE_H #ifndef DENGINE_TEXTURE_H
#define DENGINE_TEXTURE_H #define DENGINE_TEXTURE_H
#include <Dengine/Common.h> #include "Dengine/Common.h"
#include <Dengine/OpenGL.h> #include "Dengine/OpenGL.h"
typedef struct Texture typedef struct Texture
{ {