fix gitignore

This commit is contained in:
sam 2024-08-12 08:27:58 +12:00
parent 7c45631e1a
commit d6dce5a9a7
5 changed files with 9 additions and 8 deletions

4
.gitignore vendored
View file

@ -1,7 +1,7 @@
**/*.o
**/*.a
**/*.exe
**/.DS_Store
.cache/
**/*.exe
examples/log.txt
**/log.txt
compile_commands.json

View file

@ -7,7 +7,7 @@ int main() {
gr_window_create(1920, 1080, "hi");
while(!gr_window_should_close()) {
gr_window_clear(249, 163, 255);
gr_window_clear(26, 26, 26);
}
}

View file

@ -1,6 +1,6 @@
#include <gearlib.h>
int main() {
gr_state_init();
// gr_state_init();
gr_window_create(800, 600, "hi");
}

View file

@ -5,6 +5,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include <stdlib.h>
typedef uint8_t u8;
typedef uint16_t u16;

View file

@ -5,7 +5,7 @@
bool gr_window_init(i32 major, i32 minor) {
if(gr_state->window_initialized == true) {
log_fatal("Init already called");
log_error("Init already called, ignoring call to init");
return false;
}
@ -28,7 +28,7 @@ bool gr_window_create(i32 width, i32 height, const char* title) {
const char* platform = gr_platform_get_name();
if(!gr_platform_init()) {
log_fatal("%s failed to initialize", platform);
return false;
exit(EXIT_FAILURE);
}
log_info("%s initialized successfully", platform);
@ -36,7 +36,7 @@ bool gr_window_create(i32 width, i32 height, const char* title) {
void* window = gr_platform_create_window(width, height, title);
if(window == NULL) {
log_fatal("%s failed to create window", platform);
return false;
exit(EXIT_FAILURE);
}
log_info("%s window created successfully", platform);
@ -46,7 +46,7 @@ bool gr_window_create(i32 width, i32 height, const char* title) {
if(!gladLoadGLLoader(gr_platform_get_load_proc())) {
log_fatal("Glad failed to load");
return false;
exit(EXIT_FAILURE);
}
log_info("Glad loaded successfully");