22 bool hasMipmaps =
false,
bool createStorage =
true);
25 unsigned int GetNumCubes()
const;
28 unsigned int GetLength()
const;
34 inline unsigned int GetItemIndexFor(
unsigned int cube,
unsigned int face)
const;
35 inline unsigned int GetCubeIndexFor(
unsigned int item)
const;
36 inline unsigned int GetFaceIndexFor(
unsigned int item)
const;
39 inline unsigned int GetOffsetFor(
unsigned int cube,
unsigned int face,
unsigned int level)
const;
40 inline char const* GetDataFor(
unsigned int cube,
unsigned int face,
unsigned int level)
const;
41 inline char* GetDataFor(
unsigned int cube,
unsigned int face,
unsigned int level);
42 template <
typename T>
inline T
const* GetFor(
unsigned int cube,
unsigned int face,
unsigned int level)
const;
43 template <
typename T>
inline T* GetFor(
unsigned int cube,
unsigned int face,
unsigned int level);
47 inline unsigned int GetIndex(
unsigned int cube,
unsigned int face,
unsigned int level)
const;
55 return cube * 6 +
face;
83 template <
typename T>
inline T
86 return TextureArray::GetFor<T>(GetItemIndexFor(cube, face),
level);
89 template <
typename T>
inline 92 return TextureArray::GetFor<T>(GetItemIndexFor(cube, face),
level);
T const * GetFor(unsigned int cube, unsigned int face, unsigned int level) const
char const * GetDataFor(unsigned int cube, unsigned int face, unsigned int level) const
char const * GetDataFor(unsigned int item, unsigned int level) const
unsigned int GetCubeIndexFor(unsigned int item) const
GLint GLint GLsizei GLint GLenum format
unsigned int GetOffsetFor(unsigned int cube, unsigned int face, unsigned int level) const
GLuint GLsizei GLsizei * length
unsigned int GetOffsetFor(unsigned int item, unsigned int level) const
unsigned int GetItemIndexFor(unsigned int cube, unsigned int face) const
unsigned int GetFaceIndexFor(unsigned int item) const
GLenum GLuint GLint GLenum face