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

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

Detailed Description

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.

Examples
ramses-example-local-client-dcsm/src/main.cpp.

Constructor & Destructor Documentation

◆ MipLevelData() [1/2]

ramses::MipLevelData::MipLevelData ( )
inline

Default constructor.

◆ MipLevelData() [2/2]

ramses::MipLevelData::MipLevelData ( uint32_t  size,
const uint8_t *  data 
)
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
sizeSize of mipmap data in bytes
dataPointer to raw bytes data of mipmap level

Member Data Documentation

◆ m_data

const uint8_t* ramses::MipLevelData::m_data

Pointer to raw bytes data of mipmap level.

◆ m_size

uint32_t ramses::MipLevelData::m_size

The size of mipmap data in bytes.


The documentation for this struct was generated from the following file: