![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
Struct containing information about one mip-map level of a texture. More...
#include <MipLevelData.h>
Public Member Functions | |
| MipLevelData () | |
| Default constructor. More... | |
| MipLevelData (uint32_t size, const uint8_t *data) | |
| 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... | |
Public Attributes | |
| uint32_t | m_size |
| The size of mipmap data in bytes. More... | |
| const uint8_t * | m_data |
| Pointer to raw bytes data of mipmap level. More... | |
Struct containing information about one mip-map level of a texture.
NOTE: the texel data is stored according to OpenGL convention (first byte is from the bottom texel row). See docs of glTexImage2D for more info.
|
inline |
Default constructor.
|
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.
| size | Size of mipmap data in bytes |
| data | Pointer to raw bytes data of mipmap level |
| const uint8_t* ramses::MipLevelData::m_data |
Pointer to raw bytes data of mipmap level.
| uint32_t ramses::MipLevelData::m_size |
The size of mipmap data in bytes.