diff engine/core/video/opengl/renderbackendopengl.h @ 631:f3457443c95f

* Added drawRectangle() and fillRectangle() functions to the renderers * Modified FIFE::FloatingTextRenderer to use the new functions * Updated some data types in FIFE::FloatingTextRenderer to use integer types defined in fife_stdint.h
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 05 Oct 2010 15:44:16 +0000
parents 47b49b9b0c0a
children 46b95d06c8c2
line wrap: on
line diff
--- a/engine/core/video/opengl/renderbackendopengl.h	Mon Oct 04 21:29:12 2010 +0000
+++ b/engine/core/video/opengl/renderbackendopengl.h	Tue Oct 05 15:44:16 2010 +0000
@@ -51,6 +51,8 @@
  		bool putPixel(int x, int y, int r, int g, int b, int a = 255);
 		void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255);
 		void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255);
+		void drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
+		void fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
 		void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4,  int r, int g, int b, int a = 255);
 		void drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a = 255);