Page 1 of 1

Drawing 3D coordinate system axis within GLCanvas

Posted: Fri Aug 02, 2019 10:34 pm
by mikegl
Hello, is it possible to draw the following coordinate system axis (with labels) in GLCanvas using wxWidgets or is it only possible with OpenGL drawing operations?. I would like to embed this left down in the GLCanvas area and if the area gets rotated or pitched the coordinate system axis should do this, too.
https://imgur.com/a/ptvzkw4

If yes can someone give me a hint or code snippet?

Thank you

Re: Drawing 3D coordinate system axis within GLCanvas

Posted: Fri Aug 02, 2019 11:58 pm
by doublemax
wxGLCanvas is just for setting up the window, OpenGL attributes, OpenGL context etc. The drawing itself will be standard OpenGL commands. Check the samples in <wxdir>/samples/opengl/

Re: Drawing 3D coordinate system axis within GLCanvas

Posted: Sat Aug 03, 2019 12:08 am
by mikegl
Thank you very much, I already thought so :D