#include <texture.h>
|
enum | Wrap {
WrapDefault,
WrapBlack,
WrapClamp,
WrapPeriodic,
WrapMirror,
WrapPeriodicPow2,
WrapPeriodicSharedBorder,
WrapLast
} |
|
enum | MipMode {
MipModeDefault,
MipModeNoMIP,
MipModeOneLevel,
MipModeTrilinear,
MipModeAniso
} |
|
enum | InterpMode { InterpClosest,
InterpBilinear,
InterpBicubic,
InterpSmartBicubic
} |
|
Definition at line 335 of file texture.h.
Interp mode determines how we sample within a mipmap level
Enumerator |
---|
InterpClosest |
Force closest texel.
|
InterpBilinear |
Force bilinear lookup within a mip level.
|
InterpBicubic |
Force cubic lookup within a mip level.
|
InterpSmartBicubic |
Bicubic when magnifying, else bilinear.
|
Definition at line 362 of file texture.h.
Mip mode determines if/how we use mipmaps
Enumerator |
---|
MipModeDefault |
Default high-quality lookup.
|
MipModeNoMIP |
Just use highest-res image, no MIP mapping.
|
MipModeOneLevel |
Use just one mipmap level.
|
MipModeTrilinear |
Use two MIPmap levels (trilinear)
|
MipModeAniso |
Use two MIPmap levels w/ anisotropic.
|
Definition at line 352 of file texture.h.
Wrap mode describes what happens when texture coordinates describe a value outside the usual [0,1] range where a texture is defined.
Enumerator |
---|
WrapDefault |
Use the default found in the file.
|
WrapBlack |
Black outside [0..1].
|
WrapClamp |
Clamp to [0..1].
|
WrapPeriodic |
Periodic mod 1.
|
WrapMirror |
Mirror the image.
|
WrapPeriodicPow2 |
Periodic, but only for powers of 2!!!
|
WrapPeriodicSharedBorder |
Periodic with shared border (env)
|
WrapLast |
Mark the end – don't use this!
|
Definition at line 339 of file texture.h.
TextureOptions::TextureOptions |
( |
| ) |
|
Create a TextureOptions with all fields initialized to reasonable defaults.
TextureOptions::TextureOptions |
( |
const TextureOpt & |
opt | ) |
|
static Wrap TextureOptions::decode_wrapmode |
( |
const char * |
name | ) |
|
|
inlinestatic |
Utility: Return the Wrap enum corresponding to a wrap name: "default", "black", "clamp", "periodic", "mirror".
Definition at line 406 of file texture.h.
static Wrap TextureOptions::decode_wrapmode |
( |
ustring |
name | ) |
|
|
inlinestatic |
Utility: Parse a single wrap mode (e.g., "periodic") or a comma-separated wrap modes string (e.g., "black,clamp") into separate Wrap enums for s and t.
Definition at line 418 of file texture.h.
friend class pvt::TextureSystemImpl |
|
friend |
int TextureOptions::anisotropic |
Maximum anisotropic ratio.
Definition at line 387 of file texture.h.
bool TextureOptions::conservative_filter |
True == over-blur rather than alias.
Definition at line 388 of file texture.h.
Fill value for missing channels.
Definition at line 395 of file texture.h.
int TextureOptions::firstchannel |
First channel of the lookup.
Definition at line 380 of file texture.h.
Interpolation mode.
Definition at line 386 of file texture.h.
Color for missing texture.
Definition at line 396 of file texture.h.
Blur amount in the r direction.
Definition at line 401 of file texture.h.
Multiplier for derivatives in r direction.
Definition at line 402 of file texture.h.
Wrap TextureOptions::rwrap |
Wrap mode in the r direction.
Definition at line 400 of file texture.h.
Number of samples.
Definition at line 397 of file texture.h.
int TextureOptions::subimage |
Subimage or face ID.
Definition at line 381 of file texture.h.
ustring TextureOptions::subimagename |
Wrap TextureOptions::swrap |
Wrap mode in the s direction.
Definition at line 383 of file texture.h.
Multiplier for derivatives.
Definition at line 392 of file texture.h.
Wrap TextureOptions::twrap |
Wrap mode in the t direction.
Definition at line 384 of file texture.h.
The documentation for this class was generated from the following file: