diff --git a/.gitignore b/.gitignore index dc84959..bde9150 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ build/ - +code/.vs diff --git a/code/rt_weekend.cpp b/code/rt_weekend.cpp index ca49c42..22ee0ff 100644 --- a/code/rt_weekend.cpp +++ b/code/rt_weekend.cpp @@ -38,8 +38,8 @@ PluginUpdateAndRender(plugin_offscreen_buffer *Buffer) float r = float(X) / float(Buffer->Width); float g = float(Y) / float(Buffer->Height); float b = 0.2; - int ig = int(255.99 * r); - int ir = int(255.99 * g); + int ir = int(255.99 * r); + int ig = int(255.99 * g); int ib = int(255.99 * b); *Pixel++ = (ir << 24) + (ig << 16) + (ib << 8) + 0xFF; diff --git a/code/win32_platform.sln b/code/win32_platform.sln new file mode 100644 index 0000000..c0ad4cf --- /dev/null +++ b/code/win32_platform.sln @@ -0,0 +1,32 @@ + +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