Author Topic: wxWidget + wxSmith + OpenGL  (Read 3865 times)

Offline Avithohol

  • Single posting newcomer
  • *
  • Posts: 3
wxWidget + wxSmith + OpenGL
« on: December 21, 2010, 05:07:19 pm »
Hello

My goal is to port my C# game editor to a wxSmith designed one.
See the attached screenshot to get the basic idea (its not mine its just a sample).
Basically a simple form based application, with an extra Opengl supported panel.
I really have to use wxSmith for the design, as its quite complex.


I have successfully compiled wxWidget with Opengl support, and dropped a wxGLCanvas onto the Frame in wxSmith
It compiles and run without problem, but then, i cannot go on.



No luck with Google ... could anybody give me a good tutorial link how to work with Opengl on wxSmith designed Frame ?
For example, i would like to
catch on paint event for rendering,
catch resize event and set viewport attributes (glViewport),
catch key presses for camera input




Thank You


[attachment deleted by admin]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wxWidget + wxSmith + OpenGL
« Reply #1 on: December 21, 2010, 05:14:49 pm »
Hm, your google-fu is lacking vital skills if you haven't being able to find: http://wiki.wxwidgets.org/WxGLCanvas

Also this is not a C::B, but wxWidgets question, so it is not appropriate for this forum.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]