Skip to content

Commit 5292404

Browse files
committed
Merge branch 'master' of github.com:RobLoach/raylib-cpp into SetConfigFlags
2 parents c5c106d + b2d3787 commit 5292404

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

include/Image.hpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,17 @@ class Image : public ::Image {
131131
}
132132

133133
/**
134-
* Generate image: linear gradient
134+
* Generate image: vertical gradient
135135
*/
136-
static ::Image GradientLinear(int width, int height, int direction, ::Color start, ::Color end) {
137-
return ::GenImageGradientLinear(width, height, direction, start, end);
136+
static ::Image GradientV(int width, int height, ::Color top, ::Color bottom) {
137+
return ::GenImageGradientV(width, height, top, bottom);
138+
}
139+
140+
/**
141+
* Generate image: horizontal gradient
142+
*/
143+
static ::Image GradientH(int width, int height, ::Color left, ::Color right) {
144+
return ::GenImageGradientH(width, height, left, right);
138145
}
139146

140147
/**

0 commit comments

Comments
 (0)