0

I have a few questions about using them both. At the moment I have a preexisting renderer I'm trying to use with QT and OpenGL.

A few questions are:

  1. How can I get my results to draw in a QGraphicsScene? Is that even the right output to attempt to be using.

  2. With OpenGL I want to be able to load textures and then be displayed in a window? Do I need to coordinate where to draw the texture or can I just say in the centre of a QWidget?

  3. What paramenter would I usually need, I persume I need a Gluint for the texture, and then parameters for the size?

At the moment my results are quite poor, it seems to render something but basically not either in the correct window or not in the window of choice and basically it seems to 'hide' text e.g. hello, I can only see e. Odd I think.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
Bushes
  • 1,010
  • 1
  • 18
  • 37

1 Answers1

1

I'm pretty sure this link will help you code with Qt and OpenGL:

http://wesley.vidiqatch.org/03-08-2009/nehe-opengl-lessons-in-qt-chapter-1-and-2

I used this and the NeHe tutorial to code a small Qt/OpenGL application, so all information you need is contained in both tutorials.

hochl
  • 12,524
  • 10
  • 53
  • 87