Direct drawing in OS X?

Mac OSX specific forum
Godai
Enthusiast
Enthusiast
Posts: 171
Joined: Thu Oct 05, 2006 8:13 pm

Direct drawing in OS X?

Post by Godai »

I'm porting a software rendering app from windows and I can create a windowedscreen but I can only render to an image via screenoutput(imageoutput)
This is all great however it's impossible to get the image to the screen since I can't draw to the sprite, screen or window.
So windowed screen is basically useless or what? And how do I render directly to something I can show on OS X?

Thanks in advance

/ozak
jamirokwai
Enthusiast
Enthusiast
Posts: 799
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: Direct drawing in OS X?

Post by jamirokwai »

Godai wrote:I'm porting a software rendering app from windows and I can create a windowedscreen but I can only render to an image via screenoutput(imageoutput)
This is all great however it's impossible to get the image to the screen since I can't draw to the sprite, screen or window.
So windowed screen is basically useless or what? And how do I render directly to something I can show on OS X?
Hi Godai,

just put your Image to the Windowedscreen using the DrawImage-Command. I used this command for some tests, and it did work. Don't forget to flip the screens with FlipBuffers() after you painted the Image.

With PB4.4 you should be able to use StartDrawing(ScreenOutput()). I didn't test it yet, but I suppose it works - as it is stated in the manual.
Regards,
JamiroKwai
Post Reply