| OLD | NEW |
| 1 // | 1 // |
| 2 // Book: OpenGL(R) ES 2.0 Programming Guide | 2 // Book: OpenGL(R) ES 2.0 Programming Guide |
| 3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner | 3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner |
| 4 // ISBN-10: 0321502795 | 4 // ISBN-10: 0321502795 |
| 5 // ISBN-13: 9780321502797 | 5 // ISBN-13: 9780321502797 |
| 6 // Publisher: Addison-Wesley Professional | 6 // Publisher: Addison-Wesley Professional |
| 7 // URLs: http://safari.informit.com/9780321563835 | 7 // URLs: http://safari.informit.com/9780321563835 |
| 8 // http://www.opengles-book.com | 8 // http://www.opengles-book.com |
| 9 // | 9 // |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 /// \param normals If not NULL, will contain array of float3 normals | 105 /// \param normals If not NULL, will contain array of float3 normals |
| 106 /// \param texCoords If not NULL, will contain array of float2 texCoords | 106 /// \param texCoords If not NULL, will contain array of float2 texCoords |
| 107 /// \param indices If not NULL, will contain the array of indices for the triang
le strip | 107 /// \param indices If not NULL, will contain the array of indices for the triang
le strip |
| 108 /// \return The number of indices required for rendering the buffers (the number
of indices stored in the indices array | 108 /// \return The number of indices required for rendering the buffers (the number
of indices stored in the indices array |
| 109 /// if it is not NULL ) as a GL_TRIANGLES | 109 /// if it is not NULL ) as a GL_TRIANGLES |
| 110 // | 110 // |
| 111 extern int esGenCube ( float scale, GLfloat **vertices, GLfloat **normals, | 111 extern int esGenCube ( float scale, GLfloat **vertices, GLfloat **normals, |
| 112 GLfloat **texCoords, GLushort **indices ); | 112 GLfloat **texCoords, GLushort **indices ); |
| 113 | 113 |
| 114 // | 114 // |
| 115 /// \brief Loads a 24-bit TGA image from a file | |
| 116 /// \param fileName Name of the file on disk | |
| 117 /// \param width Width of loaded image in pixels | |
| 118 /// \param height Height of loaded image in pixels | |
| 119 /// \return Pointer to loaded image. NULL on failure. | |
| 120 // | |
| 121 extern char* esLoadTGA ( char *fileName, int *width, int *height ); | |
| 122 | |
| 123 | |
| 124 // | |
| 125 /// \brief multiply matrix specified by result with a scaling matrix and return
new matrix in result | 115 /// \brief multiply matrix specified by result with a scaling matrix and return
new matrix in result |
| 126 /// \param result Specifies the input matrix. Scaled matrix is returned in resu
lt. | 116 /// \param result Specifies the input matrix. Scaled matrix is returned in resu
lt. |
| 127 /// \param sx, sy, sz Scale factors along the x, y and z axes respectively | 117 /// \param sx, sy, sz Scale factors along the x, y and z axes respectively |
| 128 // | 118 // |
| 129 extern void esScale(ESMatrix *result, GLfloat sx, GLfloat sy, GLfloat sz); | 119 extern void esScale(ESMatrix *result, GLfloat sx, GLfloat sy, GLfloat sz); |
| 130 | 120 |
| 131 // | 121 // |
| 132 /// \brief multiply matrix specified by result with a translation matrix and ret
urn new matrix in result | 122 /// \brief multiply matrix specified by result with a translation matrix and ret
urn new matrix in result |
| 133 /// \param result Specifies the input matrix. Translated matrix is returned in
result. | 123 /// \param result Specifies the input matrix. Translated matrix is returned in
result. |
| 134 /// \param tx, ty, tz Scale factors along the x, y and z axes respectively | 124 /// \param tx, ty, tz Scale factors along the x, y and z axes respectively |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 //// \brief return an indentity matrix | 172 //// \brief return an indentity matrix |
| 183 //// \param result returns identity matrix | 173 //// \param result returns identity matrix |
| 184 // | 174 // |
| 185 extern void esMatrixLoadIdentity(ESMatrix *result); | 175 extern void esMatrixLoadIdentity(ESMatrix *result); |
| 186 | 176 |
| 187 #ifdef __cplusplus | 177 #ifdef __cplusplus |
| 188 } | 178 } |
| 189 #endif // __cplusplus | 179 #endif // __cplusplus |
| 190 | 180 |
| 191 #endif // ESUTIL_H | 181 #endif // ESUTIL_H |
| OLD | NEW |