Texture properties
Use these properties to work with textures:
Property
name
type
member
width
height
quality
nearFiltering
compressed
Texture commands
The pixel height and width of the 2D images you use as textures should be powers of 2 (that is,
2, 4, 8, 16, 32, and so on). If not, the image will be resized to a dimension that is a power of 2.
The
scaleDown()
texture level.
Command
scaleDown()
Access
Description
Get and set
Name of texture.
Get
Possible values:
#fromfile
import
#castmember
cast member
Get and set
If the type is
identifies the source of the bitmap.
If the type if
void
Get
Width, in pixels.
Get
Height, in pixels.
Get and set
Property with the following possible values:
#low
#medium
setting (default)
#high
setting
For more information, see
Lingo Dictionary.
Get and set
Determines whether bilinear filtering is used
when rendering a projected texture map that
covers more screen space than the original.
For more information, see
in the Lingo Dictionary.
Get and set
The property can be
(0)
TRUE (1)
FALSE (0)
The value changes automatically from
(1)
rendered.
The value can be set to
decompress or to
decompressed representation from memory.
command allows you to retain manual control over this procedure at the
Description
Reduces the height of the texture to the next lowest power of
2. This is useful for dynamically resizing textures to fit on a
client machine.
: bitmap defined as part of 3D
: bitmap derived from Director
#castmember
, this property
#fromfile
, this property is
.
: texture is not mipmapped
: mipmapping is at a low bilinear
: the mipmapping is at a high trilinear
quality
nearFiltering
TRUE (1)
:
: the texture is compressed
: the texture is not compressed
FALSE (0)
to
when the texture is to be
FALSE (0)
TRUE (1)
to remove the
Working with Models and Model Resources 495
Default
None
None
None
None
None
#medium
in the
TRUE (1)
FALSE
TRUE (1)
or
TRUE
to
Returns
Nothing
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?