Skip to content

Commit

Permalink
Replace Raylib's InitWindow call with the sk_engine's abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Jun 29, 2024
1 parent af265fb commit 68393ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sk_renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
#include <assert.h>
#include <sk_config.h>
#include <sk_client.h>
#include <sk_engine.h>
#include <sk_renderer.h>

void sk_renderer_create(sk_config *config) {
SetConfigFlags(FLAG_MSAA_4X_HINT);
SetConfigFlags(FLAG_BORDERLESS_WINDOWED_MODE);
SetConfigFlags(FLAG_WINDOW_MOUSE_PASSTHROUGH);
InitWindow(config->video.win_width,
config->video.win_height,
SK_CLIENT_NAME);
sk_engine_init_window(config->video.win_width,
config->video.win_height,
SK_CLIENT_NAME);
assert(IsWindowReady());
InitAudioDevice();
assert(IsAudioDeviceReady());
Expand Down

0 comments on commit 68393ab

Please sign in to comment.