mirror of
https://github.com/Ed94/HandmadeHero.git
synced 2024-09-20 11:47:34 -07:00
31 lines
599 B
C
31 lines
599 B
C
|
/*
|
||
|
Services the engine provides to the platform layer
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "platform.h"
|
||
|
|
||
|
#define NS_ENGINE_BEGIN namespace engine {
|
||
|
#define NS_ENGINE_END }
|
||
|
|
||
|
NS_ENGINE_BEGIN
|
||
|
|
||
|
struct OffscreenBuffer
|
||
|
{
|
||
|
void* Memory; // Lets use directly mess with the "pixel's memory buffer"
|
||
|
u32 Width;
|
||
|
u32 Height;
|
||
|
u32 Pitch;
|
||
|
u32 BytesPerPixel;
|
||
|
};
|
||
|
|
||
|
// Needs a contextual reference to four things:
|
||
|
// Timing, Input, Bitmap Buffer, Sound Buffer
|
||
|
void update_and_render( OffscreenBuffer* back_buffer
|
||
|
// Temp (for feature parity)
|
||
|
, u32 x_offset, u32 y_offset
|
||
|
);
|
||
|
|
||
|
NS_ENGINE_END
|