dplug.pbrwidgets.imageknob

A PBR knob with texture.

Members

Classes

KnobImage
class KnobImage

Type of image being used for Knob graphics. It used to be a one level deep Mipmap (ie. a flat image with sampling capabilities). It is now a regular OwnedImage since it is resized in reflow(). Use it an opaque type: its definition can change.

UIImageKnob
class UIImageKnob

UIKnob which replace the knob part by a rotated PBR image.

Enums

KnobImageType
enum KnobImageType
Undocumented in source.
KnobInterpolationType
enum KnobInterpolationType
Undocumented in source.

Functions

loadKnobImage
KnobImage loadKnobImage(void[] data)

Loads a knob image and rearrange channels to be fit to pass to UIImageKnob. Warning: the returned KnobImage should be destroyed by the caller with destroyFree. Note: internal resizing does not preserve aspect ratio exactly for approximate scaled rectangles.

Meta