From be25789773aaae89dcfeee2816a3dfce29753981 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sun, 4 Jan 2026 20:45:36 -0800 Subject: Rename sgTexture_t -> sgImage --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1f900bc..dcd0335 100644 --- a/src/main.c +++ b/src/main.c @@ -29,7 +29,7 @@ static constexpr sgVec2i WindowDims = (sgVec2i){.x = WindowWidth, .y = WindowH static constexpr R Fovy = (R)(90 * TO_RAD); static constexpr R Near = 0.1f; -static constexpr R Far = 1000.0f; +static constexpr R Far = 100.0f; #define DEBUG_EVENT_LOOP 1 @@ -69,7 +69,7 @@ typedef struct State { void* gfx_mem; swgfx* gfx; Model* model; - sgTexture_t texture; + sgImage texture; Camera camera; CameraController camera_controller; Uint64 last_tick; @@ -291,7 +291,7 @@ static bool Initialize(State* state) { } if (state->model->material.diffuseTexture[0] != 0) { // TODO: When doing lighting, need to gamma-correct here. - sgTexture_t texture = {0}; + sgImage texture = {0}; int channels = 0; constexpr int desired_channels = 4; texture.pixels = (sgPixel*)stbi_load(state->model->material.diffuseTexture, &texture.width, &texture.height, &channels, desired_channels); @@ -326,7 +326,7 @@ static void Shutdown(State* state) { if (state->texture.pixels) { free(state->texture.pixels); - state->texture = (sgTexture_t){0}; + state->texture = (sgImage){0}; } if (state->model) { -- cgit v1.2.3