Struct vtflib_sys::tagSVTFCreateOptions
source · [−]#[repr(C, packed)]pub struct tagSVTFCreateOptions {Show 33 fields
pub uiVersion: [vlUInt; 2],
pub ImageFormat: VTFImageFormat,
pub uiFlags: vlUInt,
pub uiStartFrame: vlUInt,
pub sBumpScale: vlSingle,
pub sReflectivity: [vlSingle; 3],
pub bMipmaps: vlBool,
pub MipmapFilter: VTFMipmapFilter,
pub MipmapSharpenFilter: VTFSharpenFilter,
pub bThumbnail: vlBool,
pub bReflectivity: vlBool,
pub bResize: vlBool,
pub ResizeMethod: VTFResizeMethod,
pub ResizeFilter: VTFMipmapFilter,
pub ResizeSharpenFilter: VTFSharpenFilter,
pub uiResizeWidth: vlUInt,
pub uiResizeHeight: vlUInt,
pub bResizeClamp: vlBool,
pub uiResizeClampWidth: vlUInt,
pub uiResizeClampHeight: vlUInt,
pub bGammaCorrection: vlBool,
pub sGammaCorrection: vlSingle,
pub bNormalMap: vlBool,
pub KernelFilter: VTFKernelFilter,
pub HeightConversionMethod: VTFHeightConversionMethod,
pub NormalAlphaResult: VTFNormalAlphaResult,
pub bNormalMinimumZ: vlByte,
pub sNormalScale: vlSingle,
pub bNormalWrap: vlBool,
pub bNormalInvertX: vlBool,
pub bNormalInvertY: vlBool,
pub bNormalInvertZ: vlBool,
pub bSphereMap: vlBool,
}
Fields
uiVersion: [vlUInt; 2]
!< Output image version.
ImageFormat: VTFImageFormat
!< Output image output storage format.
uiFlags: vlUInt
!< Output image header flags.
uiStartFrame: vlUInt
!< Output image start frame.
sBumpScale: vlSingle
!< Output image bump scale.
sReflectivity: [vlSingle; 3]
!< Output image reflectivity. (Only used if bReflectivity is false.)
bMipmaps: vlBool
!< Generate MIPmaps. (Space is always allocated.)
MipmapFilter: VTFMipmapFilter
!< MIP map re-size filter.
MipmapSharpenFilter: VTFSharpenFilter
!< MIP map sharpen filter.
bThumbnail: vlBool
!< Generate thumbnail image.
bReflectivity: vlBool
!< Compute image reflectivity.
bResize: vlBool
!< Resize the input image.
ResizeMethod: VTFResizeMethod
!< New size compution method.
ResizeFilter: VTFMipmapFilter
!< Re-size filter.
ResizeSharpenFilter: VTFSharpenFilter
!< Sharpen filter.
uiResizeWidth: vlUInt
!< New width after re-size if method is RESIZE_SET.
uiResizeHeight: vlUInt
!< New height after re-size if method is RESIZE_SET.
bResizeClamp: vlBool
!< Clamp re-size size.
uiResizeClampWidth: vlUInt
!< Maximum width to re-size to.
uiResizeClampHeight: vlUInt
!< Maximum height to re-size to.
bGammaCorrection: vlBool
!< Gamma correct input image.
sGammaCorrection: vlSingle
!< Gamma correction to apply.
bNormalMap: vlBool
!< Convert input image to a normal map.
KernelFilter: VTFKernelFilter
!< Normal map generation kernel.
HeightConversionMethod: VTFHeightConversionMethod
!< Method or determining height from input image during normal map creation.
NormalAlphaResult: VTFNormalAlphaResult
!< How to handle output image alpha channel, post normal map creation.
bNormalMinimumZ: vlByte
!< Minimum normal Z value.
sNormalScale: vlSingle
!< Normal map scale.
bNormalWrap: vlBool
!< Wrap the normal map.
bNormalInvertX: vlBool
!< Invert the normal X component.
bNormalInvertY: vlBool
!< Invert the normal Y component.
bNormalInvertZ: vlBool
!< Invert the normal Z component.
bSphereMap: vlBool
!< Generate a sphere map for six faced environment maps.
Trait Implementations
sourceimpl Clone for tagSVTFCreateOptions
impl Clone for tagSVTFCreateOptions
sourcefn clone(&self) -> tagSVTFCreateOptions
fn clone(&self) -> tagSVTFCreateOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for tagSVTFCreateOptions
impl Debug for tagSVTFCreateOptions
impl Copy for tagSVTFCreateOptions
Auto Trait Implementations
impl RefUnwindSafe for tagSVTFCreateOptions
impl Send for tagSVTFCreateOptions
impl Sync for tagSVTFCreateOptions
impl Unpin for tagSVTFCreateOptions
impl UnwindSafe for tagSVTFCreateOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more