blob: acb85228fffcc0f8532407e22c3327c9030b22bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef SHAPES_2D
#define SHAPES_2D
#include "mathlib.h"
#include "Renderer2d.h"
#include "types.h"
class RectangularGradient
{
public:
RectangularGradient(Renderer2d& renderer,
Vector4 top,
Vector4 bottom,
f32 width,
f32 height,
Vector2 position);
~RectangularGradient();
void render();
private:
Renderer2d& renderer;
Vector4 top;
Vector4 bottom;
f32 width;
f32 height;
Mesh2D mesh;
};
#endif
|