Added some convenience for setting up the win32 build env. Lowered framerate in win32 platform layer.
This commit is contained in:
parent
37f1a18d1d
commit
0c01a876b0
BIN
Command Prompt.lnk
Normal file
BIN
Command Prompt.lnk
Normal file
Binary file not shown.
@ -4,8 +4,6 @@ set PlatformCompilerFlags=/I ..\lib\SDL2\include
|
||||
set CommonLinkerFlags=-incremental:no -opt:ref
|
||||
set PlatformLinkerFlags=/LIBPATH:..\lib\SDL2\lib\x64 /SUBSYSTEM:CONSOLE SDL2.lib SDL2main.lib
|
||||
|
||||
REM call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
||||
|
||||
cls
|
||||
if not exist "build" mkdir build
|
||||
pushd build
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
|
||||
const char *WindowTitle = "Ray Tracing in a Weekend";
|
||||
|
||||
const uint32_t TARGET_FRAME_RATE = 30;
|
||||
const uint32_t TARGET_FRAME_RATE = 10;
|
||||
const uint32_t TICKS_PER_FRAME = 1000 / TARGET_FRAME_RATE;
|
||||
const uint32_t WINDOW_WIDTH = 500;
|
||||
const uint32_t WINDOW_HEIGHT = 250;
|
||||
|
||||
2
win32_devenv.bat
Normal file
2
win32_devenv.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
||||
Reference in New Issue
Block a user