/* * Bael'Zharon's Respite * Copyright (C) 2014 Daniel Skorupski * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef BZR_BASIC_H #define BZR_BASIC_H #include #ifndef HEADLESS #ifdef _MSC_VER #include #else #define GL_GLEXT_PROTOTYPES #include #endif #endif #define GLM_FORCE_RADIANS #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4201) #endif #include // includes mat3, mat4, vec3, vec4 #ifdef _MSC_VER #pragma warning(pop) #endif #include #include #include #include #include #include #ifdef __GNUC__ #define PACK(decl) decl __attribute__((__packed__)) #elif _MSC_VER #define PACK(decl) __pragma(pack(push, 1)) decl __pragma(pack(pop)) #else #error Implement PACK for this compiler. #endif #define UNUSED(x) ((void)x) using namespace std; typedef glm::float_t fp_t; inline fp_t pi() { return glm::pi(); } #endif