This commit is contained in:
2024-07-09 22:15:52 +01:00
parent 2d30f26fc9
commit 374bfc8bf1
5 changed files with 91 additions and 29 deletions

View File

@@ -33,12 +33,18 @@ struct GameInput {
int yOffset;
};
struct GameSoundOutputBuffer {
int samplesPerSecond;
int sampleCount;
int16 *samples;
};
struct GameOffscreenBuffer {
void *memory;
int width;
int height;
};
void gameUpdateAndRender();
void gameUpdateAndRender(GameOffscreenBuffer *videoBuf, GameInput *input, GameSoundOutputBuffer *soundBuf);
// Platform to game services