Guest User

C# Raylib

a guest
Apr 11th, 2024
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. using Raylib_cs;
  4.  
  5. namespace ConsoleApp
  6. {
  7.     class Program
  8.     {
  9.         static void Main(string[] args)
  10.         {
  11.             Raylib.InitWindow(800, 600, "TEST");
  12.  
  13.             while (!Raylib.WindowShouldClose())
  14.             {
  15.                 Raylib.BeginDrawing();
  16.                 //Raylib.ClearBackground(Color.RAYWHITE);
  17.  
  18.                 Raylib.DrawText("Hello C# Window", 10, 10, 20, Color.RED);
  19.  
  20.                 Raylib.EndDrawing();
  21.             }
  22.             Raylib.CloseWindow();
  23.         }
  24.     }
  25. }
  26.  
Tags: C# Ralib
Advertisement
Add Comment
Please, Sign In to add comment