Drawing Error on Mac

Mac OSX specific forum
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Drawing Error on Mac

Post 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
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
SEO
Enthusiast
Enthusiast
Posts: 178
Joined: Fri Dec 09, 2005 11:42 pm
Location: Sweden
Contact:

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

Post by Fred »

Sounds like a bug, i will take a look.
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Post 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
michel51

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
SEO
Enthusiast
Enthusiast
Posts: 178
Joined: Fri Dec 09, 2005 11:42 pm
Location: Sweden
Contact:

Post 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
hard2sea
New User
New User
Posts: 7
Joined: Sat Jul 22, 2006 3:09 pm
Location: Houston, Texas

Sprite3D transpanency on Mac

Post 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?

:?:
Mac OSX 10.4
PPC Dual G5, Dual 30" Cinema Displays
Powerbook 17" G4
Xserve Cluster
Xraid

Ignorance can be cured, stupidity is to the bone
User avatar
michel51
Enthusiast
Enthusiast
Posts: 290
Joined: Mon Nov 21, 2005 10:21 pm
Location: Germany

Re: Sprite3D transpanency on Mac

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

Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
hard2sea
New User
New User
Posts: 7
Joined: Sat Jul 22, 2006 3:09 pm
Location: Houston, Texas

Thanks!

Post 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
Mac OSX 10.4
PPC Dual G5, Dual 30" Cinema Displays
Powerbook 17" G4
Xserve Cluster
Xraid

Ignorance can be cured, stupidity is to the bone
Post Reply