summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/engine.h22
-rw-r--r--include/quartz.h46
-rw-r--r--include/render.h11
-rw-r--r--include/sdl.h9
4 files changed, 0 insertions, 88 deletions
diff --git a/include/engine.h b/include/engine.h
deleted file mode 100644
index 45ebac8..0000000
--- a/include/engine.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#pragma once
-
-#include <stdbool.h>
-
-#define MAX_TABS 32 /* TODO: move to config */
-
-typedef struct {
- char* url;
- char* title;
- bool loading;
-} quartz_tab_t;
-
-int engine_get_current_index(void);
-int engine_get_tab_count(void);
-bool engine_init(void);
-void engine_load_url(int id, const char* url);
-void engine_shutdown(void);
-void engine_tab_close(int id);
-quartz_tab_t* engine_tab_current(void);
-int engine_tab_new(const char* url);
-void engine_tab_switch(int id);
-void engine_update(void);
diff --git a/include/quartz.h b/include/quartz.h
deleted file mode 100644
index 7c1c92d..0000000
--- a/include/quartz.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#pragma once
-
-#include <stdbool.h>
-#include <stdio.h>
-
-#include <SDL2/SDL.h>
-
-/* types */
-typedef struct {
- SDL_Window* win;
- SDL_GLContext gl;
- int win_w;
- int win_h;
- bool running;
-} quartz_t;
-
-/* logging */
-#define ANSI_RESET "\x1b[0m"
-#define ANSI_FG_WHITE "\x1b[37m"
-#define ANSI_BG_CYAN "\x1b[46m"
-#define ANSI_BG_MAGENTA "\x1b[45m"
-#define ANSI_BG_RED "\x1b[41m"
-#define ANSI_BG_GREEN "\x1b[42m"
-#define ANSI_BG_YELLOW "\x1b[43m"
-
-#define LOG(fmt, ...) \
- fprintf(stdout, fmt "\n", ##__VA_ARGS__)
-
-#define LOG_INFO(fmt, ...) \
- fprintf(stdout, ANSI_FG_WHITE ANSI_BG_CYAN " INFO " ANSI_RESET " " fmt "\n", ##__VA_ARGS__)
-
-#define LOG_PASS(fmt, ...) \
- fprintf(stdout, ANSI_FG_WHITE ANSI_BG_GREEN " PASS " ANSI_RESET " " fmt " (%s:%d)\n", ##__VA_ARGS__, __FILE__, __LINE__)
-
-#define LOG_WARN(fmt, ...) \
- fprintf(stderr, ANSI_FG_WHITE ANSI_BG_YELLOW " WARN " ANSI_RESET " " fmt "\n", ##__VA_ARGS__)
-
-#define LOG_ERROR(fmt, ...) \
- fprintf(stderr, ANSI_FG_WHITE ANSI_BG_RED " ERROR " ANSI_RESET " " fmt " (%s:%d)\n", ##__VA_ARGS__, __FILE__, __LINE__)
-
-#ifdef DEBUG
-#define LOG_DEBUG(fmt, ...) \
- fprintf(stdout, ANSI_FG_WHITE ANSI_BG_MAGENTA " DEBUG " ANSI_RESET " " fmt "\n", ##__VA_ARGS__)
-#else
-#define LOG_DEBUG(fmt, ...) ((void)0)
-#endif
diff --git a/include/render.h b/include/render.h
deleted file mode 100644
index 7b8a555..0000000
--- a/include/render.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#pragma once
-
-#include <stdbool.h>
-
-#include <SDL2/SDL_video.h>
-
-void render_begin(int w, int h);
-void render_end(SDL_Window* win);
-bool render_init(void);
-void render_rect(float x, float y, float w, float h, float r, float g, float b, float a);
-void render_shutdown(void);
diff --git a/include/sdl.h b/include/sdl.h
deleted file mode 100644
index e73a903..0000000
--- a/include/sdl.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#pragma once
-
-#include <stdbool.h>
-
-#include <SDL2/SDL.h>
-
-SDL_Window* sdl_create_window(const char* title, int w, int h);
-bool sdl_init(void);
-void sdl_quit(void);