PureCardDraw and ClearScreen()
Posted: Wed Oct 10, 2007 12:24 am
I had been looking at the PureCardDraw.pbi and the accompanying test program posted by NetMaestro back in 2005.
http://www.purebasic.fr/english/viewtopic.php?t=18418
If I compile and run the program, the cards are drawn on the screen - no problem here. What I am trying
to figure out is how do I remove the cards from the screen or clear the screen.
From the Help Manual, I know that there is the command "clearscreen(color)" available. But if I try to put clearscreen(rgb(0,128,0)) or clearscreen(32768) after the last ImageGadget instruction in the test program I get error messages saying:
POLINK: error: Unresolved external symbol '_PB_DirectX_PrimaryBuffer'
POLINK: error: Unresolved external symbol '_PB_Screen_Depth'
POLINK: error: Unresolved external symbol '_PB_Sprite_SpriteFX'
POLINK: error: Unresolved external symbol '_PB_Sprite_GetTrueRGBColor'
POLINK: error: Unresolved external symbol '_PB_Sprite_CurrentBitmap'
POLINK: fatal error: 5 unresolved external(s).
I placed the clearscreen command after the last ImageGadget instruction because I already know that drawing the cards is working - I wanted to see them cleared immediately from the screen in my test.
I did some preliminary search in the forum but the codes I ran into shows a syntax of clearscreen(x, y, z) which I think is pre-PB4.
What am I doing wrong here? Are additional coded needed?
Any help will be highly appreciated. Thanks!
http://www.purebasic.fr/english/viewtopic.php?t=18418
If I compile and run the program, the cards are drawn on the screen - no problem here. What I am trying
to figure out is how do I remove the cards from the screen or clear the screen.
From the Help Manual, I know that there is the command "clearscreen(color)" available. But if I try to put clearscreen(rgb(0,128,0)) or clearscreen(32768) after the last ImageGadget instruction in the test program I get error messages saying:
POLINK: error: Unresolved external symbol '_PB_DirectX_PrimaryBuffer'
POLINK: error: Unresolved external symbol '_PB_Screen_Depth'
POLINK: error: Unresolved external symbol '_PB_Sprite_SpriteFX'
POLINK: error: Unresolved external symbol '_PB_Sprite_GetTrueRGBColor'
POLINK: error: Unresolved external symbol '_PB_Sprite_CurrentBitmap'
POLINK: fatal error: 5 unresolved external(s).
I placed the clearscreen command after the last ImageGadget instruction because I already know that drawing the cards is working - I wanted to see them cleared immediately from the screen in my test.
I did some preliminary search in the forum but the codes I ran into shows a syntax of clearscreen(x, y, z) which I think is pre-PB4.
What am I doing wrong here? Are additional coded needed?
Any help will be highly appreciated. Thanks!