Moved platform specific code to its own directory.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "rt_weekend.h"
|
||||
#include "../rt_weekend.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/mman.h>
|
||||
#include <stdbool.h>
|
||||
@@ -14,8 +14,8 @@ const char *WindowTitle = "Ray Tracing in a Weekend";
|
||||
|
||||
const uint32_t TARGET_FRAME_RATE = 10;
|
||||
const uint32_t TICKS_PER_FRAME = 1000 / TARGET_FRAME_RATE;
|
||||
const uint32_t WINDOW_WIDTH = 1000;
|
||||
const uint32_t WINDOW_HEIGHT = 500;
|
||||
const uint32_t WINDOW_WIDTH = 500;
|
||||
const uint32_t WINDOW_HEIGHT = 250;
|
||||
|
||||
global_variable bool Running = true;
|
||||
global_variable sdl_offscreen_buffer GlobalBackbuffer;
|
||||
@@ -1,6 +1,6 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS 1
|
||||
#define SDL_MAIN_HANDLED
|
||||
#include "rt_weekend.h"
|
||||
#include "../rt_weekend.h"
|
||||
|
||||
#include <windows.h>
|
||||
#include <SDL.h>
|
||||
@@ -1,32 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.271
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{911E67C6-3D85-4FCE-B560-20A9C3E3FF48}") = "win32_platform", "..\build\win32_platform.exe", "{7EE2B853-EA19-4366-8F86-B1820B9F6782}"
|
||||
ProjectSection(DebuggerProjectSystem) = preProject
|
||||
PortSupplier = 00000000-0000-0000-0000-000000000000
|
||||
Executable = W:\1weekendraytracer\build\win32_platform.exe
|
||||
RemoteMachine = T410
|
||||
StartingDirectory = W:\1weekendraytracer\build
|
||||
Environment = Default
|
||||
LaunchingEngine = 00000000-0000-0000-0000-000000000000
|
||||
UseLegacyDebugEngines = No
|
||||
LaunchSQLEngine = No
|
||||
AttachLaunchAction = No
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{7EE2B853-EA19-4366-8F86-B1820B9F6782}.Release|x64.ActiveCfg = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {4F394C8A-2DD9-4A39-A237-1406BB45DF5E}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user