User Guide

544
The renderFormat property determines the pixel format the renderer uses when rendering the
specified texture. Each pixel format has a number of digits, with each digit indicating the color
depth being used for red, green, blue, and alpha. The value you choose determines the accuracy of
the color fidelity (including the precision of the optional alpha channel) and thus the amount of
memory used on the video card. You can choose a value that improves color fidelity or a value that
allows you to fit more textures into memory on the video card. You can fit roughly twice as many
16-bit textures as 32-bit textures in the same space.
Example
The following statement sets the renderFormat property of the texture TexPic to #rgba4444. The
red, blue, green, and alpha components of the texture will each be drawn using 4 bits of
information.
member("3d").texture("TexPic").renderFormat = #rgba4444
See also
textureRenderFormat, getHardwareInfo()
renderStyle
Syntax
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
repeat while
Syntax
repeat while testCondition
statement(s)
end repeat
Description
Keyword; repeatedly executes statement(s) so long as the condition specified by testCondition is
TRUE. This structure can be used in Lingo that continues to read strings until the end of a file is
reached, checks items until the end of a list is reached, or repeatedly performs an action until the
user presses or releases the mouse button.