diff engine/core/video/sdl/renderbackendsdl.cpp @ 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 d1df6cf5ff23
children 46b95d06c8c2
line wrap: on
line diff
--- a/engine/core/video/sdl/renderbackendsdl.cpp	Mon Oct 04 21:29:12 2010 +0000
+++ b/engine/core/video/sdl/renderbackendsdl.cpp	Tue Oct 05 15:44:16 2010 +0000
@@ -157,6 +157,14 @@
 		static_cast<SDLImage*>(m_screen)->drawTriangle(p1, p2, p3, r, g, b, a);
 	}
 
+	void RenderBackendSDL::drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
+		static_cast<SDLImage*>(m_screen)->drawRectangle(p, w, h, r, g, b, a);
+	}
+
+	void RenderBackendSDL::fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
+		static_cast<SDLImage*>(m_screen)->fillRectangle(p, w, h, r, g, b, a);
+	}
+
 	void RenderBackendSDL::drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4,  int r, int g, int b, int a) {
 		static_cast<SDLImage*>(m_screen)->drawQuad(p1, p2, p3, p4, r, g, b, a);
 	}