com.threerings.opengl.geometry.config
Class GeometryConfig.AttributeArrayConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ClientArrayConfig
          extended by com.threerings.opengl.geometry.config.GeometryConfig.AttributeArrayConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
GeometryConfig

public static class GeometryConfig.AttributeArrayConfig
extends ClientArrayConfig

Describes an interleaved attribute array.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.renderer.config.ClientArrayConfig
ClientArrayConfig.Type
 
Field Summary
 String name
          The name of the attribute.
 
Fields inherited from class com.threerings.opengl.renderer.config.ClientArrayConfig
floatArray, normalized, offset, size, stride, type
 
Constructor Summary
GeometryConfig.AttributeArrayConfig()
           
GeometryConfig.AttributeArrayConfig(int size, int stride, int offset, FloatBuffer floatArray, String name)
           
GeometryConfig.AttributeArrayConfig(int size, String name)
           
 
Method Summary
 boolean canMerge(ClientArrayConfig oarray)
          Checks whether, all other things being equal, we can merge this array with the specified other.
 
Methods inherited from class com.threerings.opengl.renderer.config.ClientArrayConfig
createClientArray, getElementBytes, populateClientArray, populateFloatArray, populateIntArray
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name
The name of the attribute.

Constructor Detail

GeometryConfig.AttributeArrayConfig

public GeometryConfig.AttributeArrayConfig(int size,
                                           String name)

GeometryConfig.AttributeArrayConfig

public GeometryConfig.AttributeArrayConfig(int size,
                                           int stride,
                                           int offset,
                                           FloatBuffer floatArray,
                                           String name)

GeometryConfig.AttributeArrayConfig

public GeometryConfig.AttributeArrayConfig()
Method Detail

canMerge

public boolean canMerge(ClientArrayConfig oarray)
Description copied from class: ClientArrayConfig
Checks whether, all other things being equal, we can merge this array with the specified other.

Overrides:
canMerge in class ClientArrayConfig


Copyright © 2011. All Rights Reserved.