2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Added vs project

- Initial version of bindings(WIP)
This commit is contained in:
2018-07-13 14:55:07 +01:00
parent de373461e6
commit 172e0ecbb7
7 changed files with 2034 additions and 0 deletions

43
Raylib-cs/Program.cs Normal file
View File

@@ -0,0 +1,43 @@
using System;
using static Raylibcs.Raylibcs;
namespace Raylibcs
{
class Program
{
static void Main(string[] args)
{
InitWindow(800, 450, "Raylibcs 0.1");
SetTargetFPS(60);
SetExitKey(256);
var sound = LoadSound("alive.wav");
PlaySound(ref sound);
var t = LoadTexture("crimbocore.png");
//var f = LoadSpriteFont("Vera.ttf");
var w = new Color(255, 255, 255, 255);
var c = new Color(124, 124, 124, 255);
var g = new Color(230, 230, 230, 255);
while (!WindowShouldClose())
{
if (IsKeyPressed(257))
{
TakeScreenshot("test.png");
}
BeginDrawing();
ClearBackground(c);
DrawTexture(t, 0, 0, w);
DrawFPS(0, 0);
//DrawTextEx(f, "Congrats! You created your first window!", new Vector2(190, 200), 20, 0, w);
EndDrawing();
}
CloseWindow();
}
}
}