Fixed SDL platform layer to be separate from Windows platform layer
This commit is contained in:
parent
5b572c214c
commit
4ff1d8b7ff
2
build.sh
2
build.sh
@ -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
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user