Discussion:
[Interest] GL_QUADS and Android
Nuno Santos
2014-10-23 11:23:24 UTC
Permalink
Hi,

I had the following error when compiling a working project on Android:

error: 'GL_QUADS' was not declared in this scope
_geometry.setDrawingMode(GL_QUADS);

Do I need any special include for this?

Regards,

Nuno
Agocs Laszlo
2014-10-23 11:34:37 UTC
Permalink
Hello,

Quads are not supported in OpenGL ES. Hence the lack of the symbol. Draw triangles (or triangle strips) instead.

Cheers,
Laszlo

-----Original Message-----
From: interest-bounces+laszlo.agocs=***@qt-project.org [mailto:interest-bounces+laszlo.agocs=***@qt-project.org] On Behalf Of Nuno Santos
Sent: 23. oktober 2014 13:23
To: Interests Qt
Subject: [Interest] GL_QUADS and Android

Hi,

I had the following error when compiling a working project on Android:

error: 'GL_QUADS' was not declared in this scope
_geometry.setDrawingMode(GL_QUADS);

Do I need any special include for this?

Regards,

Nuno
Nuno Santos
2014-10-23 11:47:20 UTC
Permalink
Cool!

Thanks!
Post by Agocs Laszlo
Hello,
Quads are not supported in OpenGL ES. Hence the lack of the symbol. Draw triangles (or triangle strips) instead.
Cheers,
Laszlo
-----Original Message-----
Sent: 23. oktober 2014 13:23
To: Interests Qt
Subject: [Interest] GL_QUADS and Android
Hi,
error: 'GL_QUADS' was not declared in this scope
_geometry.setDrawingMode(GL_QUADS);
Do I need any special include for this?
Regards,
Nuno
_______________________________________________
Interest mailing list
http://lists.qt-project.org/mailman/listinfo/interest
Till Oliver Knoll
2014-10-23 21:37:22 UTC
Permalink
Post by Nuno Santos
...
error: 'GL_QUADS' was not declared in this scope
QG_QUADS don't exist on embedded OpenGL: the top 3 Google hits about "OpenGL ES and GL_QUADS" tell you all you need to know:

http://gamedev.stackexchange.com/questions/10727/fastest-way-to-draw-quads-in-opengl-es

http://stackoverflow.com/questions/6644099/what-is-so-bad-about-gl-quads

http://www.idevgames.com/forums/thread-1923.html

Cheers, Oliver

Continue reading on narkive:
Loading...