any ideas how makefiles work for opengl
Semi Annoying i feel :( but i got another question any ideas how make files work i need to change some of the text in my proj file to use opengl with headers and i dont really understand it i can reread and try there but it would be awesome if i could get some first hand answering
edit : sorry let me rephrase i need to know how to make QT Work with qtopengl Headers i read up that it was to do with ‘MAKE’ files or something any ideas
EDIT: split of this thread [developer.qt.nokia.com] , Gerolf
Not sure what you are trying to do, but to create a Qt project that works with OpenGL you just have to add
- QT += opengl
to your .pro file.
And, of course, include the header files you need from your source code, e.g.
- #include <QtOpenGL>
okay im back sorry for the long wait there! okay i dont even know where to put the QT += opengl part in the pro file it self i know where the file is i got it selected but where exactly on the pro file its self
and include the header files? what like if im using opengl with qt i put that into the include code part
Well I would start off with learning C++ before you dive into OpenGL. Once you are comfortable with C++ then take a look at Qt and finally learn about OpenGL.
Qt ships with a huge number of examples and demos. Take a look at those and the documentation that comes with them (hint use qtdemo to launch the demos and the docs).
- <include> iostream
- using namespace std;
- int main ()
- cout << "im talking in c++ :P";
- system ("pause");
- return 0;
im fine with c++
im still learning opengl :) i just need to be told the meaning and exact information too fully understand which then misconcepts alot too that im a noob lol too most people dont worry about it
[EDIT: code formatting, please wrap in @-tags, Volker]