Skip to content

Commit

Permalink
Remove unused graphics functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Nov 26, 2024
1 parent c14874f commit 0c37800
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
10 changes: 0 additions & 10 deletions src/engine/client/graphics_threaded.h
Original file line number Diff line number Diff line change
Expand Up @@ -1107,16 +1107,6 @@ class CGraphics_Threaded : public IEngineGraphics
void DrawRect4(float x, float y, float w, float h, ColorRGBA ColorTopLeft, ColorRGBA ColorTopRight, ColorRGBA ColorBottomLeft, ColorRGBA ColorBottomRight, int Corners, float Rounding) override;
void DrawCircle(float CenterX, float CenterY, float Radius, int Segments) override;

const GL_STexCoord *GetCurTextureCoordinates() override
{
return m_aTexture;
}

const GL_SColor *GetCurColor() override
{
return m_aColor;
}

int CreateQuadContainer(bool AutomaticUpload = true) override;
void QuadContainerChangeAutomaticUpload(int ContainerIndex, bool AutomaticUpload) override;
void QuadContainerUpload(int ContainerIndex) override;
Expand Down
15 changes: 0 additions & 15 deletions src/engine/graphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -369,27 +369,12 @@ class IGraphics : public IInterface
CQuadItem() {}
CQuadItem(float x, float y, float w, float h) :
m_X(x), m_Y(y), m_Width(w), m_Height(h) {}
void Set(float x, float y, float w, float h)
{
m_X = x;
m_Y = y;
m_Width = w;
m_Height = h;
}

CFreeformItem ToFreeForm() const
{
return CFreeformItem(m_X, m_Y, m_X + m_Width, m_Y, m_X, m_Y + m_Height, m_X + m_Width, m_Y + m_Height);
}
};
virtual void QuadsDraw(CQuadItem *pArray, int Num) = 0;
virtual void QuadsDrawTL(const CQuadItem *pArray, int Num) = 0;

virtual void QuadsTex3DDrawTL(const CQuadItem *pArray, int Num) = 0;

virtual const GL_STexCoord *GetCurTextureCoordinates() = 0;
virtual const GL_SColor *GetCurColor() = 0;

virtual int CreateQuadContainer(bool AutomaticUpload = true) = 0;
virtual void QuadContainerChangeAutomaticUpload(int ContainerIndex, bool AutomaticUpload) = 0;
virtual void QuadContainerUpload(int ContainerIndex) = 0;
Expand Down

0 comments on commit 0c37800

Please sign in to comment.