Removed all DrawPrimitive*() methods from CDevice
parent
750a470b9a
commit
1631b9587f
|
@ -449,22 +449,6 @@ public:
|
||||||
//! Deletes all textures created so far
|
//! Deletes all textures created so far
|
||||||
virtual void DestroyAllTextures() = 0;
|
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 CVertexBuffer* CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount) = 0;
|
||||||
virtual void DestroyVertexBuffer(CVertexBuffer*) = 0;
|
virtual void DestroyVertexBuffer(CVertexBuffer*) = 0;
|
||||||
|
|
||||||
|
|
|
@ -487,33 +487,6 @@ void CGL33Device::DestroyAllTextures()
|
||||||
m_allTextures.clear();
|
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)
|
CVertexBuffer* CGL33Device::CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount)
|
||||||
{
|
{
|
||||||
auto buffer = new CGL33VertexBuffer(primitiveType, vertexCount);
|
auto buffer = new CGL33VertexBuffer(primitiveType, vertexCount);
|
||||||
|
|
|
@ -126,18 +126,6 @@ public:
|
||||||
void DestroyTexture(const Texture &texture) override;
|
void DestroyTexture(const Texture &texture) override;
|
||||||
void DestroyAllTextures() 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;
|
CVertexBuffer* CreateVertexBuffer(PrimitiveType primitiveType, const Vertex3D* vertices, int vertexCount) override;
|
||||||
void DestroyVertexBuffer(CVertexBuffer*) override;
|
void DestroyVertexBuffer(CVertexBuffer*) override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue