finish game logic implementation. we now have a working game

This commit is contained in:
2023-09-15 23:47:43 +02:00
parent e71ba6dfce
commit a19074c497
5 changed files with 148 additions and 24 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#pragma once
#include "cudoku.h"
#include "shader.h"
typedef struct Size {
@@ -17,5 +18,5 @@ typedef struct Character {
int init_fonts(const char *font_path);
void prepare_font(unsigned int *vao, unsigned int *vbo);
Size calculate_text_size(const char *text, float scale);
void draw_number(Shader shader, int text, int row, int column, float scale,unsigned int vao, unsigned int vbo, float* transform);
void draw_number(Shader shader, Cell cell, int row, int column, float scale,unsigned int vao, unsigned int vbo, float* transform);
void draw_text(Shader shader, const char *text, Size text_size, float scale, unsigned int vao, unsigned int vbo, float *transform);