#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 360 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 387 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 377 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 364 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 431 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 447 of file texture.h.
friend class pvt::TextureSystemImpl |
|
friend |
int TextureOptions::anisotropic |
Maximum anisotropic ratio.
Definition at line 412 of file texture.h.
bool TextureOptions::conservative_filter |
True == over-blur rather than alias.
Definition at line 413 of file texture.h.
Fill value for missing channels.
Definition at line 420 of file texture.h.
int TextureOptions::firstchannel |
First channel of the lookup.
Definition at line 405 of file texture.h.
Interpolation mode.
Definition at line 411 of file texture.h.
Color for missing texture.
Definition at line 421 of file texture.h.
Blur amount in the r direction.
Definition at line 426 of file texture.h.
Multiplier for derivatives in r direction.
Definition at line 427 of file texture.h.
Wrap TextureOptions::rwrap |
Wrap mode in the r direction.
Definition at line 425 of file texture.h.
Number of samples.
Definition at line 422 of file texture.h.
int TextureOptions::subimage |
Subimage or face ID.
Definition at line 406 of file texture.h.
ustring TextureOptions::subimagename |
Wrap TextureOptions::swrap |
Wrap mode in the s direction.
Definition at line 408 of file texture.h.
Multiplier for derivatives.
Definition at line 417 of file texture.h.
Wrap TextureOptions::twrap |
Wrap mode in the t direction.
Definition at line 409 of file texture.h.
The documentation for this class was generated from the following file: