Page 1 of 1

Problems with DisplayShadowSprite

Posted: Sat Jan 17, 2004 2:58 pm
by robink
When i try to compile this code:

Code: Select all

If InitSprite() = 0 Or InitKeyboard() = 0 Or OpenScreen(1024, 769, 32, "") = 0
	End
EndIf

CreateSprite(0, 32 ,32 , #PB_Sprite_Alpha|#PB_Sprite_Memory)

Repeat
	StartSpecialFX()	
	DisplayShadowSprite(0, 0, 0)
	StopSpecialFX()

	FlipBuffers()	
	ClearScreen(0, 0, 0)
	Delay(10)
	ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
I get a error message:

Code: Select all

******************************************
PureBasic Linux x86 v3.81
******************************************
                                                                                                    
Loading external modules...
Starting compilation...
17 lines processed.
Creating the executable.
purebasic.o: In function `main':
purebasic.o(.text+0xa8): undefined reference to `PB_DisplayShadowSprite'
collect2: ld returned 1 exit status
                                                                                                    
- Feel the ..PuRe.. Power -
Does anybody else have this problem?

Posted: Sat Jan 17, 2004 3:55 pm
by TronDoc
******************************************
PureBasic Linux x86 v3.81
******************************************

Loading external modules...
Starting compilation...
17 lines processed.
Creating the executable.
purebasic.o(.text+0xa8): In function `main':
: undefined reference to `PB_DisplayShadowSprite'
collect2: ld returned 1 exit status
same here, but I don't know anything about grafix programming. --jb

Posted: Sun Jan 18, 2004 12:06 pm
by Christian
A Bug! The function is missing. Same error message like in this thread

viewtopic.php?t=9029

But there was it the Round() function!

:(

regards,
christian

Posted: Sun Jan 18, 2004 1:18 pm
by robink
I've got the same problem with DisplayAlphaSprite() and DrawImage(id , x,
y,,newwidthnewheight). And DrawingBufferPixelFormat() gives back 32, but none of the
#PB_PixelFormat_ constants has got the value 32 and i've got a problem with the #PB_Key_
constants : viewtopic.php?t=9076...

Posted: Sat Jun 12, 2004 8:24 pm
by Fred
I've added DisplayShadowSprite(), DisplayAlphaSprite() and fixed DrawingBufferPixelFormat(). About the DrawImage(), it will be an unsupported command for now, thanks to pointed it out.