Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/engine/platform/emscripten/gfx.cpp
2024-01-03 16:05:02 -05:00

18 lines
No EOL
318 B
C++

#include "gfx.hpp"
#include <SDL/SDL.h>
#include <platform.hpp>
void GFX::MakeContextCurrent()
{
SDL_GLContext glcontext = SDL_GL_CreateContext(static_cast<SDL_Window*>(Platform::GetUserData()));
}
void GFX::SwapBuffers()
{
SDL_GL_SwapBuffers();
}
void GFX::GoFullscreen() {}
void GFX::ExitFullscreen() {}