Drawing 3D coordinate system axis within GLCanvas

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mikegl
Earned a small fee
Earned a small fee
Posts: 16
Joined: Fri Jul 12, 2019 12:31 am

Drawing 3D coordinate system axis within GLCanvas

Post 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
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Drawing 3D coordinate system axis within GLCanvas

Post 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/
Use the source, Luke!
mikegl
Earned a small fee
Earned a small fee
Posts: 16
Joined: Fri Jul 12, 2019 12:31 am

Re: Drawing 3D coordinate system axis within GLCanvas

Post by mikegl »

Thank you very much, I already thought so :D
Post Reply