Added GUI Frame

This commit is contained in:
2021-08-11 09:48:56 -07:00
parent a4a8fe30c4
commit 68b946b6a1
38 changed files with 247 additions and 5352 deletions

22
src/ui/frame.h Normal file
View File

@ -0,0 +1,22 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include <dawn/dawn.h>
#include "../display/shader.h"
#include "../display/primitive.h"
#include "../display/primitives/quad.h"
#include "../display/gui/font.h"
void frameInit(frame_t *frame);
void frameSetSize(frame_t *frame, float width, float height);
void frameSetInnerSize(frame_t *frame, float width, float height);
void frameRender(frame_t *frame, shader_t *shader);
void frameDispose(frame_t *frame);