RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Public Member Functions | Public Attributes | List of all members
ramses::CubeMipLevelData Struct Reference

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>

Public Member Functions

 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...
 

Public Attributes

uint32_t m_faceDataSize
 
const uint8_t * m_dataPX
 Data for face in positive X direction. More...
 
const uint8_t * m_dataNX
 Data for face in negative X direction. More...
 
const uint8_t * m_dataPY
 Data for face in positive Y direction. More...
 
const uint8_t * m_dataNY
 Data for face in negative Y direction. More...
 
const uint8_t * m_dataPZ
 Data for face in positive Z direction. More...
 
const uint8_t * m_dataNZ
 Data for face in negative Z direction. More...
 

Detailed Description

Struct containing information about one mip-map level of a cube texture. All faces of the cube texture must have the same size!

Constructor & Destructor Documentation

◆ CubeMipLevelData() [1/2]

ramses::CubeMipLevelData::CubeMipLevelData ( )
inline

Default constructor.

◆ 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]sizeSize of data in bytes of all cube faces
[in]dataPXData for face in positive X direction
[in]dataNXData for face in negative X direction
[in]dataPYData for face in positive Y direction
[in]dataNYData for face in negative Y direction
[in]dataPZData for face in positive Z direction
[in]dataNZData for face in negative Z direction

Member Data Documentation

◆ 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: