Skip to content

Instantly share code, notes, and snippets.

@attilaz
Created April 23, 2015 07:08
Show Gist options
  • Save attilaz/7f85b78f8cb3af1e4864 to your computer and use it in GitHub Desktop.
Save attilaz/7f85b78f8cb3af1e4864 to your computer and use it in GitHub Desktop.
gl_context
namespace bgfx
{
# define GL_IMPORT(_optional, _proto, _func, _import) _proto _func = NULL
# include "glimports.h"
void GlContext::create(uint32_t _width, uint32_t _height)
{
glGetIntegerv( GL_FRAMEBUFFER_BINDING, (GLint*)&m_fbo );
}
void GlContext::destroy()
{
}
void GlContext::resize(uint32_t _width, uint32_t _height, bool _vsync)
{
BX_UNUSED(_width, _height, _vsync);
BX_TRACE("resize context");
}
bool GlContext::isSwapChainSupported()
{
return false;
}
SwapChainGL* GlContext::createSwapChain(void* /*_nwh*/)
{
BX_CHECK(false, "Shouldn't be called!");
return NULL;
}
void GlContext::destroySwapChain(SwapChainGL* /*_swapChain*/)
{
BX_CHECK(false, "Shouldn't be called!");
}
void GlContext::swap(SwapChainGL* _swapChain)
{
BX_CHECK(NULL == _swapChain, "Shouldn't be called!"); BX_UNUSED(_swapChain);
}
void GlContext::makeCurrent(SwapChainGL* /*_swapChain*/)
{
}
void GlContext::import()
{
}
} // namespace bgfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment