Fixed SDL platform layer to be separate from Windows platform layer

This commit is contained in:
Michael Smith 2019-01-15 16:29:26 +01:00
parent 5b572c214c
commit 4ff1d8b7ff
4 changed files with 5 additions and 5 deletions

View File

@ -9,5 +9,5 @@ c++ -shared -o librt_weekend.so librt_weekend.o
rm librt_weekend.o
# Platform layer host application
c++ -Wall -std=c++11 -g ../code/platform.cpp -o platform `sdl2-config --libs --cflags`
c++ -Wall -std=c++11 -g ../code/sdl_platform.cpp -o sdl_platform `sdl2-config --libs --cflags`
popd

View File

@ -8,7 +8,7 @@
#include <errno.h>
#include <dlfcn.h>
#include "platform.h"
#include "sdl_platform.h"
const char *WindowTitle = "Ray Tracing in a Weekend";

View File

@ -1,5 +1,5 @@
#ifndef PLATFORM_H
#define PLATFORM_H
#ifndef SDL_PLATFORM_H
#define SDL_PLATFORM_H
typedef void plugin_update_and_render(plugin_offscreen_buffer *Buffer);

2
run.sh
View File

@ -1,4 +1,4 @@
#!/bin/sh
pushd build
./platform
./sdl_platform
popd