src/ascension/context.h

changeset 214
9d460888a83e
parent 198
916d2d125ecf
--- a/src/ascension/context.h	Thu Jul 17 20:26:39 2025 +0200
+++ b/src/ascension/context.h	Fri Jul 18 18:01:41 2025 +0200
@@ -58,9 +58,7 @@
     cxmutstr texture_path;
     AscInput input;
     AscWindow windows[ASC_MAX_WINDOWS];
-    AscFont active_font;
     unsigned char active_window;
-    asc_col4i ink;
     float frame_rate;
     float frame_factor;
     uint64_t frame_nanos;
@@ -70,12 +68,6 @@
 /** Global ascension context. */
 extern AscContext asc_context;
 
-/**
- * The currently active font.
- * @see asc_font()
- */
-#define asc_active_font asc_context.active_font
-
 #ifdef NDEBUG
 /**
  * The currently active window in the context.
@@ -107,13 +99,6 @@
  */
 bool asc_loop_next(void);
 
-/**
- * Sets the active drawing color.
- */
-#define asc_ink(color) asc_context.ink = (color)
-#define asc_ink_rgba(r,g,b,a) asc_context.ink = (asc_col4i){(r),(g),(b),(a)}
-#define asc_ink_rgb(r,g,b) asc_context.ink = (asc_col4i){(r),(g),(b),255u}
-
 void asc_set_font_path(const char *path);
 void asc_set_shader_path(const char *path);
 void asc_set_texture_path(const char *path);

mercurial