From cb7d51338fd32c23f377dc3c2f339ea2c0ca746f Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 11 Apr 2024 19:50:04 +0200 Subject: cheese3d: use ctx.{width,height,pitch} instead of the values from gfx_info --- stage3/cheese3d.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stage3/cheese3d.h') diff --git a/stage3/cheese3d.h b/stage3/cheese3d.h index f93872f..4ac4639 100644 --- a/stage3/cheese3d.h +++ b/stage3/cheese3d.h @@ -16,6 +16,7 @@ typedef struct { } texture; typedef struct { + void *target; u32 width; u32 height; u32 pitch; @@ -27,7 +28,7 @@ typedef struct { #define VERT(x, y, z, s, t) { { x, y, z }, { s, t } } // this exists to work with the QUAD macro #define QUAD(a, b, c, d) a, b, c, a, c, d -cheese3d_ctx cheese3d_create(u32 width, u32 height, u32 pitch, u32 bgcolor); +cheese3d_ctx cheese3d_create(void *target, u32 width, u32 height, u32 pitch, u32 bgcolor); cheese3d_ctx cheese3d_create_default(u32 bgcolor); void cheese3d_destroy(cheese3d_ctx ctx); void cheese3d_clear(cheese3d_ctx ctx, bool color, bool depth); -- cgit v1.2.3