Added image UI element.

This commit is contained in:
2021-09-02 10:10:00 -07:00
parent ed3113a767
commit 21af7906c4
17 changed files with 215 additions and 45 deletions

18
include/dawn/ui/image.h Normal file
View File

@ -0,0 +1,18 @@
/**
* 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;
texture_t *texture;
primitive_t quad;
float u0, v0;
float u1, v1;
} image_t;