TextureBuilder is a class used for setting up properties to initialize textures. More...
Public Member Functions | |
TextureBuilder () | |
Constructs a new TextureBuilder. | |
ObjectRef< Texture > | build (Domain domain) |
Builds a new texture. | |
void | recreate (Texture tex) |
Creates a new texture and swaps it in place. | |
TextureBuilder | setAddressingMode (SamplerAddressingMode mode) |
Sets the SamplerAddressingMode of the builder. | |
TextureBuilder | setDepth (long depth) |
Sets the depth of the builder. | |
TextureBuilder | setDepthCompareFunction (GraphicsCompareFunction func) |
Sets the depth GraphicsComparFunction of the builder. | |
TextureBuilder | setFormat (GraphicsFormat format) |
Sets the GraphicsFormat of the builder. | |
TextureBuilder | setHeight (long height) |
Sets the height of the builder. | |
TextureBuilder | setImages (BitmapImage[] images) |
Sets the images of the builder. | |
TextureBuilder | setMagnificationFilter (SamplerFilter filter) |
Sets the magnification SamplerFilter of the builder. | |
TextureBuilder | setMemoryType (GPUResourceMemoryType memoryType) |
Sets the memoryType of the builder. | |
TextureBuilder | setMinificationFilter (SamplerFilter filter) |
Sets the minification SamplerFilter of the builder. | |
TextureBuilder | setMipmapLevelCount (long mipmapLevelCount) |
Sets the mipmapLevelCount of the builder. | |
TextureBuilder | setMipmapMode (SamplerMipmapMode mode) |
Sets the SamplerMipmapMode of the builder. | |
TextureBuilder | setName (String name) |
Sets the name of the builder. | |
TextureBuilder | setType (TextureType type) |
Sets the TextureType of the builder. | |
TextureBuilder | setWidth (long width) |
Sets the width of the builder. | |
TextureBuilder is a class used for setting up properties to initialize textures.
To create a new texture, initialize a builder and set the various properties. Then invoke build() to get a new texture out of it.
Builds a new texture.
domain | UI Domain where this texture belongs. |
Creates a new texture and swaps it in place.
tex | The texture that is being replaced. |
TextureBuilder setAddressingMode | ( | SamplerAddressingMode | mode | ) |
Sets the SamplerAddressingMode of the builder.
mode | The mode value. |
TextureBuilder setDepth | ( | long | depth | ) |
Sets the depth of the builder.
depth | The depth value. |
TextureBuilder setDepthCompareFunction | ( | GraphicsCompareFunction | func | ) |
Sets the depth GraphicsComparFunction of the builder.
func | The GraphicsCompareFunction value. |
TextureBuilder setFormat | ( | GraphicsFormat | format | ) |
Sets the GraphicsFormat of the builder.
format | The format value. |
TextureBuilder setHeight | ( | long | height | ) |
Sets the height of the builder.
height | The height value. |
TextureBuilder setImages | ( | BitmapImage[] | images | ) |
Sets the images of the builder.
images | Array of com.rightware.kanzi.BitmapImage instances. |
TextureBuilder setMagnificationFilter | ( | SamplerFilter | filter | ) |
Sets the magnification SamplerFilter of the builder.
filter | The filter value. |
TextureBuilder setMemoryType | ( | GPUResourceMemoryType | memoryType | ) |
Sets the memoryType of the builder.
memoryType | The memoryType value. |
TextureBuilder setMinificationFilter | ( | SamplerFilter | filter | ) |
Sets the minification SamplerFilter of the builder.
filter | The filter value. |
TextureBuilder setMipmapLevelCount | ( | long | mipmapLevelCount | ) |
Sets the mipmapLevelCount of the builder.
mipmapLevelCount | The mipmapLevelCount value. |
TextureBuilder setMipmapMode | ( | SamplerMipmapMode | mode | ) |
Sets the SamplerMipmapMode of the builder.
mode | The mode value. |
TextureBuilder setName | ( | String | name | ) |
Sets the name of the builder.
name | The name value. |
TextureBuilder setType | ( | TextureType | type | ) |
Sets the TextureType of the builder.
type | The format value. |
TextureBuilder setWidth | ( | long | width | ) |
Sets the width of the builder.
width | The width value. |