The MASM Forum

Projects => MASM32 => Topic started by: xanatose on December 04, 2012, 02:03:51 PM

Title: Im seeking to eliminate dependencies on third party libraries.
Post by: xanatose on December 04, 2012, 02:03:51 PM
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?
Title: Re: Im seeking to eliminate dependencies on third party libraries.
Post by: dedndave on December 04, 2012, 02:21:23 PM
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
Title: Re: Im seeking to eliminate dependencies on third party libraries.
Post by: K_F on December 05, 2012, 04:30:40 PM
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.
;)
Title: Re: Im seeking to eliminate dependencies on third party libraries.
Post by: MichaelW on December 05, 2012, 05:33:26 PM
If you could find (or compile your own) static libraries to replace the DLLs, it could save you a large amount of effort.