mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 12:39:13 +12:00
Migrate OpenGL specific headers to renderer_gl
This commit is contained in:
parent
a636a0d1da
commit
4864c51125
7 changed files with 7 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "gl_state.hpp"
|
||||
#include "renderer_gl/gl_state.hpp"
|
||||
|
||||
void GLStateManager::resetBlend() {
|
||||
blendEnabled = false;
|
|
@ -607,6 +607,8 @@ void RendererGL::reset() {
|
|||
}
|
||||
|
||||
void RendererGL::initGraphicsContext() {
|
||||
gl.reset();
|
||||
|
||||
OpenGL::Shader vert(vertexShader, OpenGL::Vertex);
|
||||
OpenGL::Shader frag(fragmentShader, OpenGL::Fragment);
|
||||
triangleProgram.create({vert, frag});
|
||||
|
|
|
@ -433,12 +433,7 @@ bool Emulator::loadELF(std::ifstream& file) {
|
|||
}
|
||||
|
||||
// Reset our graphics context and initialize the GPU's graphics context
|
||||
void Emulator::initGraphicsContext() {
|
||||
#if PANDA3DS_ENABLE_OPENGL
|
||||
gl.reset(); // TODO (For when we have multiple backends): Only do this if we are using OpenGL
|
||||
#endif
|
||||
gpu.initGraphicsContext();
|
||||
}
|
||||
void Emulator::initGraphicsContext() { gpu.initGraphicsContext(); }
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
||||
void Emulator::pollHttpServer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue