SyndicatQuebecoisdelaConstr.../SQCSim2021/define.h
MarcEricMartel e251734b0f Enfin?
2021-12-06 11:53:18 -05:00

54 lines
1.1 KiB
C++

#ifndef DEFINE_H__
#define DEFINE_H__
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#ifdef _WIN32
#include <windows.h>
#include <GL/glew.h>
#include <gl/GL.h>
#include <gl/GLU.h>
#endif
#define CHUNK_SIZE_X 16
#define CHUNK_SIZE_Y 128
#define CHUNK_SIZE_Z 16
#define MAX_SELECTION_DISTANCE 5
#ifdef _DEBUG
#define WORLD_SIZE_X 32
#define WORLD_SIZE_Y 32
#define FRAMES_RENDER_CHUNKS 4
#define FRAMES_UPDATE_CHUNKS 4
#define FRAMES_DELETE_CHUNKS 4
#define VIEW_DISTANCE 128
#define TEXTURE_SIZE 32
#endif
#ifdef NDEBUG
#define WORLD_SIZE_X 128
#define WORLD_SIZE_Y 128
#define FRAMES_RENDER_CHUNKS 1
#define FRAMES_UPDATE_CHUNKS 1
#define FRAMES_DELETE_CHUNKS 1
#define VIEW_DISTANCE 1024
#define TEXTURE_SIZE 512
#endif
typedef uint8_t BlockType;
enum BLOCK_TYPE { BTYPE_AIR, BTYPE_DIRT, BTYPE_GRASS, BTYPE_METAL, BTYPE_ICE, BTYPE_LAST };
#define TEXTURE_PATH "../SQCSim2021/media/textures/"
#define SHADER_PATH "../SQCSim2021/media/shaders/"
#define AUDIO_PATH "../SQCSim2021/media/audio/"
#define CHUNK_PATH "../SQCSim2021/media/chunks/"
#endif // DEFINE_H__