summaryrefslogtreecommitdiff
path: root/themes/src/shapes_2d.h
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 17:14:48 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-24 17:14:48 -0400
commit2dca902c183ece31bc0853e1e8b93d09359515e4 (patch)
tree2478c63c0aaae3c3ad608334372a9d7a91d9088d /themes/src/shapes_2d.h
parentc8c6d9f13b5cae6f93f1e1615bfa484e3fa9b110 (diff)
Rectangular gradient for the background in AutumnTheme
Diffstat (limited to 'themes/src/shapes_2d.h')
-rw-r--r--themes/src/shapes_2d.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/src/shapes_2d.h b/themes/src/shapes_2d.h
new file mode 100644
index 0000000..acb8522
--- /dev/null
+++ b/themes/src/shapes_2d.h
@@ -0,0 +1,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