On 5/30/07, Jim Sager <[EMAIL PROTECTED]> 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 Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]