News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Im seeking to eliminate dependencies on third party libraries.

Started by xanatose, December 04, 2012, 02:03:51 PM

Previous topic - Next topic

xanatose

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?

dedndave

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

K_F

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.
;)
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

MichaelW

If you could find (or compile your own) static libraries to replace the DLLs, it could save you a large amount of effort.
Well Microsoft, here's another nice mess you've gotten us into.