Normally when I load textures in OpenGL, I have a PNG file which I load into a System.Drawing.Bitmap
and from there I pull out the bytes and pass to glTexImage2D
. It works, but seems a bit silly having to create the bitmap in the first place. For this reason, I was toying with the idea of creating a very simple image format so I could just read the data directly when I came across a simple format named farbfeld. This article describes a basic encoder/decoder for C# along with my own thoughts.
January 2016 Blog Posts Articles and information on C# and .NET development topics
Continuing the slowing forming tradition of looking at the tools I've used over the past year and comparing them with previous years