From 8ea4736a46f1a468ee214528ba539e1f505b8273 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 30 Sep 2012 10:56:35 +0200 Subject: Font coloring; fix for resize hack - added font coloring and changed default color to black - fixed resize hack incorrectly changing video config, but font resizing will not work for now --- src/graphics/core/device.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/graphics/core') diff --git a/src/graphics/core/device.h b/src/graphics/core/device.h index bd56ea3..ba5af6e 100644 --- a/src/graphics/core/device.h +++ b/src/graphics/core/device.h @@ -308,11 +308,13 @@ public: virtual void SetTextureStageWrap(int index, TexWrapMode wrapS, TexWrapMode wrapT) = 0; //! Renders primitive composed of vertices with single texture - virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices , int vertexCount) = 0; - //! Renders primitive composed of vertices with color information and single texture - virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) = 0; + 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 multitexturing (2 textures) - virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount) = 0; + virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount, + Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)) = 0; + //! Renders primitive composed of vertices with color information + virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount) = 0; //! Tests whether a sphere intersects the 6 clipping planes of projection volume virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius) = 0; -- cgit v1.2.3-1-g7c22