Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     Can I draw directly into window from X3DGeometryNode::render()
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
daniel
Posted on: 2012/6/8 13:21
Webmaster
Joined: 2004/11/28
From:
Posts: 536
Re: Can I draw directly into window from X3DGeometryNode::render()
You can always get a window instance that is currently being rendered into via the window field in the current Scene. However I do not know if you can use any wxWidgets function to draw into it. You have to refer to wxWidgets documentation for that.

If you want to draw pixels directly in OpenGL you will have to either draw into a fullscreen texture or into the frame buffer itself.
cgunn
Posted on: 2012/6/5 3:28
Just can't stay away
Joined: 2004/12/7
From: Canberra, Australia
Posts: 98
Can I draw directly into window from X3DGeometryNode::render()
I would like to find a way to draw directly into the main display window from within the render() function of a specialized X3DGeometryNode. I would be using 2D drawing functions (e.g. from WxWidgets if using H3DViewer) which are in terms of pixels, so I would need to know the window dimensions and window ID. Is there any way to get that from within a X3DGeometryNode?
Threaded | Oldest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS