Beginning in Qt with OpenGL
Page |
1 |
Hi..
I have begun to work with opengl in QT Qt…
Getting more errors on ‘gl.h’…. one of them is…
syntax error: void should be preceded by ‘;’
that error points to this line in ‘gl.h’
WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
help me with this…. Thank you..
26 replies
As you asked in another thread(http://developer.qt.nokia.com/forums/viewthread/6068/) before, do you try other exmaples? You can just make a QGLWidget yourself, and build to see what happen with your SDK or environment. By the way, which platform you are working with?
As you asked in another thread(http://developer.qt.nokia.com/forums/viewthread/6068/) before, do you try other exmaples? You can just make a QGLWidget yourself, and build to see what happen with your SDK or enviorment.
Yeah , this is not the same project , I have started a fresh project myself and added basic codes to IntializeGL,ResizeGL,paintGL and to draw a triangle…
but the errors haven’t changed…
By the way, which platform you are working with?
I’m working in Windows Xp with Nokia’s QT SDK for Nokia N97 mini
Sure,… Thank you Chuck.Gao
The code have some wrong syntax. right one is modified
1. GamePlay::InitializeGL() —> GamePlay::initializeGL() in both header and source file
2. glViewPort —> glViewport
3. draw() —> GamePlay::draw()
I can build it on both Desktop(also simulator) and Symbian device, but it’ll crash some where.
I have re-installed the SDK… Now the errors are gone ,.. and application is running successfully.. except I’m not getting the exact output….
@Chuck.Gao : what was the output you got with the project?
The Project type is Qt Mobile Application , doesn’t it support OpenGL and should I go for OpenGL ES…
no, it’s OK for me. Maybe there have some problem with your environment or SDK, i’m not sure. You can paste the log on this thread, i think someone can resolve your problem
You said that you got my app running on your sdk… right?
did you get any output in that?
I have drawn a triangle in that app…
how to use OpenGL ES with QT
You must log in to post a reply. Not a member yet? Register here!



