Search found 396 matches

by sethjackson
Fri Oct 07, 2005 10:01 pm
Forum: C++ Development
Topic: wxGLCanvas
Replies: 31
Views: 7343

Alright I got it to diasplay but now it doesn't repaint itself... If I minimize then maximize it updates the window (repaints it), I need to figure out how to get it to continually draw. Can someone help me fix this? opengl.cpp #include <wx/glcanvas.h> #include <gl/gl.h> #include <gl/glu.h> #include...
by sethjackson
Thu Oct 06, 2005 11:36 pm
Forum: C++ Development
Topic: wxGLCanvas
Replies: 31
Views: 7343

m_rquad i not initialized to anything it is supposed to start a zero. I did glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective( 60.0, (GLfloat)canvasWidth / (GLfloat)canvasHeight, 0.1, 8.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0.0, 0.0, -3.0); and i still get a blan...
by sethjackson
Thu Oct 06, 2005 10:55 pm
Forum: C++ Development
Topic: Need help
Replies: 6
Views: 1871

Well It looks like you are linking the wrong libs try to link wxmsw26 instead of wxmsw26d_core. You may want to try Code::Blocks, it is built with wxWidgets and it comes with MinGW (the Windows port of GCC), and it is easy to use. :) Here is the code its long so bear with me. It should be noted that...
by sethjackson
Thu Oct 06, 2005 9:56 pm
Forum: C++ Development
Topic: Need help
Replies: 6
Views: 1871

Well if you compile it on Windows it will. :lol: Anyways what compiler and IDE are you using? Also, I can post the rest of my code if you want it.....
by sethjackson
Thu Oct 06, 2005 9:46 pm
Forum: C++ Development
Topic: Need help
Replies: 6
Views: 1871

Have you read this? http://wiki.wxwidgets.org/wiki.pl?Writing_Your_First_Application/Using_The_WxTextCtrl Also, check out what the wxTextCtrl class has to offer. http://www.wxwidgets.org/manuals/2.6.2/wx_wxtextctrl.html#wxtextctrl. declare a global wxTextCtrl object this should be in your main frame...
by sethjackson
Thu Oct 06, 2005 4:22 pm
Forum: C++ Development
Topic: wxGLCanvas
Replies: 31
Views: 7343

wxGLCanvas

I'm trying to use OpenGL with wxWidgets... I compiled my program but all I get is a window with a black screen unfortunately my drawing code isn't working. opengl.cpp #include <wx/glcanvas.h> #include <gl/gl.h> #include <gl/glu.h> #include "opengl.h" BEGIN_EVENT_TABLE(MainGLCanvas, wxGLCanvas) EVT_S...