mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2025-06-17 12:11:48 -07:00
Day 22 complete
This commit is contained in:
@ -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;
|
||||
|
@ -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 );
|
||||
|
3
project/engine/engine_game_api.hpp
Normal file
3
project/engine/engine_game_api.hpp
Normal file
@ -0,0 +1,3 @@
|
||||
/*
|
||||
This represents the API only accessible to the engine to fullfill for the game module.
|
||||
*/
|
@ -1,11 +0,0 @@
|
||||
#include "platform/win32.hpp"
|
||||
#include "engine.hpp"
|
||||
|
||||
b32 WINAPI DllMain(
|
||||
HINSTANCE instance,
|
||||
DWORD reason_for_call,
|
||||
LPVOID reserved
|
||||
)
|
||||
{
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user