@@ -264,17 +264,7 @@ void sc_gfx_draw_rect (SCGfxContext *ctx, SCRect2f rect, SCColor color);
264264void sc_gfx_draw_sprite (SCGfxContext * ctx , SCRect2f dest , SCGfxTexture tex , SCColor tint );
265265void sc_gfx_draw_line (SCGfxContext * ctx , SCVec2 a , SCVec2 b , f32 width , SCColor color );
266266
267- /* -------------------------------------------------------------------------
268- * Implementation (software rasteriser only – other backends link separately)
269- * ---------------------------------------------------------------------- */
270- #ifdef SC_GFX_IMPLEMENTATION
271-
272- #include <stdlib.h>
273- #include <string.h>
274- #include <stdio.h>
275- #include <math.h>
276-
277- /* ---- slot pool macros ------------------------------------------------- */
267+ /* ---- Slot / texture / batch types (used by both impl and declaration) --- */
278268#define _SC_SLOT_GENERATIONS 1
279269
280270typedef struct { u32 gen ; bool live ; } _SCSlot ;
@@ -309,6 +299,16 @@ void sc_vulkan_destroy_texture(SCGfxContext *ctx, SCGfxTexture tex);
309299SCResult sc_vulkan_resize (SCGfxContext * ctx , u32 width , u32 height );
310300#endif
311301
302+ /* -------------------------------------------------------------------------
303+ * Implementation (software rasteriser only – other backends link separately)
304+ * ---------------------------------------------------------------------- */
305+ #ifdef SC_GFX_IMPLEMENTATION
306+
307+ #include <stdlib.h>
308+ #include <string.h>
309+ #include <stdio.h>
310+ #include <math.h>
311+
312312/* ---- Internal context ------------------------------------------------- */
313313#define _SC_MAX_2D_VERTS 65536
314314#define _SC_MAX_2D_CMDS 8192
0 commit comments