mirror of
https://github.com/IllusionMan1212/cudoku.git
synced 2026-10-24 02:12:25 +00:00
brain rot
This commit is contained in:
@@ -115,5 +115,5 @@ void draw_numbers(Shader shader, unsigned int vao, unsigned int vbo, float *tran
|
|||||||
void draw_win_overlay(Shader shader, unsigned int vao, unsigned int vbo, float *transform) {
|
void draw_win_overlay(Shader shader, unsigned int vao, unsigned int vbo, float *transform) {
|
||||||
const char *text = "You won!";
|
const char *text = "You won!";
|
||||||
Size text_size = calculate_text_size(text, 1.0f);
|
Size text_size = calculate_text_size(text, 1.0f);
|
||||||
draw_text(shader, text, text_size, 1.0f, vao, vbo, transform);
|
draw_text(shader, text, text_size, 1.5f, vao, vbo, transform);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ int init_fonts(const char *font_path);
|
|||||||
void prepare_font(unsigned int *vao, unsigned int *vbo);
|
void prepare_font(unsigned int *vao, unsigned int *vbo);
|
||||||
Size calculate_text_size(const char *text, float scale);
|
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, int text, 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 *projection);
|
void draw_text(Shader shader, const char *text, Size text_size, float scale, unsigned int vao, unsigned int vbo, float *transform);
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <glad/glx.h>
|
#include <glad/glx.h>
|
||||||
#include <time.h>
|
|
||||||
#include "3rdparty/stb/stb_image.h"
|
#include "3rdparty/stb/stb_image.h"
|
||||||
|
|
||||||
#include "x11.h"
|
#include "x11.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user