Base Raylib Project
This commit is contained in:
commit
6a11dd6010
39
.gitignore
vendored
Normal file
39
.gitignore
vendored
Normal file
@ -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
|
||||||
23
SoftwareRasterizer.cs
Normal file
23
SoftwareRasterizer.cs
Normal file
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
14
SoftwareRasterizer.csproj
Normal file
14
SoftwareRasterizer.csproj
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Raylib-cs" Version="7.0.1" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
Loading…
Reference in New Issue
Block a user