/****************************************************************************+ −
**+ −
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).+ −
** All rights reserved.+ −
** Contact: Nokia Corporation (qt-info@nokia.com)+ −
**+ −
** This file is part of the QtOpenGL module of the Qt Toolkit.+ −
**+ −
** $QT_BEGIN_LICENSE:LGPL$+ −
** No Commercial Usage+ −
** This file contains pre-release code and may not be distributed.+ −
** You may use this file in accordance with the terms and conditions+ −
** contained in the Technology Preview License Agreement accompanying+ −
** this package.+ −
**+ −
** GNU Lesser General Public License Usage+ −
** Alternatively, this file may be used under the terms of the GNU Lesser+ −
** General Public License version 2.1 as published by the Free Software+ −
** Foundation and appearing in the file LICENSE.LGPL included in the+ −
** packaging of this file. Please review the following information to+ −
** ensure the GNU Lesser General Public License version 2.1 requirements+ −
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.+ −
**+ −
** In addition, as a special exception, Nokia gives you certain additional+ −
** rights. These rights are described in the Nokia Qt LGPL Exception+ −
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.+ −
**+ −
** If you have questions regarding the use of this file, please contact+ −
** Nokia at qt-info@nokia.com.+ −
**+ −
**+ −
**+ −
**+ −
**+ −
**+ −
**+ −
**+ −
** $QT_END_LICENSE$+ −
**+ −
****************************************************************************/+ −
+ −
+ −
#ifdef QT_OPENGL_ES_1_CL+ −
+ −
//+ −
// W A R N I N G+ −
// -------------+ −
//+ −
// This file is not part of the Qt API. It exists for the convenience+ −
// of the QGLWidget class. This header file may change from+ −
// version to version without notice, or even be removed.+ −
//+ −
// We mean it.+ −
//+ −
+ −
QT_BEGIN_NAMESPACE+ −
+ −
inline void glTexParameterf (GLenum target, GLenum pname, GLfloat param)+ −
{+ −
glTexParameterx(target, pname, FLOAT2X(param));+ −
}+ −
inline void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)+ −
{+ −
glClearColorx(FLOAT2X(red) ,FLOAT2X(green), FLOAT2X(blue), FLOAT2X(alpha));+ −
}+ −
inline void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)+ −
{+ −
glColor4x(FLOAT2X(red) ,FLOAT2X(green), FLOAT2X(blue), FLOAT2X(alpha));+ −
}+ −
+ −
inline void glOrthof (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)+ −
{+ −
glOrthox(FLOAT2X(left), FLOAT2X(right), FLOAT2X(bottom), FLOAT2X(top), FLOAT2X(zNear), FLOAT2X(zFar));+ −
}+ −
+ −
inline void glPointSize (GLfloat size)+ −
{+ −
glPointSizex(FLOAT2X(size));+ −
}+ −
+ −
inline void glPolygonOffset (GLfloat factor, GLfloat units)+ −
{+ −
glPolygonOffsetx (FLOAT2X(factor), FLOAT2X(units));+ −
}+ −
+ −
inline void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)+ −
{+ −
glRotatex(FLOAT2X(angle), FLOAT2X(x), FLOAT2X(y), FLOAT2X(z));+ −
}+ −
+ −
inline void glTranslatef (GLfloat x, GLfloat y, GLfloat z)+ −
{+ −
glTranslatex(FLOAT2X(x) ,FLOAT2X(y) ,FLOAT2X(z));+ −
}+ −
+ −
inline void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz)+ −
{+ −
glNormal3x(FLOAT2X(nx), FLOAT2X(ny), FLOAT2X(nz));+ −
}+ −
+ −
inline void glScalef(GLfloat x, GLfloat y, GLfloat z)+ −
{+ −
glScalex(FLOAT2X(x), FLOAT2X(y), FLOAT2X(z));+ −
}+ −
+ −
inline void glClearDepthf (GLclampf depth)+ −
{+ −
glClearDepthx(FLOAT2X(depth));+ −
}+ −
+ −
inline void glAlphaFunc (GLenum func, GLclampf ref)+ −
{+ −
glAlphaFuncx(func, FLOAT2X(ref));+ −
}+ −
+ −
inline void glLoadMatrixf (const GLfloat *_m)+ −
{+ −
GLfixed m[16];+ −
for (int i =0; i < 16; i++)+ −
m[i] = FLOAT2X(_m[i]);+ −
glLoadMatrixx(m);+ −
}+ −
+ −
inline void glMultMatrixf (const GLfloat *_m)+ −
{+ −
GLfixed m[16];+ −
for (int i =0; i < 16; i++)+ −
m[i] = FLOAT2X(_m[i]);+ −
glMultMatrixx (m);+ −
}+ −
+ −
+ −
inline void glLineWidth (GLfloat width)+ −
{+ −
glLineWidthx(FLOAT2X(width));+ −
}+ −
+ −
QT_END_NAMESPACE+ −
+ −
#endif //QT_OPENGL_ES_1_CL+ −
+ −