Author Topic: Im seeking to eliminate dependencies on third party libraries.  (Read 2978 times)

xanatose

  • Member
  • ***
  • Posts: 398
Im seeking to eliminate dependencies on third party libraries.
« 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?

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Im seeking to eliminate dependencies on third party libraries.
« Reply #1 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

K_F

  • Member
  • *****
  • Posts: 1609
  • Anybody out there?
Re: Im seeking to eliminate dependencies on third party libraries.
« Reply #2 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.
 ;)
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: Im seeking to eliminate dependencies on third party libraries.
« Reply #3 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.
Well Microsoft, here’s another nice mess you’ve gotten us into.