Struct containing information about one mip-map level of a cube texture. All faces of the cube texture must have the same size!
More...
#include <MipLevelData.h>
|
| CubeMipLevelData () |
| Default constructor. More...
|
|
| CubeMipLevelData (uint32_t size, const uint8_t *dataPX, const uint8_t *dataNX, const uint8_t *dataPY, const uint8_t *dataNY, const uint8_t *dataPZ, const uint8_t *dataNZ) |
| Constructs a MipLevelData. The texel data must be stored according to OpenGL conventions. Texel rows are stored bottom-to-top, so that first byte in the data array represents the first texel from the bottom texel row. See docs of glTexImage2D for more info. More...
|
|
Struct containing information about one mip-map level of a cube texture. All faces of the cube texture must have the same size!
◆ CubeMipLevelData() [1/2]
ramses::CubeMipLevelData::CubeMipLevelData |
( |
| ) |
|
|
inline |
◆ CubeMipLevelData() [2/2]
ramses::CubeMipLevelData::CubeMipLevelData |
( |
uint32_t |
size, |
|
|
const uint8_t * |
dataPX, |
|
|
const uint8_t * |
dataNX, |
|
|
const uint8_t * |
dataPY, |
|
|
const uint8_t * |
dataNY, |
|
|
const uint8_t * |
dataPZ, |
|
|
const uint8_t * |
dataNZ |
|
) |
| |
|
inline |
Constructs a MipLevelData. The texel data must be stored according to OpenGL conventions. Texel rows are stored bottom-to-top, so that first byte in the data array represents the first texel from the bottom texel row. See docs of glTexImage2D for more info.
- Parameters
-
[in] | size | Size of data in bytes of all cube faces |
[in] | dataPX | Data for face in positive X direction |
[in] | dataNX | Data for face in negative X direction |
[in] | dataPY | Data for face in positive Y direction |
[in] | dataNY | Data for face in negative Y direction |
[in] | dataPZ | Data for face in positive Z direction |
[in] | dataNZ | Data for face in negative Z direction |
◆ m_dataNX
const uint8_t* ramses::CubeMipLevelData::m_dataNX |
Data for face in negative X direction.
◆ m_dataNY
const uint8_t* ramses::CubeMipLevelData::m_dataNY |
Data for face in negative Y direction.
◆ m_dataNZ
const uint8_t* ramses::CubeMipLevelData::m_dataNZ |
Data for face in negative Z direction.
◆ m_dataPX
const uint8_t* ramses::CubeMipLevelData::m_dataPX |
Data for face in positive X direction.
◆ m_dataPY
const uint8_t* ramses::CubeMipLevelData::m_dataPY |
Data for face in positive Y direction.
◆ m_dataPZ
const uint8_t* ramses::CubeMipLevelData::m_dataPZ |
Data for face in positive Z direction.
◆ m_faceDataSize
uint32_t ramses::CubeMipLevelData::m_faceDataSize |
size of mip-level data of all faces in Bytes, all faces must have the same data size
The documentation for this struct was generated from the following file:
- /home/runner/work/ramses/ramses/client/ramses-client/ramses-client-api/include/ramses-client-api/MipLevelData.h