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: 14
Joined: Fri Jul 12, 2019 12:31 am

Drawing 3D coordinate system axis within GLCanvas

Post by mikegl » Fri Aug 02, 2019 10:34 pm

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: 14077
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Drawing 3D coordinate system axis within GLCanvas

Post by doublemax » Fri Aug 02, 2019 11:58 pm

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: 14
Joined: Fri Jul 12, 2019 12:31 am

Re: Drawing 3D coordinate system axis within GLCanvas

Post by mikegl » Sat Aug 03, 2019 12:08 am

Thank you very much, I already thought so :D

Post Reply