mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
super basic UI constraint and alignment system with a super basic "game framework"
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user