Skip navigation

Loading .gif’s in Win32 is really easy through a GDI+ pathway.

The short of it is something like this:

#include <windows.h>
#include <gdiplus.h>
using namespace Gdiplus;
// .. main()
Image *image = new Image( "image.gif" );

Functions are located here: https://msdn.microsoft.com/en-us/library/windows/desktop/ms534462(v=vs.85).aspx

An example is here: https://github.com/superwills/eternity/blob/master/eternity/GDIPlusTexture.cpp#L133, or here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: