Added selection rectangle.

This commit is contained in:
2021-09-02 10:30:25 -07:00
parent 21af7906c4
commit 6e0d594056
7 changed files with 100 additions and 5 deletions

View File

@ -0,0 +1,17 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../libs.h"
#include "../display/primitive.h"
typedef struct {
float x, y;
float width, height;
texture_t texture;
primitive_t quad;
} rectangle_t;