Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
630:010da1d1ee1c | 631:f3457443c95f |
---|---|
49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); | 49 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); |
50 Image* createImage(SDL_Surface* surface); | 50 Image* createImage(SDL_Surface* surface); |
51 bool putPixel(int x, int y, int r, int g, int b, int a = 255); | 51 bool putPixel(int x, int y, int r, int g, int b, int a = 255); |
52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); | 52 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); |
53 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); | 53 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); |
54 void drawRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | |
55 void fillRectangle(const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255); | |
54 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255); | 56 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b, int a = 255); |
55 void drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a = 255); | 57 void drawVertex(const Point& p, const uint8_t size, int r, int g, int b, int a = 255); |
56 | 58 |
57 void isClearNeeded(bool clear); | 59 void isClearNeeded(bool clear); |
58 | 60 |