User Guide

getHotSpotRect() 333
#maxTextureSize is a linear list containing the maximum width and height of a texture, in
pixels. Textures that exceed this size are downsampled until they do not. To avoid texture
sampling artifacts, author textures of various sizes and choose the ones that do not exceed the
#maxTextureSize value at run time.
#supportedTextureRenderFormats is a linear list of texture pixel formats supported by the
video card. For details, see
textureRenderFormat.
#textureUnits indicates the number of texture units available to the card.
#depthBufferRange is a linear list of bit-depth resolutions to which the depthBufferDepth
property can be set.
#colorBufferRange is a linear list of bit-depth resolutions to which the colorBufferDepth
property can be set.
Example
This statement displays a detailed property list of information about the users hardware:
put getRendererServices().getHardwareInfo()
-- [#present: 1, #vendor: "NVIDIA Corporation", #model: \
"32MB DDR NVIDIA GeForce2 GTS (Dell)", #version: "4.12.01.0532", \
#maxTextureSize: [2048, 2048], #supportedTextureRenderFormats: \
[#rgba8888, #rgba8880, #rgba5650, #rgba5551, #rgba5550, \
#rgba4444], #textureUnits: 2, #depthBufferRange: [16, 24], \
#colorBufferRange: [16, 32]]
See also
getRendererServices()
getHotSpotRect()
Usage
-- Lingo syntax
spriteObjRef.getHotSpotRect(hotSpotID)
// JavaScript syntax
spriteObjRef.getHotSpotRect(hotSpotID);
Description
QuickTime VR function; returns an approximate bounding rectangle for a hot spot. If the hot
spot doesnt exist or isnt visible on the Stage, this function returns rect(0, 0, 0, 0). If the hot spot
is partially visible, this function returns the bounding rectangle for the visible portion.
Parameters
hotSpotID
Required. Specified the hot spot from which a bounding rectangle is returned.