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/opengl/gldevice.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/graphics/opengl/gldevice.h') diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h index 2f9b9d8..cda7b02 100644 --- a/src/graphics/opengl/gldevice.h +++ b/src/graphics/opengl/gldevice.h @@ -86,7 +86,6 @@ public: virtual void BeginScene(); virtual void EndScene(); - virtual void ResizeViewport(const unsigned int width, const unsigned int height); virtual void Clear(); @@ -120,9 +119,13 @@ public: virtual void SetTextureStageWrap(int index, Gfx::TexWrapMode wrapS, Gfx::TexWrapMode wrapT); - virtual void DrawPrimitive(PrimitiveType type, const Vertex *vertices, int vertexCount); - virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices, int vertexCount); - virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount); + //! 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)); + //! Renders primitive composed of vertices with multitexturing (2 textures) + virtual void DrawPrimitive(PrimitiveType type, const VertexTex2 *vertices, int vertexCount, + Color color = Color(1.0f, 1.0f, 1.0f, 1.0f)); + virtual void DrawPrimitive(PrimitiveType type, const VertexCol *vertices , int vertexCount); virtual int ComputeSphereVisibility(const Math::Vector ¢er, float radius); -- cgit v1.2.3-1-g7c22