Page 1 of 1

Direct drawing in OS X?

Posted: Sun Dec 06, 2009 9:32 pm
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

Re: Direct drawing in OS X?

Posted: Mon Dec 07, 2009 12:39 am
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.