Commit initial

This commit is contained in:
2020-04-17 18:11:57 +02:00
commit 6b097fa6a0
54 changed files with 4084 additions and 0 deletions

28
src/OGL_ext.cpp Normal file
View File

@@ -0,0 +1,28 @@
#include <GL/glew.h>
#include "OGL_ext.h"
#include "debug.h"
void Xr_InitExtSupport()
{
GLenum returnCode;
returnCode = glewInit();
if(returnCode != GLEW_OK)
{
Xr_Log("X-Ray3D ne peut fonctionner sans les extentions OpenGL");
Xr_Crash();
}
Xr_Log("Les extentions OpenGL sont disponibles");
}
void Xr_CheckExt(char *extName)
{
if(!glewIsSupported(extName))
{
Xr_Log(std::string(extName) + " : Extention OpenGL non supportée par votre pilote graphique");
Xr_Crash();
}
Xr_Log("L'extention < " + std::string(extName) + " > est supportée");
}