-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGLUtility.h
27 lines (24 loc) · 1008 Bytes
/
GLUtility.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
////////////////////////////////////////////////////////////////////////////////
/// @file
/// @brief Wrappers to the GLU (GL Utility) library to avoid Qt/open GL include
/// conflict.
////////////////////////////////////////////////////////////////////////////////
#ifndef _GL_UTILITY_H_
#define _GL_UTILITY_H_
////////////////////////////////////////////////////////////////////////////////
/// @brief Wrapper to invoke gluBuild2DMipmaps
/// @param _target Target texture.
/// @param _internalFormat Internal format storage.
/// @param _width Width in pixels.
/// @param _height Height in pixels.
/// @param _format Format of pixel data.
/// @param _type Type of the data.
/// @param _data Data.
///
/// Note, cannot use GLenum, GLint, GLsizei because of Qt/open GL include
/// conflict.
void build2DMipmaps(int _target, int _internalFormat,
unsigned int _width, unsigned int _height,
int _format, int _type,
const void* _data);
#endif