Mercurial > fife-parpg
comparison engine/core/video/video.i @ 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 |
comparison
equal
deleted
inserted
replaced
630:010da1d1ee1c | 631:f3457443c95f |
---|---|
50 virtual const Rect& getArea() = 0; | 50 virtual const Rect& getArea() = 0; |
51 virtual void getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) = 0; | 51 virtual void getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) = 0; |
52 virtual bool putPixel(int x, int y, int r, int g, int b, int a = 255) = 0; | 52 virtual bool putPixel(int x, int y, int r, int g, int b, int a = 255) = 0; |
53 virtual void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255) = 0; | 53 virtual void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255) = 0; |
54 virtual void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255) = 0; | 54 virtual void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255) = 0; |
55 virtual void drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) = 0; | |
56 virtual void fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) = 0; | |
55 virtual void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255) = 0; | 57 virtual void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255) = 0; |
56 virtual void pushClipArea(const Rect& cliparea, bool clear=true) = 0; | 58 virtual void pushClipArea(const Rect& cliparea, bool clear=true) = 0; |
57 virtual void popClipArea() = 0; | 59 virtual void popClipArea() = 0; |
58 virtual const Rect& getClipArea() const = 0; | 60 virtual const Rect& getClipArea() const = 0; |
59 virtual void saveImage(const std::string& filename) = 0; | 61 virtual void saveImage(const std::string& filename) = 0; |
154 const Rect& getArea(); | 156 const Rect& getArea(); |
155 void getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a); | 157 void getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a); |
156 bool putPixel(int x, int y, int r, int g, int b, int a = 255); | 158 bool putPixel(int x, int y, int r, int g, int b, int a = 255); |
157 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); | 159 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); |
158 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); | 160 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); |
161 void drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | |
162 void fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | |
159 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255); | 163 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255); |
160 void drawVertex(const Point& p, int size, int r, int g, int b, int a = 255); | 164 void drawVertex(const Point& p, int size, int r, int g, int b, int a = 255); |
161 void pushClipArea(const Rect& cliparea, bool clear=true); | 165 void pushClipArea(const Rect& cliparea, bool clear=true); |
162 void popClipArea(); | 166 void popClipArea(); |
163 const Rect& getClipArea() const; | 167 const Rect& getClipArea() const; |