From: Eric S. <sun...@su...> - 2007-05-31 12:56:52
|
On 5/30/07, Jim Sager <jam...@ya...> 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 |