Struct vtflib_sys::tagSVTFCreateOptions[][src]

#[repr(C, packed)]
pub struct tagSVTFCreateOptions {
Show 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]
Expand description

!< Output image version.

ImageFormat: VTFImageFormat
Expand description

!< Output image output storage format.

uiFlags: vlUInt
Expand description

!< Output image header flags.

uiStartFrame: vlUInt
Expand description

!< Output image start frame.

sBumpScale: vlSingle
Expand description

!< Output image bump scale.

sReflectivity: [vlSingle; 3]
Expand description

!< Output image reflectivity. (Only used if bReflectivity is false.)

bMipmaps: vlBool
Expand description

!< Generate MIPmaps. (Space is always allocated.)

MipmapFilter: VTFMipmapFilter
Expand description

!< MIP map re-size filter.

MipmapSharpenFilter: VTFSharpenFilter
Expand description

!< MIP map sharpen filter.

bThumbnail: vlBool
Expand description

!< Generate thumbnail image.

bReflectivity: vlBool
Expand description

!< Compute image reflectivity.

bResize: vlBool
Expand description

!< Resize the input image.

ResizeMethod: VTFResizeMethod
Expand description

!< New size compution method.

ResizeFilter: VTFMipmapFilter
Expand description

!< Re-size filter.

ResizeSharpenFilter: VTFSharpenFilter
Expand description

!< Sharpen filter.

uiResizeWidth: vlUInt
Expand description

!< New width after re-size if method is RESIZE_SET.

uiResizeHeight: vlUInt
Expand description

!< New height after re-size if method is RESIZE_SET.

bResizeClamp: vlBool
Expand description

!< Clamp re-size size.

uiResizeClampWidth: vlUInt
Expand description

!< Maximum width to re-size to.

uiResizeClampHeight: vlUInt
Expand description

!< Maximum height to re-size to.

bGammaCorrection: vlBool
Expand description

!< Gamma correct input image.

sGammaCorrection: vlSingle
Expand description

!< Gamma correction to apply.

bNormalMap: vlBool
Expand description

!< Convert input image to a normal map.

KernelFilter: VTFKernelFilter
Expand description

!< Normal map generation kernel.

HeightConversionMethod: VTFHeightConversionMethod
Expand description

!< Method or determining height from input image during normal map creation.

NormalAlphaResult: VTFNormalAlphaResult
Expand description

!< How to handle output image alpha channel, post normal map creation.

bNormalMinimumZ: vlByte
Expand description

!< Minimum normal Z value.

sNormalScale: vlSingle
Expand description

!< Normal map scale.

bNormalWrap: vlBool
Expand description

!< Wrap the normal map.

bNormalInvertX: vlBool
Expand description

!< Invert the normal X component.

bNormalInvertY: vlBool
Expand description

!< Invert the normal Y component.

bNormalInvertZ: vlBool
Expand description

!< Invert the normal Z component.

bSphereMap: vlBool
Expand description

!< Generate a sphere map for six faced environment maps.

Trait Implementations

impl Clone for tagSVTFCreateOptions[src]

fn clone(&self) -> tagSVTFCreateOptions[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for tagSVTFCreateOptions[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy for tagSVTFCreateOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.