What I mean is that I want to include as few as possible units. My project for now uses only units
Windows,
Messages,
BMP //handlung loading the bmp file into texture
OpenGL;
I want .exe file is keept as little as possible
I think there should be a way to save the RGB array from the loaded texture but I don't know how. I think if the function provided by the BMP unit returns the texture, than the texture is RGB array and can be saved. Any ideas?
I know how to solve the problem with the ImageList but no one VCL component (Image list is VCL component) should be used.
If I can separate only that part of the library that is needed and it will no add to the .exe more than 15-20KB the solution is acceptable as a last resor. Also, any solution that can write BMP into arrays (as an external program, not used in the game) is more than acceptable
The goal is to make little but quality game, whis not used external files and player can edit them easly