Reply – Re: Raw Pointer to GLContext
Your Name
Subject
Message
or Cancel
In Reply To
Re: Raw Pointer to GLContext
— by Sven Gothel Sven Gothel
On Friday, June 18, 2010 01:20:02 Malte [via jogamp] wrote:

>
> Hi *,
>
> I'm trying to retrieve the raw "long" pointer to a GLContext object. I guess
> this is not really done often,
> but the idea is to pass that pointer to another piece of (raw C-) code, that
> shares the same context as the java app (its not the same thread, so I
> really need to pass the context pointer...).
>
> Is there a way to do this?

Hi Malte,

what you probably want is not the memory pointer to the JavaVM heap of GLContext,
but the OpenGL context handle, which you could 'reuse' in native OpenGL calls ?!


If so - and only this make sense IMHO, please check:

http://jogamp.org/deployment/jogl-next/javadoc_public/javax/media/opengl/GLContext.html#getHandle%28%29

Cheers, Sven
>
> Thanks,
> Malte
>
> ______________________________________
> View message @ http://jogamp.762907.n3.nabble.com/Raw-Pointer-to-GLContext-tp904275p904275.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, click http://jogamp.762907.n3.nabble.com/subscriptions/Unsubscribe.jtp?code=c2dvdGhlbEBqYXVzb2Z0LmNvbXw3NjI5MDd8MzkxNDI4MzU5
>