mirror of https://github.com/WerWolv/ImHex
The bitmap visualizer has been simplified considerably. The previous version was designed to work with the TIM format which has some peculiarities that are not general enough. The current implementation has the following specifications. . Whether colors are in a lookup table or part of the image itself they are always 32 bit R8G8B8A8. . If using a color LUT the image then has indices as its element. Indices can have 16(32000 colors), 8 (256 colors) or 4(16 colors) bits each. .For the cases 0f 16 and 8 bits, the data should be an array of N*M elements of the given size where N is the number of rows and M is the number of columns of the image. . For the 4 bit case use an array of N*M/2 bytes so that each column contains two indices. ToDo: Documentation, sample patterns and unit tests. The 3-d visualizer can now handle textures from both the command line or the user interface and things should work as expected. A command line entry will be automatically displayed in the user interface, but changes will be applied immediately as you type or use the file picker. If the user interface text is deleted, then the command line texture will be used again. If a texture is invalid for any reason, then the previous one, if any, will be still in use and an error message will be displayed until the problem is cleared. Valid textures are image files that the stb library can open. |
||
|---|---|---|
| .. | ||
| include/content | ||
| romfs | ||
| source | ||
| CMakeLists.txt | ||