projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added 1up to tileset
[supertux.git]
/
src
/
screen.h
diff --git
a/src/screen.h
b/src/screen.h
index
7ff7a22
..
5785871
100644
(file)
--- a/
src/screen.h
+++ b/
src/screen.h
@@
-24,8
+24,22
@@
#define USE_ALPHA 0
#define IGNORE_ALPHA 1
#define USE_ALPHA 0
#define IGNORE_ALPHA 1
+struct Color
+{
+ Color()
+ : red(0), green(0), blue(0)
+ {}
+
+ Color(int red_, int green_, int blue_)
+ : red(red_), green(green_), blue(blue_)
+ {}
+
+ int red, green, blue;
+};
+
void drawline(int x1, int y1, int x2, int y2, int r, int g, int b, int a);
void clearscreen(int r, int g, int b);
void drawline(int x1, int y1, int x2, int y2, int r, int g, int b, int a);
void clearscreen(int r, int g, int b);
+void drawgradient(Color top_clr, Color bot_clr);
void fillrect(float x, float y, float w, float h, int r, int g, int b, int a);
void updatescreen(void);
void flipscreen(void);
void fillrect(float x, float y, float w, float h, int r, int g, int b, int a);
void updatescreen(void);
void flipscreen(void);