diff --git a/CPU-Software-Renderer/RenderData/Color.h b/CPU-Software-Renderer/RenderData/Color.h index 1aa5ba6..e95739b 100644 --- a/CPU-Software-Renderer/RenderData/Color.h +++ b/CPU-Software-Renderer/RenderData/Color.h @@ -30,5 +30,11 @@ namespace RenderData if (value > 255) return 255; return static_cast(value); } + + static Color Red() { return Color(255, 0, 0, 255); } + static Color Green() { return Color(0, 255, 0, 255); } + static Color Blue() { return Color(0, 0, 255, 255); } + static Color White() { return Color(255, 255, 255, 255); } + static Color Black() { return Color(0, 0, 0, 255); } }; } \ No newline at end of file diff --git a/CPU-Software-Renderer/main.cpp b/CPU-Software-Renderer/main.cpp index 119a337..7e423d5 100644 --- a/CPU-Software-Renderer/main.cpp +++ b/CPU-Software-Renderer/main.cpp @@ -171,7 +171,7 @@ static bool IsFaceVisible(const CubeFace& face, const std::array 0.0f; } int main(int argc, char* argv[])