Watch
2
0
Fork
You've already forked raylib-cs
0
raylib-cs/Raylib-cs.Examples/Samples.cs
2023-08-14 00:28:50 +07:00

32 lines
683 B
C#

namespace Raylib_cs.Examples;
public sealed class Samples : IDisposable
{
public Samples()
{
Raylib.InitWindow(800, 450, nameof(Samples));
Raylib.SetTargetFPS(60);
}
public void Run()
{
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(Color.RAYWHITE);
Raylib.DrawText(
"Congrats! You created your first window!",
190,
200,
20,
Color.LIGHTGRAY
);
Raylib.EndDrawing();
}
}
public void Dispose()
{
Raylib.CloseWindow();
}
}