Search found 9 matches

by Schrja
Fri Jan 25, 2013 2:30 am
Forum: C++ Development
Topic: Anyone using wxGLString?
Replies: 6
Views: 15917

Re: Anyone using wxGLString?

On which OS are you? your sample works fine for me on ubuntu I am running on Windows 7 (x86_64). I am building with MinGW/msys and g++ 4.7.2 using the eclipse IDE. I also keep Visual Studio Express 2010 around but try to avoid using it. I guess I could build wxWidgets there and set up a test case. ...
by Schrja
Thu Jan 24, 2013 2:09 am
Forum: C++ Development
Topic: Anyone using wxGLString?
Replies: 6
Views: 15917

Re: Anyone using wxGLString?

I am successfully using wxGLString (I am the author ;) ) I would need to some more code, not just the render function. If possible a full compilable sample But I do notice you are mixing the render of primitive (lines) and text (textures). Make sure textures are enabled (glEnable(GL_TEXTURE_2D);) a...
by Schrja
Wed Jan 23, 2013 1:10 am
Forum: C++ Development
Topic: Anyone using wxGLString?
Replies: 6
Views: 15917

Anyone using wxGLString?

Hello, I just tried wxGLString. I built the simplest example I could similar to the sample provided with the code. Drew a couple of shapes, then some text using the sample code. However, when I resized the frame, all the shapes drawn before the text disappeared. There hasn't been much discussion of ...
by Schrja
Thu Jan 17, 2013 1:40 am
Forum: C++ Development
Topic: OpenGL cube example - cube distortion
Replies: 4
Views: 3111

Re: OpenGL cube example - cube distortion

Thanks! Looks like it is just a matter of understanding what openGL is doing. The following is how I modified my test version. I am drawing a simple 2d shape and it now maintains its aspect ratio. Still not the behavior I was expecting as the shape scales to the window rectangle, getting bigger and ...
by Schrja
Tue Jan 15, 2013 2:28 am
Forum: C++ Development
Topic: OpenGL cube example - cube distortion
Replies: 4
Views: 3111

Re: OpenGL cube example - cube distortion

You need to handle the EVT_SIZE event and change the viewport. In general, question is not related to wxWidgets (except the point that you need to handle sizing event). This is what the (modified) code says: void Canvas::OnPaint(wxPaintEvent& WXUNUSED(event)) { // This is required even though d...
by Schrja
Mon Jan 14, 2013 2:48 am
Forum: C++ Development
Topic: OpenGL cube example - cube distortion
Replies: 4
Views: 3111

OpenGL cube example - cube distortion

Hello, I am an absolute beginner with openGL. I have been studying the opengl/cube sample and can't see how to prevent the cube from stretching when the frame is resized. The behavior I want is to reveal more of the canvas (change the viewport?), not to "stretch" the canvas to the dimensio...
by Schrja
Sat Nov 03, 2012 6:05 am
Forum: Compiler / Linking / IDE Related
Topic: Another Eclipse MinGW linking problem
Replies: 4
Views: 3267

Re: Another Eclipse MinGW linking problem

That did it! I would never have figured that out - thanks so much for the help!

John.
by Schrja
Thu Nov 01, 2012 11:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Another Eclipse MinGW linking problem
Replies: 4
Views: 3267

Re: Another Eclipse MinGW linking problem

Ok, tried reversing the order of the includes, got the same result. **** Rebuild of configuration Debug for project wxFTA **** **** Internal Builder is used for build **** g++ -IC:\MinGW\msys\home\John\src\wxWidgets-2.9.4\build-debug\lib\wx\include\msw-unicode-static-2.9 -IC:\MinGW\msys\home\John\sr...
by Schrja
Thu Nov 01, 2012 12:11 am
Forum: Compiler / Linking / IDE Related
Topic: Another Eclipse MinGW linking problem
Replies: 4
Views: 3267

Another Eclipse MinGW linking problem

I know there have been a number of these, but I did not see an answer in previous posts My setup: Windows 7 (x86_64), Eclipse Indigo (x86_64), MinGW with g++ 4.6.2, wxWidgets 2.9.4 I believe I have successfully built wxWidgets; at least minimal compiles. Consider the following windres -i../../../sam...