- class HardwareBuffer a => HardwareVertexBuffer a where
- getVertexSize :: a -> Int
- getNumVertices :: a -> Int
- data VertexElementSemantic
- data VertexElementType
- = VET_FLOAT1
- | VET_FLOAT2
- | VET_FLOAT3
- | VET_FLOAT4
- | VET_SHORT1
- | VET_SHORT2
- | VET_SHORT3
- | VET_SHORT4
- | VET_UBYTE4
- | VET_COLOUR_ARGB
- | VET_COLOUR_ABGR
- data VertexElement = VertexElement {}
- getTypeSize :: VertexElementType -> Int
- getTypeCount :: VertexElementType -> Int
- multiplyTypeCount :: VertexElementType -> Int -> VertexElementType
- getBaseType :: VertexElementType -> VertexElementType
- data VertexDeclaration = VertexDeclaration {}
- data HardwareVertexBuffer vb => VertexBufferBinding vb = VertexBufferBinding {
- vbbBindingMap :: IntMap vb
Documentation
class HardwareBuffer a => HardwareVertexBuffer a whereSource
data VertexElementSemantic Source
Vertex element semantics, used to identify the meaning of vertex buffer contents
VES_POSITION | Position, 3 reals per vertex |
VES_BLEND_WEIGHTS | Blending weights |
VES_BLEND_INDICES | Blending indices |
VES_NORMAL | Normal, 3 reals per vertex |
VES_DIFFUSE | Diffuse colours |
VES_SPECULAR | Specular colours |
VES_TEXTURE_COORDINATES | Texture coordinates |
VES_BINORMAL | Binormal (Y axis if normal is Z) |
VES_TANGENT | Tangent (X axis if normal is Z) |
data VertexElementType Source
Vertex element type, used to identify the base types of the vertex contents
VET_FLOAT1 | |
VET_FLOAT2 | |
VET_FLOAT3 | |
VET_FLOAT4 | |
VET_SHORT1 | |
VET_SHORT2 | |
VET_SHORT3 | |
VET_SHORT4 | |
VET_UBYTE4 | |
VET_COLOUR_ARGB | D3D style compact colour |
VET_COLOUR_ABGR | GL style compact colour |
data VertexElement Source
VertexElement | |
|
getTypeSize :: VertexElementType -> IntSource
Utility method for helping to calculate offsets
getTypeCount :: VertexElementType -> IntSource
Utility method which returns the count of values in a given type
multiplyTypeCount :: VertexElementType -> Int -> VertexElementTypeSource
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
getBaseType :: VertexElementType -> VertexElementTypeSource
Simple converter function which will convert a type into its single-value equivalent to make switches on type easier.
data VertexDeclaration Source
VertexDeclaration | |
|
data HardwareVertexBuffer vb => VertexBufferBinding vb Source
HardwareVertexBuffer vb => Eq (VertexBufferBinding vb) | |
HardwareVertexBuffer vb => Ord (VertexBufferBinding vb) |