From c67dd4754c4d628ced9f563abf82b6d91fd1b2f0 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Wed, 27 Jul 2022 12:42:58 +0200 Subject: [PATCH] Misc changes --- README.md | 8 ++++++++ obj_dump.cpp | 2 +- base_os_windows.cpp => os_windows_base.cpp | 0 base_multimedia.cpp => os_windows_multimedia.cpp | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) rename base_os_windows.cpp => os_windows_base.cpp (100%) rename base_multimedia.cpp => os_windows_multimedia.cpp (99%) diff --git a/README.md b/README.md index e1afa76..4a0e2e4 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,14 @@ Last clipping stage is performed in the 2D image space. Every triangle has a cor box. In this box every pixel gets tested to see if it's in the triangle. In this clipping stage the box is clipped to the image metrics - 0, 0, width, height. +## Source reading guide + +* main.cpp contains all the relevent drawing routines, including the optimized triangle rasterizing and other stuff like rendering text bitmaps +* base files act as a standard library +* base.cpp contains used data structures +* os_windows_base.cpp contains platform specific code that base partially depends on +* os_windows_multimedia.cpp deals with creating a window, creating a writable framebuffer etc. + ## Building 1. Download Visual Studio and Clang diff --git a/obj_dump.cpp b/obj_dump.cpp index 77b90e4..4a5e263 100644 --- a/obj_dump.cpp +++ b/obj_dump.cpp @@ -1,4 +1,4 @@ -#include "base_multimedia.cpp" +#include "os_windows_multimedia.cpp" #include "obj.cpp" #define STBI_ASSERT assert diff --git a/base_os_windows.cpp b/os_windows_base.cpp similarity index 100% rename from base_os_windows.cpp rename to os_windows_base.cpp diff --git a/base_multimedia.cpp b/os_windows_multimedia.cpp similarity index 99% rename from base_multimedia.cpp rename to os_windows_multimedia.cpp index 667f342..670a0bd 100644 --- a/base_multimedia.cpp +++ b/os_windows_multimedia.cpp @@ -1,6 +1,6 @@ #include "base.cpp" #include "base_unicode.cpp" -#include "base_os_windows.cpp" +#include "os_windows_base.cpp" #include #include