super basic UI constraint and alignment system with a super basic "game framework"

This commit is contained in:
2023-12-11 23:00:31 +02:00
committed by Illusion
parent 129e038c19
commit 3ab33f3f84
20 changed files with 989 additions and 414 deletions
+2 -12
View File
@@ -5,11 +5,7 @@
#include "helper.h"
#include "shader.h"
#include "timer.h"
typedef struct Vec2 {
int x;
int y;
} Vec2;
#include "ui.h"
typedef struct Cell {
int value;
@@ -29,13 +25,6 @@ typedef struct Cudoku {
float win_time;
} Cudoku;
typedef struct Color {
float r;
float g;
float b;
float a;
} Color;
void set_scale_factor(int width, int height, float *x, float *y);
unsigned int prepare_bg(bool use_texture, unsigned int *texture);
void draw_bg_grid_shader(Shader shader, unsigned int vao, float* transform, float resolution);
@@ -66,3 +55,4 @@ void draw_help_overlay(
Timer *timer
);
void draw_timer(Shader shader, unsigned int vao, unsigned int vbo, float *projection, Timer *timer, int win_width);
void draw_win();