comparison 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
comparison
equal deleted inserted replaced
630:010da1d1ee1c 631:f3457443c95f
155 155
156 void RenderBackendSDL::drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a) { 156 void RenderBackendSDL::drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a) {
157 static_cast<SDLImage*>(m_screen)->drawTriangle(p1, p2, p3, r, g, b, a); 157 static_cast<SDLImage*>(m_screen)->drawTriangle(p1, p2, p3, r, g, b, a);
158 } 158 }
159 159
160 void RenderBackendSDL::drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
161 static_cast<SDLImage*>(m_screen)->drawRectangle(p, w, h, r, g, b, a);
162 }
163
164 void RenderBackendSDL::fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
165 static_cast<SDLImage*>(m_screen)->fillRectangle(p, w, h, r, g, b, a);
166 }
167
160 void RenderBackendSDL::drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a) { 168 void RenderBackendSDL::drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a) {
161 static_cast<SDLImage*>(m_screen)->drawQuad(p1, p2, p3, p4, r, g, b, a); 169 static_cast<SDLImage*>(m_screen)->drawQuad(p1, p2, p3, p4, r, g, b, a);
162 } 170 }
163 171
164 void RenderBackendSDL::drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a){ 172 void RenderBackendSDL::drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a){