It's cool. thebolt helped me.
xbut2.AttachNew (new csImageMemory (xbut));
That is the same as:
xbut2->Clone(xbut);
Eric Sunshine <[EMAIL PROTECTED]> wrote:
On 5/30/07, Jim Sager wrote:
> Please don't boo me for not understanding this. I found out in the
> documentation that I need to use csImageMemory:
> http://www.crystalspace3d.org/docs/online/manual/Api1_005f0-Interface-Changes.php#0
> Here is my code. I'm trying to copy xbut into xbut2.
> xbut =
> loader->LoadImage ("/this/data/AWT/X.TGA",
> CS_IMGFMT_TRUECOLOR | CS_IMGFMT_ALPHA);
> csImageMemory csim(xbut);
> xbut2=csim.GetMipmap(0); //This line gives a runtime error of "pure virtual
> method called"
Are you doing any error checking? For instance, did you check that
'xbut' is valid (i.e. non-null)?
-- ES
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]