PDA

View Full Version : GWorld rendering callback


Brizzly
2004.10.18, 11:13 AM
Hi there !

i'm using Quicktime SDK to play flash swf movies. It is running fine.
I'd to write my own rendering function to render from Quicktime movie to my buffer myself.

"SetMovieDrawingCompleteProc" function is called each time a frame has been rendered, I'd it to be called just BEFORE the rendering.. any idea ?

Regards,
Julien Meyer.
http://www.jadeware.org

Brizzly
2004.10.18, 11:22 AM
If I want to write into my D3D surface I need to lock it before writing then unlock.

That's why I wanted to know if it were possible to define a complete drawing function callback.

So I could define a D3D buffer and a drawing callback looking like :

Callback myDrawFunc()
{
LockSurface();
RenderFromQuickTimeToMyD3DSurface(); // QT drawing func
UnlockSurface();
}

Regards,
julien Meyer

AnotherJake
2004.10.18, 12:07 PM
First, it's unlikely you'll find much help here for anything related to Direct3D since this is a Macintosh programming site.

Second, Quicktime can be a real bear to work with, so I sympathize.

Third, have you looked at Apple's sample code?

This might give you some ideas:
http://developer.apple.com/samplecode/offscreen.win/offscreen.win.html

Here's another one but it's written entirely for the Mac. Still, it might be helpful:
http://developer.apple.com/samplecode/OpenGL_Movie/OpenGL_Movie.html

Brizzly
2004.10.19, 05:55 AM
First, it's unlikely you'll find much help here for anything related to Direct3D since this is a Macintosh programming site.

Second, Quicktime can be a real bear to work with, so I sympathize.

Third, have you looked at Apple's sample code?

This might give you some ideas:
http://developer.apple.com/samplecode/offscreen.win/offscreen.win.html

Here's another one but it's written entirely for the Mac. Still, it might be helpful:
http://developer.apple.com/samplecode/OpenGL_Movie/OpenGL_Movie.html


Thanks,

It's not a D3D question here, I just want to define my own rendering function but i seems to be impossible. Thanks for the help though.

Julien