View Full Version : I want to draw an object in OpenGl but it draws strange thing
validator
11th March 2008, 06:42
Hi, I want to draw objects in OpenGl. but It draws strange things. I think that It draws from buffer .I put my cpp ve h files . do you know What the problem is..
wysota
11th March 2008, 10:11
What do you mean by "strange things"?
validator
11th March 2008, 11:21
It draws a shape from buffer so different shape is created
wysota
11th March 2008, 11:59
But your "grafik" class is not even a QGLWidget...
validator
11th March 2008, 13:07
I can not understand can you explain it.
wysota
11th March 2008, 13:38
The widget has to be a subclass of QGLWidget to be able to use OpenGL. Your class is derived from QMainWindow and not QGLWidget so the methods related to painting using OpenGL are never called.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.