Le 03/08/2012 17:19, Sean Harmer a écrit :
> On Friday 03 August 2012 16:41:18 arnaud but wrote:
>> Hello everybody,
>>
>> during my work on phonon, i remark that include <QtOpenGL/QGLContext>
>> does not reference opengl on windows plattform(msvc2010) (it seems good
>> on linux and mac).
>>
>> in the order :
>>
>> #include <QtOpenGL/QGLContext> that include :
>>
>> #include "qgl.h" : into this file
>> ----------------
>> #if defined(Q_WS_WIN)
>> # include <QtCore/qt_windows.h>
>> #endif
>>
>> #if defined(Q_WS_MAC)
>> # include <OpenGL/gl.h>
>> #elif defined(QT_OPENGL_ES_1)
>> # if defined(Q_OS_MAC)
>> #  include <OpenGLES/ES1/gl.h>
>> # else
>> #  include <GLES/gl.h>
>> # endif
>> ----------------------
>> so on windows it uses qt_windows.h.
>> qt_windows.h include windows.h but in this one there is no reference to
>> gl.h.
>>
>> i think we must add into qgl.h :
>>
>> #if defined(Q_WS_WIN)
>> # include <QtCore/qt_windows.h>
>> #include <Gl/gl.h>
>> #endif
>>
>> what do you think about that ?
>
> Look further down the file and you will see that it is included:
>
> ...
> #else
> # include <GL/gl.h>
> #endif
>

ok sorry

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to