fragworks/frag

BMP loading

zacharycarter opened this issue · 0 comments

Support loading / unloading of BMPs. Header bytes should be verified.
https://oroboro.com/image-format-magic-bytes/

Image loading / unloading should be performed with sdl2_image :
https://www.libsdl.org/projects/SDL_image/docs/SDL_image_frame.html

OpenGL code related to texture loading should be moved into a common proc.
https://github.com/fragworks/frag/blob/master/src/frag/graphics/two_d/texture.nim#L59-L71