beginQT
25th September 2011, 11:35
Hello,
I have started my new project with QT Eclipse, as I told in my previois thread I have Mainwindow and opengl window which is child to it called GLWidget inherited from QGLwidget.What I want to know is..
In my GL window i need to place different artifacts like I have to place multiple textures and along with that i need to draw some primitives(ex:polygons) over that textures using opengl core libraries(GLUT). Problem that I found currently is, any drawing on the opengl window is possible only through PaintGL() method, Looks like I cannot use my own methods to draw some textures, everything must be through PaintGL.
If that is the case How do i draw a different textures and at the same time depending on the some inputs I need to change textures as well as primiives..basically its an kind of scene changes dynamically.
Hope readers understand what I mean, If not please let me know I will try to eloberate it!
Please sugget me how to use it!
Thanks in Advance!
I have started my new project with QT Eclipse, as I told in my previois thread I have Mainwindow and opengl window which is child to it called GLWidget inherited from QGLwidget.What I want to know is..
In my GL window i need to place different artifacts like I have to place multiple textures and along with that i need to draw some primitives(ex:polygons) over that textures using opengl core libraries(GLUT). Problem that I found currently is, any drawing on the opengl window is possible only through PaintGL() method, Looks like I cannot use my own methods to draw some textures, everything must be through PaintGL.
If that is the case How do i draw a different textures and at the same time depending on the some inputs I need to change textures as well as primiives..basically its an kind of scene changes dynamically.
Hope readers understand what I mean, If not please let me know I will try to eloberate it!
Please sugget me how to use it!
Thanks in Advance!