# 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:

- colortype
- memsize
- memtocolor
- memtonormal
- memtopos
- memtotangent
- memtotex0
- memtotex1
- memtotex2
- memtotex3
- memtouser
- normaltype
- postype
- tangenttype
- textype
- usertype
- vertex16color
- vertex32normals
- vertex32texcoords
- vertex64

colortype (vertextype)
  returns: ([scalartype])
  returns scalartype of the attribute or nil if not found.
memsize (vertextype)
  returns: (int bytes)
  returns size in bytes.
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.
memtouser (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.
usertype (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).
vertex32texcoords ()
  returns: (vertextype)
  size 32 bytes, position (3 floats), color (4 unsigned byte), 2 texcoord channels (2*2 floats).
vertex64 ()
  returns: (vertextype)
  size 64 bytes, normals (3 shorts), position (3 floats), color (4 unsigned bytes), 4 texcoord channels (4*2 floats), tangents (4 shorts). The last 2 texcoord channels serve as user4 (4 floats) which may be used for hardware skinning.

## Inherited Methods: