HDK
|
#include <texture.h>
Public Types | |
enum | Wrap { WrapDefault, WrapBlack, WrapClamp, WrapPeriodic, WrapMirror, WrapPeriodicPow2, WrapPeriodicSharedBorder, WrapLast } |
enum | MipMode { MipModeDefault, MipModeNoMIP, MipModeOneLevel, MipModeTrilinear, MipModeAniso, MipModeStochasticTrilinear, MipModeStochasticAniso } |
enum | InterpMode { InterpClosest, InterpBilinear, InterpBicubic, InterpSmartBicubic } |
Public Member Functions | |
TextureOpt () | |
TextureOpt (const TextureOptions &opt, int index) | |
Static Public Member Functions | |
static Wrap | decode_wrapmode (const char *name) |
static Wrap | decode_wrapmode (ustring name) |
static void | parse_wrapmodes (const char *wrapmodes, TextureOpt::Wrap &swrapcode, TextureOpt::Wrap &twrapcode) |
Public Attributes | |
int | firstchannel |
First channel of the lookup. More... | |
int | subimage |
Subimage or face ID. More... | |
ustring | subimagename |
Subimage name. More... | |
Wrap | swrap |
Wrap mode in the s direction. More... | |
Wrap | twrap |
Wrap mode in the t direction. More... | |
MipMode | mipmode |
Mip mode. More... | |
InterpMode | interpmode |
Interpolation mode. More... | |
int | anisotropic |
Maximum anisotropic ratio. More... | |
bool | conservative_filter |
True == over-blur rather than alias. More... | |
float | sblur |
float | tblur |
Blur amount. More... | |
float | swidth |
float | twidth |
Multiplier for derivatives. More... | |
float | fill |
Fill value for missing channels. More... | |
const float * | missingcolor |
Color for missing texture. More... | |
float | time |
Time (for time-dependent texture lookups) More... | |
union { | |
float bias | |
Bias for shadows (DEPRECATED?) More... | |
float rnd | |
Stratified sample value. More... | |
}; | |
int | samples |
Number of samples for shadows. More... | |
Wrap | rwrap |
Wrap mode in the r direction. More... | |
float | rblur |
Blur amount in the r direction. More... | |
float | rwidth |
Multiplier for derivatives in r direction. More... | |
Friends | |
class | pvt::TextureSystemImpl |
TextureOpt is a structure that holds many options controlling single-point texture lookups. Because each texture lookup API call takes a reference to a TextureOpt, the call signatures remain uncluttered rather than having an ever-growing list of parameters, most of which will never vary from their defaults.
enum TextureOpt::MipMode |
Mip mode determines if/how we use mipmaps
enum TextureOpt::Wrap |
Wrap mode describes what happens when texture coordinates describe a value outside the usual [0,1] range where a texture is defined.
|
inline |
Create a TextureOpt with all fields initialized to reasonable defaults.
TextureOpt::TextureOpt | ( | const TextureOptions & | opt, |
int | index | ||
) |
Convert a TextureOptions for one index into a TextureOpt.
|
inlinestatic |
|
inlinestatic |
union { ... } |
bool TextureOpt::conservative_filter |
InterpMode TextureOpt::interpmode |
const float* TextureOpt::missingcolor |
float TextureOpt::rwidth |
float TextureOpt::time |