954
Chapter 14: Properties
See also
textureRenderFormat
,
getHardwareInfo()
renderStyle
Usage
member(
whichCastmember
).shader(
whichShader
).renderStyle
Description
3D standard shader property; allows you to get or set the
renderStyle
for a shader, as
determined by the geometry of the underlying model resource. This property has the
following values:
#fill
specifies that the shader is drawn to completely fill the surface area of the model resource.
#wire
specifies that the shader is drawn only on the edges of the faces of the model resource.
#point
specifies that the shader is drawn only on the vertices of the model resource.
All shaders have access to the
#standard
shader properties; in addition to these standard shader
properties shaders of the types
#engraver
,
#newsprint
, and
#painter
have properties unique to
their type. For more information, see
newShader
.
Example
This statement causes the shader WallMaterial to be rendered only where it lies on top of a vertex
of the underlying model resource:
member("CityScene").shader("WallMaterial").renderStyle = #point
resizable
Usage
-- Lingo syntax
windowObjRef
.resizable
// JavaScript syntax
windowObjRef
.resizable;
Description
Window property; specifies whether the window is resizable (
TRUE
, default) or not (
FALSE
).
Read/write.
Example
These statements maximize the window named Empire if the window is resizable.
-- Lingo syntax
if (window("Empire").resizable = TRUE) then
window("Empire").maximize()
end if
// JavaScript syntax
if (window("Empire").resizable = true) {
window("Empire").maximize();
}
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...