mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Begin2D doesn't need a return type anymore
This was to tell the caller that software 2D was in use, but that doesn't exist anymore
This commit is contained in:
parent
90a1614ac8
commit
bbea6e7e3c
7 changed files with 9 additions and 8 deletions
|
@ -11,7 +11,9 @@
|
||||||
#include "r_data/colormaps.h"
|
#include "r_data/colormaps.h"
|
||||||
#include "hwrenderer/scene/hw_drawstructs.h"
|
#include "hwrenderer/scene/hw_drawstructs.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4244)
|
#pragma warning(disable:4244)
|
||||||
|
#endif
|
||||||
|
|
||||||
struct GLHorizonInfo;
|
struct GLHorizonInfo;
|
||||||
struct F3DFloor;
|
struct F3DFloor;
|
||||||
|
|
|
@ -153,7 +153,7 @@ bool GLWall::SetupLights(FDynLightData &lightdata)
|
||||||
|
|
||||||
void FDrawInfo::RenderWall(GLWall *wall, int textured)
|
void FDrawInfo::RenderWall(GLWall *wall, int textured)
|
||||||
{
|
{
|
||||||
assert(vertcount > 0);
|
assert(wall->vertcount > 0);
|
||||||
gl_RenderState.Apply();
|
gl_RenderState.Apply();
|
||||||
gl_RenderState.ApplyLightIndex(wall->dynlightindex);
|
gl_RenderState.ApplyLightIndex(wall->dynlightindex);
|
||||||
GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, wall->vertindex, wall->vertcount);
|
GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, wall->vertindex, wall->vertcount);
|
||||||
|
|
|
@ -481,10 +481,9 @@ void OpenGLFrameBuffer::SetClearColor(int color)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
bool OpenGLFrameBuffer::Begin2D(bool copy3d)
|
void OpenGLFrameBuffer::Begin2D(bool copy3d)
|
||||||
{
|
{
|
||||||
Super::Begin2D(copy3d);
|
Super::Begin2D(copy3d);
|
||||||
ClearClipRect();
|
|
||||||
gl_RenderState.mViewMatrix.loadIdentity();
|
gl_RenderState.mViewMatrix.loadIdentity();
|
||||||
gl_RenderState.mProjectionMatrix.ortho(0, GetWidth(), GetHeight(), 0, -1.0f, 1.0f);
|
gl_RenderState.mProjectionMatrix.ortho(0, GetWidth(), GetHeight(), 0, -1.0f, 1.0f);
|
||||||
gl_RenderState.ApplyMatrices();
|
gl_RenderState.ApplyMatrices();
|
||||||
|
@ -503,7 +502,6 @@ bool OpenGLFrameBuffer::Begin2D(bool copy3d)
|
||||||
|
|
||||||
if (GLRenderer != NULL)
|
if (GLRenderer != NULL)
|
||||||
GLRenderer->Begin2D();
|
GLRenderer->Begin2D();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
PalEntry *GetPalette () override;
|
PalEntry *GetPalette () override;
|
||||||
bool SetFlash(PalEntry rgb, int amount) override;
|
bool SetFlash(PalEntry rgb, int amount) override;
|
||||||
void GetFlash(PalEntry &rgb, int &amount) override;
|
void GetFlash(PalEntry &rgb, int &amount) override;
|
||||||
bool Begin2D(bool copy3d) override;
|
void Begin2D(bool copy3d) override;
|
||||||
void GameRestart() override;
|
void GameRestart() override;
|
||||||
void InitForLevel() override;
|
void InitForLevel() override;
|
||||||
void SetClearColor(int color) override;
|
void SetClearColor(int color) override;
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
#include "textures/textures.h"
|
#include "textures/textures.h"
|
||||||
#include "r_data/colormaps.h"
|
#include "r_data/colormaps.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4244)
|
#pragma warning(disable:4244)
|
||||||
|
#endif
|
||||||
|
|
||||||
struct GLHorizonInfo;
|
struct GLHorizonInfo;
|
||||||
struct GLSkyInfo;
|
struct GLSkyInfo;
|
||||||
|
|
|
@ -859,11 +859,10 @@ void DFrameBuffer::SetBlendingRect (int x1, int y1, int x2, int y2)
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
bool DFrameBuffer::Begin2D (bool copy3d)
|
void DFrameBuffer::Begin2D (bool copy3d)
|
||||||
{
|
{
|
||||||
isIn2D = true;
|
isIn2D = true;
|
||||||
ClearClipRect();
|
ClearClipRect();
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -385,7 +385,7 @@ public:
|
||||||
|
|
||||||
// Begin 2D drawing operations.
|
// Begin 2D drawing operations.
|
||||||
// Returns true if hardware-accelerated 2D has been entered, false if not.
|
// Returns true if hardware-accelerated 2D has been entered, false if not.
|
||||||
virtual bool Begin2D(bool copy3d);
|
virtual void Begin2D(bool copy3d);
|
||||||
void End2D() { isIn2D = false; }
|
void End2D() { isIn2D = false; }
|
||||||
|
|
||||||
// Returns true if Begin2D has been called and 2D drawing is now active
|
// Returns true if Begin2D has been called and 2D drawing is now active
|
||||||
|
|
Loading…
Reference in a new issue