Hi.
Im doing some opengl coding, but most info I find is using third party libraries. My target is windows 7 and over and Im pretty sure that win32 already has support for what this libraries do.
Specifically im looking for win32 code snippets (in win32 assembly or c (not C# or C++)) to:
- Decompress a jpg to a memory buffer. (eliminate libjpeg dependency)
- Decompress a png (with translucency) to a memory buffer. (eliminate libpng and zlib dependency)
- Drawing true type text on opengl without using freetype. (eliminating freetype dependency)
My target is to eliminate all the dependencies I can so that the resulting executable is smaller and without need of any dll that is not installed by windows 7 by default.
Does anyone knows where I can find snippets of code that do this?
GDI Plus can do the images for you
i think it can even handle the translucency - but i don't have any code to show you
not sure about the fonts
You probably will have to write your own codec (compressor/decompressor) then..
There's a ton of info at the JPEG group (google) and other Picture groups.
I hope you're into maths and fourier/cosine/Many other transforms... a fair amount of reading.
;)
If you could find (or compile your own) static libraries to replace the DLLs, it could save you a large amount of effort.