Hi Philipp,

Philipp Lohmann a écrit :
eric.bachard wrote:

[CC for [EMAIL PROTECTED], for information]

Hello,

After some tries** to make the pretty OpenGL transitions from Radek Dulik work on Mac OS X, I came to the conclusion that the most simple way is to implement OpenGL , SalOpenGL .. AquaSalOpenGL as expected in vcl, and not elsewhere.


Uh, sorry, but those are not really used anymore.

Ah, ok. I just followed sysData and all OpenGL things I foun din vcl, but if you tell me there are obsolote, I'll believe you :)

... and I'll try a more direct way  :-)


Even when they were they were only used for animating the 3D drawing objects.

Thanks for the info.


The canvas is completely independent of that.

Yes, I know, but I don't know too much the new canvas.

(For Philipp: you're right, pView is NSView*  , not void* like in the patch, 
not up to date ;)  )

I don't know much about this, but perhaps it would be the right solution to create an NSOpenGLView which can then use the NSView gotten from vcl's SystemData as superview.

In fact, the files I propose on the wiki page ( http://eric.bachard.free.fr/mac/aquavcl/patches/aqua_April2008/Canvas05/AquaOpenGL/files/aquaOpenGLView.h and http://eric.bachard.free.fr/mac/aquavcl/patches/aqua_April2008/Canvas05/AquaOpenGL/files/aquaOpenGLView.m ) do *exactly the same* ( excepted the reshape method, not directly available from NSView "NSOpenGLView-ed" ), but this can be workarounded easely. FYI, my code comes directly form Apple documentation, who does include a step by step for custom Cocoa view using OpenGL inside (both using frames and fullscreen modes)

The (nearly) equivalent of the code above could be :

@interface aquaOpenGLView : NSOpenGLView
{
}

- (void) drawRect: (NSRect) bounds ;
@end

+  the reshape method directly available.

Now, what is missing me, is the link with SystemData: do you mean SystemEnvData (e.g. using NSView* pview ) , SystemWindowData or something else ?


Kind regards,
Eric


--
Education Project: http://wiki.services.openoffice.org/wiki/Education_Project

Blog : http://eric.bachard.free.fr/news


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to