Home

Awesome

Build Status

GLPT :: OpenGL Pascal Toolkit

An easy to use native pascal toolkit that allows to create and manage OpenGL contexts in a platform independent way. GLPT is available under the MIT license.

alt text alt text

Usage

Using GLPT is easy, you only need to include the GLPT unit and create a window. Then run the event loop and do all your application stuff there. There are numerous examples included to help you to make a jump start.

uses
  GLPT;

  ...

  GLPT_Init;
  window := GLPT_CreateWindow(0, 0, width, height, 'Simple example');

  while not GLPT_WindowShouldClose(window) do
  begin
    //do your application and OpenGL magic here

    GLPT_SwapBuffers(window);
    GLPT_PollEvents;
  end;

  GLPT_Terminate;
<!-- API-SUPPORT-LIST:START -->

API (v0.1.1) support

API functionLinux (X11)Mac OSX (Cocoa)Windows (GDI)
GLPT_CreateWindow<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_DestroyWindow<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_GetDisplayCoords<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_GetFrameBufferSize<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_GetLastError<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_GetTime<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_GetVersionString<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_Init<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_MakeCurrent<img src="https://github.com/daar/GLPT/blob/master/doc/red.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_PollEvents<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_SetCursor<img src="https://github.com/daar/GLPT/blob/master/doc/red.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/orange.svg">
GLPT_SetErrorCallback<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_SetWindowShouldClose<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_SwapBuffers<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_Terminate<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
GLPT_WindowShouldClose<img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg"><img src="https://github.com/daar/GLPT/blob/master/doc/green.svg">
<!-- API-SUPPORT-LIST:END -->

Design considerations

GLPT is planned to be a simple and easy to use library. When working on the code please consider the following;

Contributors

<!-- CONTRIBUTOR-LIST:START --> <!-- CONTRIBUTOR-LIST:END -->