diff --git a/src/graphics/core/device.h b/src/graphics/core/device.h index 7be08fec..750babae 100644 --- a/src/graphics/core/device.h +++ b/src/graphics/core/device.h @@ -449,22 +449,6 @@ public: //! Deletes all textures created so far virtual void DestroyAllTextures() = 0; - //! Renders primitive composed of vertices with single texture - virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount, - Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) = 0; - //! Renders primitive composed of vertices with solid color - virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) = 0; - //! Renders 3D primitive - virtual void DrawPrimitive(PrimitiveType type, const Vertex3D* vertices, int vertexCount) = 0; - - //! Renders primitives composed of lists of vertices with single texture - virtual void DrawPrimitives(PrimitiveType type, const Vertex *vertices, - int first[], int count[], int drawCount, - Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) = 0; - //! Renders primitives composed of lists of vertices with solid color - virtual void DrawPrimitives(PrimitiveType type, const VertexCol *vertices, - int first[], int count[], int drawCount) = 0; - virtual CVertexBuffer* CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount) = 0; virtual void DestroyVertexBuffer(CVertexBuffer*) = 0; diff --git a/src/graphics/opengl/gl33device.cpp b/src/graphics/opengl/gl33device.cpp index 72af54f2..ed08d386 100644 --- a/src/graphics/opengl/gl33device.cpp +++ b/src/graphics/opengl/gl33device.cpp @@ -487,33 +487,6 @@ void CGL33Device::DestroyAllTextures() m_allTextures.clear(); } -void CGL33Device::DrawPrimitive(PrimitiveType type, const Vertex *vertices, int vertexCount, Color color) -{ - -} - -void CGL33Device::DrawPrimitive(PrimitiveType type, const VertexCol *vertices, int vertexCount) -{ - -} - -void CGL33Device::DrawPrimitive(PrimitiveType type, const Vertex3D* vertices, int vertexCount) -{ - -} - -void CGL33Device::DrawPrimitives(PrimitiveType type, const Vertex *vertices, - int first[], int count[], int drawCount, Color color) -{ - -} - -void CGL33Device::DrawPrimitives(PrimitiveType type, const VertexCol *vertices, - int first[], int count[], int drawCount) -{ - -} - CVertexBuffer* CGL33Device::CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount) { auto buffer = new CGL33VertexBuffer(primitiveType, vertexCount); diff --git a/src/graphics/opengl/gl33device.h b/src/graphics/opengl/gl33device.h index 1dd766ba..5e8967e3 100644 --- a/src/graphics/opengl/gl33device.h +++ b/src/graphics/opengl/gl33device.h @@ -126,18 +126,6 @@ public: void DestroyTexture(const Texture &texture) override; void DestroyAllTextures() override; - virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount, - Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override; - virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) override; - - virtual void DrawPrimitive(PrimitiveType type, const Vertex3D* vertices, int vertexCount) override; - - virtual void DrawPrimitives(PrimitiveType type, const Vertex *vertices, - int first[], int count[], int drawCount, - Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) override; - virtual void DrawPrimitives(PrimitiveType type, const VertexCol *vertices, - int first[], int count[], int drawCount) override; - CVertexBuffer* CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount) override; void DestroyVertexBuffer(CVertexBuffer*) override;