Reference Codebot.Platform.SDL.pas
Part of the Codebot Render SDL package
The Codebot.Platform.SDL unit provides the Codebot.Platform interfaces using SDL2, for programs that run their scenes without the LCL. Bitmaps are loaded and saved using SDL_image, the clipboard is the SDL clipboard, and message dialogs are SDL message boxes. SDL has no file dialogs of its own, so the file and picture dialogs are the ones built from widgets in Codebot.Render.Widgets.Dialogs.
You don't need to call anything. The platform routines are set up when this unit is initialized.
Items 14 items
| Name | Kind | Line |
|---|---|---|
| NewBitmapDataSDL | function | 65 |
| NewWindowSDL | function | 68 |
| TBitmapDataSDL | class | 44 |
| GetHeight | function | 51 |
| GetPixels | function | 52 |
| GetWidth | function | 50 |
| LoadFromFile | procedure | 55 |
| LoadFromStream | procedure | 56 |
| SaveToFile | procedure | 57 |
| SaveToStream | procedure | 58 |
| SetSize | procedure | 54 |
| Height | property | 60 |
| Pixels | property | 61 |
| Width | property | 59 |