29 lines
564 B
C++
29 lines
564 B
C++
#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");
|
|
}
|