Sign in Join
Wiki copytemporary

Game framework: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-A **game framework** is a library designed to help game development. It usually defines [APIs](https://en.wikipedia.org/wiki/Application_programming_interface) to deal with [[Graphics libraries|graphics]], sound, user input, data files, etc. In most cases it defines a high-level API that allows cross-platform development.
1+---
2+[[Portal:Game Development|**Game Development**]]
3+[[FPC and Allegro|Allegro Game Framework]] \- cross-platform · [[Castle Game Engine]] \- 2D and 3D cross-platform Pascal game engine · [[Choosing a Game Engine]] · [[Games]] · [[Game Engine|Game Engines]] · Game Frameworks · [[Graphics libraries]] · [[Lazarus- Game Developers Edition]] _Proposal_ · [[nxPascal]] \- lightweight 3D game engine · [[Peg Solitaire tutorial|Peg Solitaire]] \- a Lazarus game tutorial · [[Projects using Lazarus - Games]] · [[ZenGL]] \- Pascal cross-platform game development library
4+
5+A **game framework** is a library designed to help game development. It usually defines [APIs](<https://en.wikipedia.org/wiki/Application_programming_interface>) to deal with [[Graphics libraries|graphics]], sound, user input, data files, etc. In most cases it defines a high-level API that allows cross-platform development.
26
3-Main difference between game frameworks and [[Game Engine|game engines]] is that the latter also implements the game loop, as well as complex data structures (maps, actors...), data containers and tools.
7+Main difference between game frameworks and [[Game Engine|game engines]] is that the latter also implements the game loop, as well as complex data structures (maps, actors...), data containers and tools.
48
59## Game frameworks
610
7-| Name | Site | Usage | License | Notes |
8-|----|----|----|----|----|
9-| [[FPC and Allegro|Allegro]] | [liballeg.org](http://liballeg.org/) | [Bindings Allegro-pas](http://allegro-pas.sourceforge.net/) | Allegro 1-4: Beerware, Allegro 5: zlib | Allegro is a cross-platform library mainly aimed at video game and multimedia programming. It handles common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform. |
10-| Phoenix | [GitHub](https://github.com/GuvaCode/PGF) | FPC/Delphi | Mozilla Public License | A set of Delphi 7+ and Free Pascal components and classes to help in creating hardware accelerated 2D and 3D games. |
11-| [[GLScene]] | [SourceForge](http://glscene.sourceforge.net/) | FPC/Delphi | Mozilla Public License | GLScene is a free OpenGL-based library for the Delphi programming language, C++ and Free Pascal. It provides visual components and objects allowing description and rendering of 3D scenes. |
12-| Raylib | [www.raylib.com](https://www.raylib.com/) | FPC/Lazarus [Raylib 4.0 Pascal Bindings](https://github.com/sysrpl/Raylib.4.0.Pascal) | Zlib | Raylib is a popular game development toolkit in the computer programming education space. It provides windowing, input, graphics, text, audio, collision detection, and a basic GUI. The official website contains many examples and an easy to learn and use documentation cheatsheet. |
13-| SFML | [www.sfml-dev.org](https://www.sfml-dev.org/) | FPC/Lazarus [SFML headers](https://github.com/DJMaster/csfml-fpc) [PasSFML(OOP)](https://github.com/CWBudde/PasSFML) | | SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network. |
14-| SDL | [www.libsdl.org](http://www.libsdl.org) | [SDL2 for Pascal](https://github.com/PascalGameDevelopment/SDL2-for-Pascal) [SDL2 bindings for FPC](http://sourceforge.net/projects/sdl2fpc/?source=directory) [Laz2SDL](https://sourceforge.net/projects/lazsdl2/) [SDL2 Headers](https://github.com/ev1313/Pascal-SDL-2-Headers) | SDL2: [zlib](http://libsdl.org/license.php) | Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. |
15-| [[ZenGL]] | [SourceForge](https://sourceforge.net/projects/new-zengl/) | FPC/Delphi | [Zlib](http://www.zengl.org/license.html) | Cross-platform game development library written in Pascal, designed to provide necessary functionality for rendering 2D-graphics, handling input, sound output, etc. |
16-| Bare Game | [GitHub](https://github.com/sysrpl/Bare.Game) | FPC | | An open source modern minimal game cross platform gaming library using SDL. Archive of official web page from 2017 [www.baregame.org](https://web.archive.org/web/20171005052020/http://www.baregame.org/). |
17-
11+Name | Site | Usage | License | Notes
12+---|---|---|---|---
13+[[FPC and Allegro|Allegro]] | [liballeg.org](<http://liballeg.org/>) | [Bindings Allegro-pas](<http://allegro-pas.sourceforge.net/>) | Allegro 1-4: Beerware, Allegro 5: zlib | Allegro is a cross-platform library mainly aimed at video game and multimedia programming. It handles common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform.
14+Phoenix | [GitHub](<https://github.com/GuvaCode/PGF>) | FPC/Delphi | Mozilla Public License | A set of Delphi 7+ and Free Pascal components and classes to help in creating hardware accelerated 2D and 3D games.
15+[[GLScene]] | [SourceForge](<http://glscene.sourceforge.net/>) | FPC/Delphi | Mozilla Public License | GLScene is a free OpenGL-based library for the Delphi programming language, C++ and Free Pascal. It provides visual components and objects allowing description and rendering of 3D scenes.
16+Raylib | [www.raylib.com](<https://www.raylib.com/>) | FPC/Lazarus [Raylib 4.0 Pascal Bindings](<https://github.com/sysrpl/Raylib.4.0.Pascal>) | Zlib | Raylib is a popular game development toolkit in the computer programming education space. It provides windowing, input, graphics, text, audio, collision detection, and a basic GUI. The official website contains many examples and an easy to learn and use documentation cheatsheet.
17+SFML | [www.sfml-dev.org](<https://www.sfml-dev.org/>) | FPC/Lazarus [SFML headers](<https://github.com/DJMaster/csfml-fpc>) [PasSFML(OOP)](<https://github.com/CWBudde/PasSFML>) | | SFML is a simple, fast, cross-platform and object-oriented multimedia API. It provides access to windowing, graphics, audio and network.
18+SDL | [www.libsdl.org](<http://www.libsdl.org>) | [SDL3 for Pascal](<https://github.com/PascalGameDevelopment/SDL3-for-Pascal>)[SDL2 for Pascal](<https://github.com/PascalGameDevelopment/SDL2-for-Pascal>) [SDL2 bindings for FPC](<http://sourceforge.net/projects/sdl2fpc/?source=directory>) [Laz2SDL](<https://sourceforge.net/projects/lazsdl2/>) [SDL2 Headers](<https://github.com/ev1313/Pascal-SDL-2-Headers>) | SDL2/SDL3: [zlib](<http://libsdl.org/license.php>) | Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
19+[[ZenGL]] | [SourceForge](<https://sourceforge.net/projects/new-zengl/>) | FPC/Delphi | [Zlib](<http://www.zengl.org/license.html>) | Cross-platform game development library written in Pascal, designed to provide necessary functionality for rendering 2D-graphics, handling input, sound output, etc.
20+Bare Game | [GitHub](<https://github.com/sysrpl/Bare.Game>) | FPC | | An open source modern minimal game cross platform gaming library using SDL. Archive of official web page from 2017 [www.baregame.org](<https://web.archive.org/web/20171005052020/http://www.baregame.org/>).
21+
1822## Other libraries for games
1923
20-Libraries that aren't to create games but are useful.
21-
22-| Name | Site | Usage | License | Notes |
23-|----|----|----|----|----|
24-| [[Steam Wrapper]] | [<https://github.com/thecocce/steamwrapper>](https://github.com/thecocce/steamwrapper) | FPC/Delphi | | Cross-platform game development wrapper written in Pascal, designed to provide necessary functionality for rendering 2D-graphics, handling input, sound output, etc. |
24+Libraries that aren't to create games but are useful.
2525
26+Name | Site | Usage | License | Notes
27+---|---|---|---|---
28+[[Steam Wrapper]] | <https://github.com/thecocce/steamwrapper> | FPC/Delphi | | Cross-platform game development wrapper written in Pascal, designed to provide necessary functionality for rendering 2D-graphics, handling input, sound output, etc.
29+
2630## Using LCL for game development
2731
28-1\) From forum member **furious programming**.
32+1) From forum member **furious programming**.
2933
30-I suggest not to waste your time on LCL to build games, because it is not suitable for creating games for many reasons, including the most important:
34+I suggest not to waste your time on LCL to build games, because it is not suitable for creating games for many reasons, including the most important:
3135
32-- no Direct3D and OpenGL support
33-- unable to use GPU for rendering textures
34-- no exclusive video mode support and available screen resolutions
35-- absolutely no support for sound mixer and playing multiple sounds at the same time
36-- lack of support for game controllers and their full functionality
37-- lack o V-Sync support
36+ * no Direct3D and OpenGL support
37+ * unable to use GPU for rendering textures
38+ * no exclusive video mode support and available screen resolutions
39+ * absolutely no support for sound mixer and playing multiple sounds at the same time
40+ * lack of support for game controllers and their full functionality
41+ * lack o V-Sync support
3842
39-What I mentioned above are the basics, without which creating even a simple game will be inconvenient, the game itself will be very limited, and its performance will be very low (software rendering is horribly slow in compare to GPU rendering). As you can see, it doesn't make much sense.
43+What I mentioned above are the basics, without which creating even a simple game will be inconvenient, the game itself will be very limited, and its performance will be very low (software rendering is horribly slow in compare to GPU rendering). As you can see, it doesn't make much sense.
4044
41-Whether you want to make a tiny game or a bigger one, use the library dedicated to their creation. It does not have to be SDL, but it is important that it has all the functionality to create full-fledged video games. However, if you are interested in creating a 2D game, I strongly advise you not to use 3D engines for this purpose, because it will significantly complicate the implementation, and you will get discouraged very quickly.
45+Whether you want to make a tiny game or a bigger one, use the library dedicated to their creation. It does not have to be SDL, but it is important that it has all the functionality to create full-fledged video games. However, if you are interested in creating a 2D game, I strongly advise you not to use 3D engines for this purpose, because it will significantly complicate the implementation, and you will get discouraged very quickly.
4246
43-Use something small, light, functional and, above all, supported at all times. I suggest SDL because it meets all the requirements and is great, but it can also be Allegro, because it's the same shelf.
47+Use something small, light, functional and, above all, supported at all times. I suggest SDL because it meets all the requirements and is great, but it can also be Allegro, because it's the same shelf.
4448
45-2\) From forum member **Seenkao**.
49+2) From forum member **Seenkao**.
4650
47-There are quite a few solutions for using both LCL and OpenGL/DirectX at the same time. They can be seen in neighboring topics and on the Free Pascal wiki. In the German forum, almost all OpenGL tutorials are made under LCL. dglOpenGL.pas - allows you to work with LCL on Windows without much knowledge of creating an OpenGL window/context.
51+There are quite a few solutions for using both LCL and OpenGL/DirectX at the same time. They can be seen in neighboring topics and on the Free Pascal wiki. In the German forum, almost all OpenGL tutorials are made under LCL. dglOpenGL.pas - allows you to work with LCL on Windows without much knowledge of creating an OpenGL window/context.
4852
49-- [[OpenGL Tutorial]]
50-- [dglOpenGL tutorial, Deutsch](https://wiki.delphigl.com/index.php/Lazarus_-_OpenGL_3.3_Tutorial)
51-- [Metal, OpenGL demos](https://forum.lazarus.freepascal.org/index.php/topic,42306.0.html)
52-- [[GLScene]]
53-- [GLEngine2D](https://github.com/Dev-Demi/GLEngine2D), based on dglOpenGL. Deprecated. But it works.
54-- [[Game Engine]]
53+ * [[OpenGL Tutorial]]
54+ * [dglOpenGL tutorial, Deutsch](<https://wiki.delphigl.com/index.php/Lazarus_-_OpenGL_3.3_Tutorial>)
55+ * [Metal, OpenGL demos](<https://forum.lazarus.freepascal.org/index.php/topic,42306.0.html>)
56+ * [[GLScene]]
57+ * [GLEngine2D](<https://github.com/Dev-Demi/GLEngine2D>), based on dglOpenGL. Deprecated. But it works.
58+ * [[Game Engine]]
5559
56-I don't even think I can fully cover this topic. And there's a good chance I'll miss something. LCL can also be used with SDL, Castle Game Engine, PGF, Apus Game Engine, ZenGL and many other engines. Connecting controllers does not depend at all on what we use. To do this, you just need to use the necessary libraries. Often that already come with game engines. And it can also be used in LCL. With sound, no one forbids the use of single-channel / multi-channel sound. All this is provided in the respective libraries. And it can also be used in LCL.
60+I don't even think I can fully cover this topic. And there's a good chance I'll miss something. LCL can also be used with SDL, Castle Game Engine, PGF, Apus Game Engine, ZenGL and many other engines. Connecting controllers does not depend at all on what we use. To do this, you just need to use the necessary libraries. Often that already come with game engines. And it can also be used in LCL. With sound, no one forbids the use of single-channel / multi-channel sound. All this is provided in the respective libraries. And it can also be used in LCL.
5761
58-The only reason this is not a suitable option is if you have a highly loaded application. Here I partly agree! In simple games, this has almost no effect.
62+The only reason this is not a suitable option is if you have a highly loaded application. Here I partly agree! In simple games, this has almost no effect.
5963
6064## See also
6165
62-- [[Graphics libraries]]
63-- [[Game Engine|Game engine]]
66+ * [[Graphics libraries]]
67+ * [[Game Engine|Game engine]]
6468
6569---
66-*From the Free Pascal wiki, page "Game framework", as it stood on 2024-04-20 after a change by Chronos, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
67-Category: Game Development
68-Category: Games
70+*From the Free Pascal wiki, page "Game framework", as the Internet Archive kept it on 2026-02-09, last changed on 2025-04-25. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history