Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ImageTools::ImageLayer Struct Reference

#include <ImageTools.h>

Public Member Functions

template<typename T >
T * allocateMip (const T *data, size_t len, U16 width, U16 height, U16 depth, const U8 numComponents)
 
template<typename T >
T * allocateMip (const size_t len, const U16 width, const U16 height, const U16 depth, const U8 numComponents)
 
bufferPtr data (const U8 mip) const
 
LayerDatagetMip (const U8 mip) const
 
U8 mipCount () const noexcept
 

Private Attributes

vector< LayerData_uptr > _mips
 

Detailed Description

Definition at line 83 of file ImageTools.h.

Member Function Documentation

◆ allocateMip() [1/2]

template<typename T >
T * Divide::ImageTools::ImageLayer::allocateMip ( const size_t  len,
const U16  width,
const U16  height,
const U16  depth,
const U8  numComponents 
)
inline

Definition at line 93 of file ImageTools.h.

◆ allocateMip() [2/2]

template<typename T >
T * Divide::ImageTools::ImageLayer::allocateMip ( const T *  data,
size_t  len,
U16  width,
U16  height,
U16  depth,
const U8  numComponents 
)
inline

Definition at line 85 of file ImageTools.h.

◆ data()

bufferPtr Divide::ImageTools::ImageLayer::data ( const U8  mip) const
inline

Definition at line 97 of file ImageTools.h.

◆ getMip()

LayerData * Divide::ImageTools::ImageLayer::getMip ( const U8  mip) const
inline

Definition at line 105 of file ImageTools.h.

◆ mipCount()

U8 Divide::ImageTools::ImageLayer::mipCount ( ) const
inlinenoexcept

Definition at line 113 of file ImageTools.h.

Member Data Documentation

◆ _mips

vector<LayerData_uptr> Divide::ImageTools::ImageLayer::_mips
private

Definition at line 118 of file ImageTools.h.


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