moved opengl constants from the common opengl.cpp file into platform-dependent opengl_ext.cpp and opengl_win32.cpp

This commit is contained in:
rachytski 2011-11-28 22:08:12 +04:00 committed by Alex Zolotarev
parent 4751f9d0b3
commit 1d6b0171da
3 changed files with 36 additions and 18 deletions

View file

@ -14,24 +14,6 @@ namespace yg
{
namespace gl
{
const int GL_FRAMEBUFFER_BINDING_MWM = GL_FRAMEBUFFER_BINDING_EXT;
const int GL_FRAMEBUFFER_MWM = GL_FRAMEBUFFER_EXT;
const int GL_FRAMEBUFFER_UNSUPPORTED_MWM = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_MWM = GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT;
const int GL_FRAMEBUFFER_COMPLETE_MWM = GL_FRAMEBUFFER_COMPLETE_EXT;
const int GL_DEPTH_ATTACHMENT_MWM = GL_DEPTH_ATTACHMENT_EXT;
const int GL_COLOR_ATTACHMENT0_MWM = GL_COLOR_ATTACHMENT0_EXT;
const int GL_RENDERBUFFER_MWM = GL_RENDERBUFFER_EXT;
const int GL_RENDERBUFFER_BINDING_MWM = GL_RENDERBUFFER_BINDING_EXT;
const int GL_DEPTH_COMPONENT16_MWM = GL_DEPTH_COMPONENT16;
const int GL_DEPTH_COMPONENT24_MWM = GL_DEPTH_COMPONENT24;
const int GL_RGBA8_MWM = GL_RGBA8;
const int GL_WRITE_ONLY_MWM = GL_WRITE_ONLY;
platform_unsupported::platform_unsupported(char const * reason)
: m_reason(reason)
{}

View file

@ -5,6 +5,24 @@ namespace yg
{
namespace gl
{
const int GL_FRAMEBUFFER_BINDING_MWM = GL_FRAMEBUFFER_BINDING_EXT;
const int GL_FRAMEBUFFER_MWM = GL_FRAMEBUFFER_EXT;
const int GL_FRAMEBUFFER_UNSUPPORTED_MWM = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_MWM = GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT;
const int GL_FRAMEBUFFER_COMPLETE_MWM = GL_FRAMEBUFFER_COMPLETE_EXT;
const int GL_DEPTH_ATTACHMENT_MWM = GL_DEPTH_ATTACHMENT_EXT;
const int GL_COLOR_ATTACHMENT0_MWM = GL_COLOR_ATTACHMENT0_EXT;
const int GL_RENDERBUFFER_MWM = GL_RENDERBUFFER_EXT;
const int GL_RENDERBUFFER_BINDING_MWM = GL_RENDERBUFFER_BINDING_EXT;
const int GL_DEPTH_COMPONENT16_MWM = GL_DEPTH_COMPONENT16;
const int GL_DEPTH_COMPONENT24_MWM = GL_DEPTH_COMPONENT24;
const int GL_RGBA8_MWM = GL_RGBA8;
const int GL_WRITE_ONLY_MWM = GL_WRITE_ONLY;
void InitExtensions()
{
DumpGLInformation();

View file

@ -9,6 +9,24 @@ namespace yg
{
namespace gl
{
const int GL_FRAMEBUFFER_BINDING_MWM = GL_FRAMEBUFFER_BINDING_EXT;
const int GL_FRAMEBUFFER_MWM = GL_FRAMEBUFFER_EXT;
const int GL_FRAMEBUFFER_UNSUPPORTED_MWM = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_MWM = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT;
const int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_MWM = GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT;
const int GL_FRAMEBUFFER_COMPLETE_MWM = GL_FRAMEBUFFER_COMPLETE_EXT;
const int GL_DEPTH_ATTACHMENT_MWM = GL_DEPTH_ATTACHMENT_EXT;
const int GL_COLOR_ATTACHMENT0_MWM = GL_COLOR_ATTACHMENT0_EXT;
const int GL_RENDERBUFFER_MWM = GL_RENDERBUFFER_EXT;
const int GL_RENDERBUFFER_BINDING_MWM = GL_RENDERBUFFER_BINDING_EXT;
const int GL_DEPTH_COMPONENT16_MWM = GL_DEPTH_COMPONENT16;
const int GL_DEPTH_COMPONENT24_MWM = GL_DEPTH_COMPONENT24;
const int GL_RGBA8_MWM = GL_RGBA8;
const int GL_WRITE_ONLY_MWM = GL_WRITE_ONLY;
//GL_FRAMEBUFFER_BINDING = GL_FRAMEBUFFER_BINDING_EXT;
template <class T>