![]() In Pascal function SDL_HasEvent(type_: TSDL_EventType). Names corresponding to reserved key words are kept and an underscore is added.Įx.: type in C function SDL_HasEvent(Uint32 type) changes into type_ Names of C defines (constants) and function parameters shall not be modified or "pascalified"Įx: SDL_INIT_VIDEO does not change into SDLInitVideo. To discuss or extend these guidelines, use the issue tracker. ![]() It easier to find certain code parts in the C headers/Pascal includes. These guidelines aim to have better consistency in this community project and make The main principle is to stay as tight as possible at the names in the C headers. (Continously) Adapt comments to PasDoc format.(Continously) improve Delphi-compatibility (and even more important, DO NOT break it).See part Enums on the Cheat sheet for reference. (Continously atm.) Translate integer aliases into typed enums.(Continously) Update files by new SDL2 functions and types which are present in more recent SDL2 versions.If you have any contributions or bugfixes, feel free to drop a pull request or send in a patch. PGD SDL2 Forum Bugs / Contributions / ToDos Official SDL2-for-Pascal Documentation Further Resources Units for the other SDL2 libraries are also provided: Use the sdl2 unit for the main SDL2 library (should be always needed). ![]() just copying & pasting the units into the same directory as your main source code.(FPC) using the -FuXXX command-line argument to the compiler.(FPC) using the directive in your source code.Simply add the units to your include path. The SDL2-for-Pascal repository is a community-maintained fork of the Pascal-SDL-2-Headers repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |