Class: vertextype

For usercreated meshes it is necessary to specify what vertextype you want to have. Different vertextypes have different attributes and sizes.

Hierarchy

o-+ renderinterface
  o-+ vertextype

Methods:

Method overview:


blenditype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
blendwtype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
colortype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
memsize (vertextype)
returns: (int bytes)
returns size in bytes.
memtoblendi (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtoblendw (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtocolor (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtonormal (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtopos (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtotangent (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtotex0 (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtotex1 (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtotex2 (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
memtotex3 (vertextype)
returns: ([int bytes])
returns byte offset from start of the vertex to this component. Returns nil if component not part of vertex.
normaltype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
postype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
tangenttype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
textype (vertextype)
returns: ([scalartype])
returns scalartype of the attribute or nil if not found.
vertex16color ()
returns: (vertextype)
size 16 bytes, position (3 floats), color (4 unsigned byte).
vertex32normals ()
returns: (vertextype)
size 32 bytes, normals (3 shorts), position (3 floats), color (4 unsigned bytes), 1 texcoord channel (2 floats).
vertex32tex2 ()
returns: (vertextype)
size 32 bytes, position (3 floats), color (4 unsigned byte), 2 texcoord channels (2*2 floats).
vertex64skin ()
returns: (vertextype)
size 64 bytes, normals (3 shorts), position (3 floats), color (4 unsigned bytes), 2 texcoord channels (2*2 floats), tangents (4 shorts). Supports 4-weight hardware skinning using 4 unsigned bytes for indices and 4 unsigned shorts for weights.
vertex64tex4 ()
returns: (vertextype)
size 64 bytes, normals (3 shorts), position (3 floats), color (4 unsigned bytes), 4 texcoord channels (4*2 floats), tangents (4 shorts).

Inherited Methods: