DrawingMode,DrawingFont,Locate....Don't work!!!

Mac OSX specific forum
User avatar
LESTROSO
Enthusiast
Enthusiast
Posts: 124
Joined: Thu Nov 03, 2005 12:30 pm
Location: Italy
Contact:

DrawingMode,DrawingFont,Locate....Don't work!!!

Post by LESTROSO »

In my free time i'm just programming a vertical scroll game, and i want write a text on the screen in full mode- full screen. when i run the compiler i look an alert like this:

Code: Select all

Purebasic- Error

Error:Linker

ndeined symbols:

_PB_DrawText
_PB_DrawingFont
_PB_DrawingMode
_PB_FrontColor
_PB_Locate
_PB_ScreenOutput
_PB_StartDrawing
_PB_StoptDrawing
_PB_2DDrawing_CurrentDC
collect2: Id returned 1 exit status
    
Example code--------------------------------------------------------------------

Code: Select all


   StartDrawing(ScreenOutput())
    DrawingMode(1)
    DrawingFont(#PB_Default)
    FrontColor(20,255,130)
    Locate(650,5):DrawingFont("Punteggio")
    Locate(700,30):DrawText(Str(Punteggio))
    Locate(700,50):DrawText(Str(NumeroAsteroidi))
    If Dead=1
     
     DrawingFont(UseFont(9))
     FrontColor(255,0,0)
     Locate(300,300):DrawText("GAME OVER")
     
    EndIf       
     
What is the problem?Why don't work???can anyone help me please?? thanks.......
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You're right, for now the ScreenOutput() and 2DDrawing functions aren't supported in screen mode, as opengl doesn't allow that. It will probably workaround'ed in the next version of PB for OS X.
User avatar
LESTROSO
Enthusiast
Enthusiast
Posts: 124
Joined: Thu Nov 03, 2005 12:30 pm
Location: Italy
Contact:

Post by LESTROSO »

Thanks a lot Fred for your support!!!!

i will wait for a new stable release as soon as possible for mac os x, i've tryed the win xp version and it's perfect!!!

But as i see for mac there a lot of bugs, but you are making a very good job , and i know it's very hard to program every day(10 hours as you told in an interview) to improve the mac version.

We trust in you and go on....

Yours faithfully
Post Reply