Resource
Graphics
(NOTE) Data that represents a texture in the way that is intended to be used by graphics hardware.
Methods | Properties | Base Classes | Derived Classes |
---|---|---|---|
CreateRuntime | AddressingX | Resource | |
SubUpload | AddressingY | ||
Upload | Anisotropy | ||
CompareFunc | |||
CompareMode | |||
Compression | |||
Filtering | |||
Format | |||
Height | |||
MipMapping | |||
Size | |||
Type | |||
Width |
Properties
AddressingX : TextureAddressing
How to treat uv coordinates outside of [0, 1] along the Texture's width.
var AddressingX : TextureAddressing
AddressingY : TextureAddressing
How to treat uv coordinates outside of [0, 1] along the Texture's height.
var AddressingY : TextureAddressing
Anisotropy : TextureAnisotropy
Max ratio of anisotropy that filtering will account for at oblique viewing angles.
var Anisotropy : TextureAnisotropy
CompareFunc : TextureCompareFunc
Which method of comparison should be used if CompareMode is set to Enable.
var CompareFunc : TextureCompareFunc
CompareMode : TextureCompareMode
If sampling in hardware should perform comparison instead of fetching. Requires using SamplerShadow2d in the shader.
var CompareMode : TextureCompareMode
Compression : TextureCompression
read-only
Block compression method being used. Requires pre-processing, cannot be set for runtime Textures.
var Compression : TextureCompression
Filtering : TextureFiltering
How samples should be blended under minification/magnification.
var Filtering : TextureFiltering
Format : TextureFormat
read-only
Memory format of the stored pixel data. Set on Upload() for runtime Textures.
var Format : TextureFormat
Height : integer
read-only
Height of the Texture in pixels. Set on Upload() for runtime Textures.
var Height : Integer
MipMapping : TextureMipMapping
If downsampled versions of the texture (mip maps) should be generated. PreGenerated is not valid for runtime Textures.
var MipMapping : TextureMipMapping
Size : integer2
read-only
Width and height (x, y) of the Texture in pixels. Set on Upload() for runtime Textures.
var Size : Integer2
Type : TextureType
read-only
The type of texture data being represented.
var Type : TextureType
Width : integer
read-only
Width of the Texture in pixels. Set on Upload() for runtime Textures.
var Width : Integer
Methods
CreateRuntime : texture
static
Makes an anonymous Texture resource that can be defined by script and uploaded to the gpu. |Name|Type|Description| |---|---|---|
function CreateRuntime() : Texture
SubUpload : Void
Uploads the given texture data, overwriting a sub region of the texture data that is already on the gpu. |Name|Type|Description| |---|---|---| |textureData|texturedata| | |xOffset|integer| | |yOffset|integer| |
function SubUpload(textureData : TextureData, xOffset : Integer, yOffset : Integer)
Upload : Void
Uploads the given texture data to the gpu, configured with the current settings of this Texture. |Name|Type|Description| |---|---|---| |textureData|texturedata| |
function Upload(textureData : TextureData)