Skip to content

Commit

Permalink
output: reorder function
Browse files Browse the repository at this point in the history
Moves the anim texture initialise function to match the header.
  • Loading branch information
lahm86 committed Jan 28, 2025
1 parent bd829fa commit ba819a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/libtrx/game/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ static int32_t M_CalculateDynamicLight(
return adder;
}

void Output_InitialiseAnimatedTextures(const int32_t num_ranges)
{
g_AnimTextureRanges = num_ranges == 0
? NULL
: GameBuf_Alloc(
sizeof(ANIMATED_TEXTURE_RANGE) * num_ranges,
GBUF_ANIMATED_TEXTURE_RANGES);
}

void Output_CalculateLight(const XYZ_32 pos, const int16_t room_num)
{
const ROOM *const room = Room_Get(room_num);
Expand Down Expand Up @@ -148,15 +157,6 @@ void Output_CalculateLight(const XYZ_32 pos, const int16_t room_num)
Output_SetLightDivider(global_divider);
}

void Output_InitialiseAnimatedTextures(const int32_t num_ranges)
{
g_AnimTextureRanges = num_ranges == 0
? NULL
: GameBuf_Alloc(
sizeof(ANIMATED_TEXTURE_RANGE) * num_ranges,
GBUF_ANIMATED_TEXTURE_RANGES);
}

void Output_CalculateStaticLight(const int16_t adder)
{
// TODO: use m_LsAdder
Expand Down

0 comments on commit ba819a8

Please sign in to comment.