23 lines
583 B
C#
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.LightGray);
|
|
Raylib.DrawText("Hello, Raylib-cs!", 190, 200, 50, Color.DarkGray);
|
|
Raylib.EndDrawing();
|
|
}
|
|
|
|
Raylib.CloseWindow();
|
|
}
|
|
} |