SoftwareRasterizer/SoftwareRasterizer.cs
2025-05-31 21:28:57 -04:00

23 lines
583 B
C#

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();
}
}