mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Removed some unused Renderer functions (onInit, onDeinit).
This commit is contained in:
parent
420fecc737
commit
310b1f9613
|
@ -70,7 +70,6 @@ set(CORE_SOURCES
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/src/Log.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/platform.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer_draw_gl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer_init.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Renderer_init_sdlgl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Settings.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Sound.cpp
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include "platform.h"
|
||||
#include <Eigen/Dense>
|
||||
#include GLHEADER
|
||||
//#include "Font.h"
|
||||
|
||||
class GuiComponent;
|
||||
class Font;
|
||||
|
@ -19,10 +18,6 @@ namespace Renderer
|
|||
bool init(int w, int h);
|
||||
void deinit();
|
||||
|
||||
//doesn't do anything right now
|
||||
void onInit();
|
||||
void onDeinit();
|
||||
|
||||
unsigned int getScreenWidth();
|
||||
unsigned int getScreenHeight();
|
||||
|
||||
|
|
|
@ -21,14 +21,11 @@ namespace Renderer {
|
|||
|
||||
void buildGLColorArray(GLubyte* ptr, unsigned int color, unsigned int vertCount)
|
||||
{
|
||||
//convert color from ???? to RGBA?
|
||||
unsigned int colorRGBA;
|
||||
setColor4bArray((GLubyte *)&colorRGBA, color);
|
||||
//write color to unsigned int array
|
||||
GLuint * uiPtr = (GLuint *)ptr;
|
||||
unsigned int colorGl;
|
||||
setColor4bArray((GLubyte*)&colorGl, color);
|
||||
for(unsigned int i = 0; i < vertCount; i++)
|
||||
{
|
||||
uiPtr[i] = colorRGBA;
|
||||
((GLuint*)ptr)[i] = colorGl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#include "Renderer.h"
|
||||
#include "platform.h"
|
||||
#include GLHEADER
|
||||
#include "resources/Font.h"
|
||||
|
||||
namespace Renderer
|
||||
{
|
||||
void onInit()
|
||||
{
|
||||
}
|
||||
|
||||
void onDeinit()
|
||||
{
|
||||
}
|
||||
};
|
|
@ -153,15 +153,11 @@ namespace Renderer
|
|||
glMatrixMode(GL_MODELVIEW);
|
||||
glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
||||
onInit();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void deinit()
|
||||
{
|
||||
onDeinit();
|
||||
|
||||
destroySurface();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue