| Safe Haskell | Safe-Infered |
|---|
Graphics.LambdaCube.HardwareVertexBuffer
- 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
Methods
Arguments
| :: a | |
| -> Int | Gets the size in bytes of a single vertex in this buffer |
Arguments
| :: a | |
| -> Int | Get the number of vertices in this buffer |
Instances
data VertexElementSemantic Source
Vertex element semantics, used to identify the meaning of vertex buffer contents
Constructors
| 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
Constructors
| 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
Constructors
| VertexElement | |
Fields
| |
Instances
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
Constructors
| VertexDeclaration | |
Fields
| |
data HardwareVertexBuffer vb => VertexBufferBinding vb Source
Constructors
| VertexBufferBinding | |
Fields
| |
Instances
| HardwareVertexBuffer vb => Eq (VertexBufferBinding vb) | |
| HardwareVertexBuffer vb => Ord (VertexBufferBinding vb) |