Castor3D 0.16.0
Multiplatform 3D engine
Public Types | Public Member Functions | Public Attributes | List of all members
castor::ImageCreateParams Struct Reference

#include <ImageCache.hpp>

Collaboration diagram for castor::ImageCreateParams:
Collaboration graph
[legend]

Public Types

enum  Mode { eFile , eBuffer , eParam }
 

Public Member Functions

 ImageCreateParams (Path ppath, ImageLoaderConfig ploadConfig={ true, true, true })
 
 ImageCreateParams (String ptype, ByteArray pdata, ImageLoaderConfig ploadConfig={ true, true, true })
 
 ImageCreateParams (Size const &psize, PixelFormat pformat)
 

Public Attributes

Mode mode
 
Path path
 
ImageLoaderConfig loadConfig {}
 
String type
 
ByteArray data
 
Size size {}
 
PixelFormat format {}
 

Detailed Description

castor::Image creation parameters.

Member Enumeration Documentation

◆ Mode

Enumerator
eFile 
eBuffer 
eParam 

Constructor & Destructor Documentation

◆ ImageCreateParams() [1/3]

castor::ImageCreateParams::ImageCreateParams ( Path ppath,
ImageLoaderConfig ploadConfig = { true, true, true } )
inlineexplicit

◆ ImageCreateParams() [2/3]

castor::ImageCreateParams::ImageCreateParams ( String ptype,
ByteArray pdata,
ImageLoaderConfig ploadConfig = { true, true, true } )
inlineexplicit

◆ ImageCreateParams() [3/3]

castor::ImageCreateParams::ImageCreateParams ( Size const & psize,
PixelFormat pformat )
inline

Member Data Documentation

◆ data

ByteArray castor::ImageCreateParams::data

◆ format

PixelFormat castor::ImageCreateParams::format {}

◆ loadConfig

ImageLoaderConfig castor::ImageCreateParams::loadConfig {}

◆ mode

Mode castor::ImageCreateParams::mode

◆ path

Path castor::ImageCreateParams::path

◆ size

Size castor::ImageCreateParams::size {}

◆ type

String castor::ImageCreateParams::type

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