nanogui: How to load a bitmap?
Subject:
Re: [nanogui] How to load a bitmap?
From:
"Uwe Klatt" ####@####.####
Date:
24 Jan 2007 15:59:09 +0000
Message-Id: <001101c73fd0$7d89d180$081710ac@arnstein.miwe.de>
Hello Franco,
sorry, I made a little extension to microwindows and forget to tell you
about it ;-)
You must add the following small function to "devimage.c".
Bye
Uwe
=========================== add this to "devimage.c" ======================
/*
* Uwe Klatt 2006
* return preloaded image
*/
PMWIMAGEHDR GdGetImage(int id)
{
PIMAGEITEM pItem;
pItem = findimage(id);
if(pItem)
return pItem->pimage;
else
return NULL;
}
========================================================================
============================ add this to "device.h"
========================
/* devimage.c */
PMWIMAGEHDR GdGetImage(int id);
========================================================================
Franco Casadei wrote:
> I've tried your code, but I get an .."undefined referenced to
> _GdGetImage()..."
> Probably I do not include the graphic engine properly from my
> application. I just
> #include <windows.h>
> and link to to libmwin.a and libmwimages.a libraries,
> but this doesn't suffice.
> Do you known what is missing?
> Thanks,
> Casadei Franco
> ITALY