mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
26 lines
533 B
C++
26 lines
533 B
C++
#include "GSH_OpenGLJs.h"
|
|
|
|
CGSH_OpenGLJs::CGSH_OpenGLJs(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context)
|
|
: m_context(context)
|
|
{
|
|
}
|
|
|
|
CGSH_OpenGL::FactoryFunction CGSH_OpenGLJs::GetFactoryFunction(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context)
|
|
{
|
|
return [context]() { return new CGSH_OpenGLJs(context); };
|
|
}
|
|
|
|
void CGSH_OpenGLJs::InitializeImpl()
|
|
{
|
|
emscripten_webgl_make_context_current(m_context);
|
|
CGSH_OpenGL::InitializeImpl();
|
|
}
|
|
|
|
void CGSH_OpenGLJs::ReleaseImpl()
|
|
{
|
|
CGSH_OpenGL::ReleaseImpl();
|
|
}
|
|
|
|
void CGSH_OpenGLJs::PresentBackbuffer()
|
|
{
|
|
}
|