Code::Blocks Forums

User forums => Help => Topic started by: Avithohol on December 21, 2010, 05:07:19 pm

Title: wxWidget + wxSmith + OpenGL
Post by: Avithohol 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]
Title: Re: wxWidget + wxSmith + OpenGL
Post by: oBFusCATed 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.