Page 1 of 1

Drawing Error on Mac

Posted: Wed Jan 04, 2006 6:38 pm
by michel51
If I run this example

Code: Select all

Enumeration
    #Window_0
    #Screen_1
    #Image_0
EndEnumeration
; 
; If InitSprite() = 0
;   MessageRequester("Error", "Can't initilalize OpenGL", 0) : End
; EndIf
; If InitMouse() = 0
;   MessageRequester("Error", "Can't initilalize OpenGL", 0) : End
; EndIf
; If InitKeyboard() = 0
;   MessageRequester("Error", "Can't initilalize OpenGL", 0) : End
; EndIf

#Win_0_Flags= #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget
If OpenWindow(#Window_0, 50, 50, 640,480, #Win_0_flags, "PureBasic Window") = 0
    MessageRequester("Fehler","Konnte Window_0 nicht oeffnen!") : End
EndIf
; If OpenWindowedScreen(WindowID(),0,0,640, 480,1,0,0) = 0
; 
If OpenScreen(640, 480, 32, "") = 0
    MessageRequester("Fehler","Konnte Screen nicht oeffnen!") : End
EndIf
ClearScreen(255,0,0)    
FlipBuffers()

If CreateImage(#Image_0, 640, 400) = 0
    MessageRequester("Fehler","Konnte Image nicht erzeugen") : End
EndIf
StartDrawing(ScreenOutput())    
; StartDrawing(WindowOutput())
; StartDrawing(ImageOutput())
  FrontColor(255,255,255)
  Box(10,10,50,50)
  FlipBuffers()
StopDrawing()

Repeat
    EventID = WaitWindowEvent()
    If EventID = #PB_Event_CloseWindow : Quit = 1 : EndIf

    Until Quit = 1

End   ; All the opened windows are closed automatically by PureBasic
I get this error (or simular)

PureBasic - Error
Id: Undefined Symbols:
_PB_Box
_PB_FrontColor
_PB_ScreenOutput
_PB_StartDrawing
_PB_StopDrawing
Error: Linker

If I use 'WindowOutput' - the same with _PB_WindowOutput.

Using 'ImageOutput' shows the window, but then I cannot use any mouseclick (not implemented here).

Is the code wrong or is this a Bug in Mac Os Version?

michel51

Posted: Thu Jan 05, 2006 9:19 pm
by SEO
Hi,
I am NOT familiar with this commands .. but perhaps you are using some 'None Supported featuers...'
---------------------------------------------------------------------------
- Printer, Help, Systray, Joystick, Palette libraries not supported
- WndowOutput(), SetGadgetFont() doesn't work
- All 3D Engine commands
--------------------------------------------------------------------------
/SEO

Posted: Thu Jan 05, 2006 10:53 pm
by Fred
Sounds like a bug, i will take a look.

Posted: Thu Jan 05, 2006 10:55 pm
by michel51
Hi,
SEO wrote: -Printer, Help, Systray, Joystick, Palette libraries not supported
- SetGadgetFont() doesn't work
- All 3D Engine commands
All not used in the example.

-WindowOutput() - ok, not supported.
-ScreenOutput() - the same :!: :?:

I think, we are using a programming language, where are a lot of important things not supported.
Hope that will be better with V4 for Mac :wink:

michel51

Posted: Thu Jan 05, 2006 11:11 pm
by SEO
Hi!

Yes here is a lot of missing features and perhaps some bugs...
We could hope, when Fred have the PB Windows out, he could start checking the Mac version .. And perhaps one new beta release a week .. Then we could start writing some 'templates' and demo apps. I have a lot of ideas, but just in time, there are to much that not work.. Today I was trying to write an 'OS X PopupButton' but that fails on the zero events in the ImageGadget...
//SEO

Sprite3D transpanency on Mac

Posted: Mon Sep 11, 2006 11:30 pm
by hard2sea
Being a newbe, perhaps there is something I do not understand. I am trying to use sprites and wish a part of the sprite3D image to be transparent (but only a part). I have read about setting the tranparent color, looked at the forum, and all that. But I cannot get it to work. Is it supported on OSX in latest version or am I overlooking something fundimental?

:?:

Re: Sprite3D transpanency on Mac

Posted: Tue Sep 12, 2006 9:48 pm
by michel51
hard2sea wrote: Is it supported on OSX in latest version or am I overlooking something fundimental?

:?:
You are right ! Its not supported at this time, but we (all Mac user) are waiting for the version 4 on Mac.

I've stopped programming and testing with PureBasic, because there are a lot of other absurdities in it.

Thanks!

Posted: Tue Sep 12, 2006 10:53 pm
by hard2sea
Thanks for the info. Saved me a bunch of time. So I guess, like you, curb it for a while and wait. Perhaps, I'll just bite the bullet and go to Xcode or maybe BlitzMax.

Bummer!

Oh well, I think Purebasic has the potential, but right now is near vaporware for any graphics use on Mac.

Best Regards