commit 6a11dd6010daf7da1bfba073cf35cc08af78435c Author: Bobby Lucero Date: Sat May 31 21:28:57 2025 -0400 Base Raylib Project diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4276edf --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# .NET build artifacts +bin/ +obj/ + +# User-specific files +*.user +*.suo +*.userprefs + +# Visual Studio Code +.vscode/ + +# Rider +.idea/ + +# Build logs +*.log + +# Auto-generated files +Generated_Code/ + +# OS junk +.DS_Store +Thumbs.db + +# raylib native binaries (optional — include if you copy DLLs manually) +raylib.dll +libraylib.so +libraylib.dylib + +# NuGet packages (optional, unless you're checking in .nupkg) +*.nupkg +*.snupkg + +# dotnet tools and temporary files +*.tmp +*.bak +*.swp +*.swo \ No newline at end of file diff --git a/SoftwareRasterizer.cs b/SoftwareRasterizer.cs new file mode 100644 index 0000000..af3632b --- /dev/null +++ b/SoftwareRasterizer.cs @@ -0,0 +1,23 @@ +using Raylib_cs; + +class SoftwareRasterizer +{ + static void Main() + { + const int screenWidth = 800; + const int screenHeight = 600; + + Raylib.InitWindow(screenWidth, screenHeight, "Software Rasterizer"); + Raylib.SetTargetFPS(60); + + while (!Raylib.WindowShouldClose()) + { + Raylib.BeginDrawing(); + Raylib.ClearBackground(Color.RayWhite); + Raylib.DrawText("Hello, Raylib-cs!", 190, 200, 20, Color.LightGray); + Raylib.EndDrawing(); + } + + Raylib.CloseWindow(); + } +} \ No newline at end of file diff --git a/SoftwareRasterizer.csproj b/SoftwareRasterizer.csproj new file mode 100644 index 0000000..c99d292 --- /dev/null +++ b/SoftwareRasterizer.csproj @@ -0,0 +1,14 @@ + + + + Exe + net8.0 + enable + enable + + + + + + +