tagSVTFCreateOptions

Struct tagSVTFCreateOptions 

Source
#[repr(C, packed(1))]
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§

Source§

impl Clone for tagSVTFCreateOptions

Source§

fn clone(&self) -> tagSVTFCreateOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for tagSVTFCreateOptions

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for tagSVTFCreateOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.