class CompressedGeometryRetained extends Object(Code)
The compressed geometry object is used to store geometry in a
compressed format. Using compressed geometry reduces the amount
of memory needed by a Java 3D application and increases the speed
objects can be sent over the network. Once geometry decompression
hardware support becomes available, increased rendering performance
will also result from the use of compressed geometry.
getBufferType() Return a buffer type that's compatible with CompressedGeometryData.Header.
byte[]
getReference() Returns a reference to the original compressed geometry byte array,
which may have been copied even if by-reference semantics have been
requested.
int
getVertexFormat() Return a vertex format mask that's compatible with GeometryArray
objects.
boolean
isByReference() Return true if the data access mode is by-reference.
Copies compressed geometry data into the given array of bytes.
The internal header information is not copied.
Parameters: buff - array of bytes into which to copy compressed geometry
Creates the retained compressed geometry data. Data from the header is
always copied; the compressed geometry is copied as well if the data
access mode is not by-reference.
Parameters: hdr - the compressed geometry header Parameters: geometry - the compressed geometry Parameters: byReference - if true then by-reference semantics requested
Returns a reference to the original compressed geometry byte array,
which may have been copied even if by-reference semantics have been
requested. It will be null if byCopy is in effect.
reference to array of bytes containing the compressed geometry.