Day 22 complete

This commit is contained in:
2023-09-27 01:16:41 -04:00
parent 9220550dd4
commit 9bb8026762
25 changed files with 532 additions and 205 deletions

View File

@ -110,7 +110,7 @@ render_weird_graident(OffscreenBuffer* buffer, u32 x_offset, u32 y_offset )
u8 red = 0;
#endif
*pixel++ = u32(red << 16) | u32(green << 8) | blue;
*pixel++ = u32(red << 16) | u32(green/2 << 16) | blue/2 << 0;
}
wildcard += 0.5375f;
row += buffer->Pitch;

View File

@ -50,7 +50,6 @@ struct AudioBuffer
u32 RunningSampleIndex;
s32 SamplesPerSecond;
s32 NumSamples;
char _PAD_[4];
};
struct DigitalBtn
@ -190,7 +189,6 @@ struct InputMode
{
InputBindCallback* Binds;
s32 NumBinds;
char _PAD_[4];
};
void input_mode_pop( InputMode* mode );

View File

@ -0,0 +1,3 @@
/*
This represents the API only accessible to the engine to fullfill for the game module.
*/

View File

@ -1,11 +0,0 @@
#include "platform/win32.hpp"
#include "engine.hpp"
b32 WINAPI DllMain(
HINSTANCE instance,
DWORD reason_for_call,
LPVOID reserved
)
{
return true;
}