Problems with DisplayShadowSprite

Linux specific forum
robink
User
User
Posts: 26
Joined: Sat Jan 03, 2004 7:25 pm
Location: Rinteln
Contact:

Problems with DisplayShadowSprite

Post 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?
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post 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
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
Christian
Enthusiast
Enthusiast
Posts: 154
Joined: Mon Dec 08, 2003 7:50 pm
Location: Germany

Post 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
robink
User
User
Posts: 26
Joined: Sat Jan 03, 2004 7:25 pm
Location: Rinteln
Contact:

Post 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...
Fred
Administrator
Administrator
Posts: 16680
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post 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.
Post Reply