Available on macOS, Linux, Windows·since 0.31.0
#import "nvtt";
Procedures#
(this: *
OutputHandler, size:
s32, width:
s32, height:
s32, depth:
s32, face:
s32, miplevel:
s32)
(this: *
OutputHandler, size:
s32, width:
s32, height:
s32, depth:
s32, face:
s32, miplevel:
s32)
(this: *
OutputHandler, size:
s32, width:
s32, height:
s32, depth:
s32, face:
s32, miplevel:
s32)
(img: *
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
(img: *
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
(img: *
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
(img:
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
(img:
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
(img:
Surface, minRange:
float, maxRange:
float, width:
s32, height:
s32) ->
Surface
() -> u32
() -> u32
() -> u32
Types#
:: enum
- None
- Transparency
- Premultiplied
:: struct
:: struct
:: enum
:: enum
- VerticalCross
- HorizontalCross
- Column
- Row
- LatitudeLongitude
:: struct
:: enum
:: enum
- None
- Stretch
- Warp
- Average
:: enum
- Unknown
- InvalidInput
- UnsupportedFeature
- CudaError
- FileOpen
- FileWrite
- UnsupportedOutputFormat
- Count
:: struct
:: struct
- Destructor: #type (this: *ErrorHandler, flags: Msvc_Destructor_Flags = .NONE) -> void #cpp_method
:: enum
- RGB
- RGBA
- DXT1
- DXT1a
- DXT3
- DXT5
- DXT5n
- BC1
- BC1a
- BC2
- BC3
- BC3n
- BC4
- BC5
- DXT1n
- CTX1
- BC6
- BC7
- BC3_RGBM
- ETC1
- ETC2_R
- ETC2_RG
- ETC2_RGB
- ETC2_RGBA
- ETC2_RGB_A1
- ETC2_RGBM
- PVR_2BPP_RGB
- PVR_4BPP_RGB
- PVR_2BPP_RGBA
- PVR_4BPP_RGBA
- Count
:: enum
- BGRA_8UB
- RGBA_16F
- RGBA_32F
- R_32F
:: struct
:: enum
:: enum
- Orthographic
- Stereographic
- Paraboloid
- Quartic
:: struct
:: struct
- Destructor: #type (this: *OutputHandler, flags: Msvc_Destructor_Flags = .NONE) -> void #cpp_method
- beginImage: #type (this: *OutputHandler, size: s32, width: s32, height: s32, depth: s32, face: s32, miplevel: s32) -> void #cpp_method
- writeData: #type (this: *OutputHandler, data: *void, size: s32) -> bool #cpp_method
:: struct
:: enum
- UnsignedNorm
- SignedNorm
- UnsignedInt
- SignedInt
- Float
- UnsignedFloat
- SharedExp
:: enum
- Fastest
- Normal
- Production
- Highest
:: enum
- Box
- Triangle
- Kaiser
- Mitchell
:: enum
- None
- ToNextPowerOfTwo
- ToNearestPowerOfTwo
- ToPreviousPowerOfTwo
- ToNextMultipleOfFour
- ToNearestMultipleOfFour
- ToPreviousMultipleOfFour
:: enum
:: struct
:: struct
:: struct
- Destructor: #type (this: *TaskDispatcher, flags: Msvc_Destructor_Flags = .NONE) -> void #cpp_method
- dispatch: #type (this: *TaskDispatcher, task: Task, _context: *void, count: s32) -> void #cpp_method
:: enum
:: enum
- Linear
- Reindhart
- Halo
- Lightmap
:: enum
:: #type (_context: *void, id: s32) -> void #c_call
:: #type (x: *float, y: *float, d: *float) -> void #c_call
:: struct
Constants#