Fixed error with debug builds, fixed some errors with intellisense for vs solution (VS2022/JetBrains Rider)

This commit is contained in:
2023-12-29 12:29:22 -05:00
parent bcfbb94df7
commit 577ee6b208
9 changed files with 63 additions and 17 deletions

View File

@ -1,7 +1,24 @@
#if INTELLISENSE_DIRECTIVES
#include "platform.hpp"
#include "engine/engine.hpp"
#include "engine/engine_to_platform_api.hpp"
#include "win32.hpp"
// This is the "backbuffer" data related to the windowing surface provided by the operating system.
struct OffscreenBuffer
{
BITMAPINFO info;
char _PAD_[4];
void* memory; // Lets use directly mess with the "pixel's memory buffer"
s32 width;
s32 height;
s32 pitch;
s32 bytes_per_pixel;
};
extern OffscreenBuffer Surface_Back_Buffer;
extern f32 Engine_Frame_Target_MS;
extern u32 Engine_Refresh_Hz;
#endif
NS_PLATFORM_BEGIN

View File

@ -1081,6 +1081,7 @@ WinMain( HINSTANCE instance, HINSTANCE prev_instance, LPSTR commandline, int sho
engine_api.shutdown( & engine_memory, & platform_api );
#if Build_Development
for ( s32 slot = 0; slot < engine_memory.Num_Snapshot_Slots; ++slot )
{
engine::MemorySnapshot& snapshot = engine_memory.snapshots[ slot ];
@ -1089,6 +1090,7 @@ WinMain( HINSTANCE instance, HINSTANCE prev_instance, LPSTR commandline, int sho
CloseHandle( snapshot.opaque_handle_2 );
CloseHandle( snapshot.opaque_handle );
}
#endif
unload_engine_module_api( & engine_api );
DeleteFileA( Path_Engine_DLL_InUse );