Mercurial > fife-parpg
comparison engine/core/video/sdl/renderbackendsdl.h @ 583:47b49b9b0c0a
* Improved the floatingtextrenderer. Now you can set an alpha value for font, background quad and border. Splited quad and border into own commands.
* Added a triangle function to backends and genericrenderer, also added the functions to set an alpha value for geometric figures.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 07 Aug 2010 16:36:35 +0000 |
parents | b2feacaed53c |
children | f3457443c95f |
comparison
equal
deleted
inserted
replaced
582:5e04f6349894 | 583:47b49b9b0c0a |
---|---|
48 void endFrame(); | 48 void endFrame(); |
49 void init(); | 49 void init(); |
50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); | 50 Image* createMainScreen(unsigned int width, unsigned int height, unsigned char bitsPerPixel, bool fullscreen, const std::string& title, const std::string& icon); |
51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); | 51 Image* createImage(const uint8_t* data, unsigned int width, unsigned int height); |
52 Image* createImage(SDL_Surface* surface); | 52 Image* createImage(SDL_Surface* surface); |
53 bool putPixel(int x, int y, int r, int g, int b); | 53 bool putPixel(int x, int y, int r, int g, int b, int a = 255); |
54 void drawLine(const Point& p1, const Point& p2, int r, int g, int b); | 54 void drawLine(const Point& p1, const Point& p2, int r, int g, int b, int a = 255); |
55 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, int r, int g, int b); | 55 void drawTriangle(const Point& p1, const Point& p2, const Point& p3, int r, int g, int b, int a = 255); |
56 void drawVertex(const Point& p, const uint8_t size, int r, int g, int b); | 56 void drawQuad(const Point& p1, const Point& p2, const Point& p3, const Point& p4, 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); | |
57 | 58 |
58 void isClearNeeded(bool clear); | 59 void isClearNeeded(bool clear); |
59 | 60 |
60 private: | 61 private: |
61 bool m_clear; | 62 bool m_clear; |