kick
/Users/morten/Programmering/cpp/kick/src/kick/core/kickgl.h
00001 //
00002 //  kickgl.h
00003 //  KickCPP
00004 //
00005 //  Created by morten on 8/13/13.
00006 //  Copyright (c) 2013 Morten Nobel-Joergensen. All rights reserved.
00007 //
00008 
00009 #pragma once
00010 
00011 #if defined(_WIN32)
00012 #define GLEW_STATIC 
00013 #include <GL/glew.h>
00014 #elif defined(KICK_CONTEXT_ES2)
00015 #   include <GLES2/gl2.h>
00016 #elif defined(EMSCRIPTEN)
00017 #   ifndef KICK_CONTEXT_ES2
00018 #       define KICK_CONTEXT_ES2 1
00019 #   endif
00020 #   include <GLES2/gl2.h>
00021 #else
00022 #   include <OpenGL/gl3.h>
00023 #include <stdio.h>
00024 
00025 #endif
00026 #define BUFFER_OFFSET(x)  ((const void*) (x))
00027 
00028 namespace kick {
00029     bool openglUsingVao();
00030 
00031 #define printOpenGLError() printOglError(__FILE__, __LINE__)
00032 
00033     const char * GLErrorString(GLenum errorCode);
00034 
00035     int printOglError(const char *file, int line);
00036 }
 All Classes Functions Variables