z-cub / raylib

Pascal bindings that allow you to use raylib with Delphi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raylib

Chat on Discord Twitter Follow

raylib

A simple and easy-to-use library to enjoy videogames programming

Pascal bindings that allow you to use raylib and other useful libraries with Delphi.

Included

Minimum Requirements

Usage

You simply add raylib to your uses section and everything will be linked in your executable, ready for use with no DLLs to maintain. You will have direct access to all the aforementioned libraries.

uses
  System.SysUtils,
  raylib;

const
  screenWidth = 800;
  screenHeight = 450;

begin
  InitWindow(screenWidth, screenHeight, 'raylib [core] example - basic window');
  while not WindowShouldClose do
  begin
    BeginDrawing;
      ClearBackground(RAYWHITE);
      DrawText('Congrats! You created your first window!', 190, 200, 20, LIGHTGRAY);
    EndDrawing;
  end;
  CloseWindow;
end.

Support

Delphi

Made with ❤️ in Delphi

About

Pascal bindings that allow you to use raylib with Delphi

License:Other


Languages

Language:Pascal 100.0%