This repo contains bindings to SDL2, SDL2_image and modern OpenGL for BlackBox. Windows version and Linux version switched using selectors OS:Win32 and OS:Linux32. SDL2 and SDL2_image bindings hand writed and not fully, but most functions implemented. About implementation: - Prefixes SDL_ and IMG_ removed, prefix SDLK_ renamed to K_. - Structures that can only be pointers(like struct Window) already binded as pointers to limited records. - C types binded as Int, Long, SizeT, Uint, Enum, STR and PtrSTR. - SDL_bool renamed to Bool. - Procedure GetClosestDisplayMode returns Int instead pointer(possibly to local variable). - Everywhere used IN-params, VAR-params when possibly and read-only fields in accordance with documentation. Module SDL2Lib / SDL2Image binds functions, types and consants. Module SDL2Macro implements inline functions and macroses. Module SDL2Test just a sample how to use SDL2 in BlackBox. OpenGL bindings generated from gl.xml (fresh version can be founded there https://github.com/KhronosGroup/OpenGL-Registry). About implementation: - Prefixes not removed. - Call procedure SDL2GL.Init after context creation. - Pointer prameters binded as VAR-params. Module SDL2GL contains all constants, types and procedures. Module SDL2GLGen is utility for binding generation. It contains shitcode depends on subsystem Xmlcore(http://www.zinnamturm.eu/downloadsTZ.htm#Xmlcore). Todo: - Some c headers and macroses (see sources). - Cpu-dependent procedures using [code]. - Test everything. - Documentation. - Samples.