DarkBASIC Professional Help File

DX11:MESH

Meshes contain the actual 3D geometry data used by objects / limbs. This vertex data is dependent on a given vertex layout and can be altered for an mesh through locking it.
The same holds true for the associated index data (all meshes use indices).

    DX11 CREATE MESH : Return Dword = DX11 CREATE MESH(vertexCount, indexCount, [vertLayout], [topology])

    DX11 CREATE NULL MESH : DX11 CREATE NULL MESH vertexCount, [bbMinX], [bbMinY], [bbMinZ], [bbmaxX], [bbmaxY], [bbmaxZ], [topology]

    DX11 DELETE MESH : DX11 DELETE MESH mesh

    DX11 MESH EXISTS : Return Boolean = DX11 MESH EXISTS(mesh)

    DX11 LOCK MESH VERTEXDATA : Return Boolean = DX11 LOCK MESH VERTEXDATA(mesh)

    DX11 UNLOCK MESH VERTEXDATA : Return Boolean = DX11 UNLOCK MESH VERTEXDATA(mesh)

    DX11 LOCK MESH INDEXDATA : Return Boolean = DX11 LOCK MESH INDEXDATA(mesh)

    DX11 UNLOCK MESH INDEXDATA : Return Boolean = DX11 UNLOCK MESH INDEXDATA(mesh)

    DX11 GET MESH VERTEXDATA SEMANTIC OFFSET : Return Dword = DX11 GET MESH VERTEXDATA SEMANTIC OFFSET(mesh, semanticName, [semanticId])

    DX11 GET MESH VERTEXDATA VERTEX COUNT : Return Dword = DX11 GET MESH VERTEXDATA VERTEX COUNT(mesh)

    DX11 GET MESH VERTEXDATA BYTE : Return Byte = DX11 GET MESH VERTEXDATA BYTE(mesh, vertex, offset)

    DX11 GET MESH VERTEXDATA WORD : Return Word = DX11 GET MESH VERTEXDATA WORD(mesh, vertex, offset)

    DX11 GET MESH VERTEXDATA DWORD : Return Dword = DX11 GET MESH VERTEXDATA DWORD(mesh, vertex, offset)

    DX11 GET MESH VERTEXDATA INTEGER : Return Integer = DX11 GET MESH VERTEXDATA INTEGER(mesh, vertex, offset)

    DX11 GET MESH VERTEXDATA FLOAT : Return Float = DX11 GET MESH VERTEXDATA FLOAT(mesh, vertex, offset)

    DX11 GET MESH VERTEXDATA VECTOR2 : DX11 GET MESH VERTEXDATA VECTOR2 mesh, vertex, offset, vector

    DX11 GET MESH VERTEXDATA VECTOR3 : DX11 GET MESH VERTEXDATA VECTOR3 mesh, vertex, offset, vector

    DX11 GET MESH VERTEXDATA VECTOR4 : DX11 GET MESH VERTEXDATA VECTOR4 mesh, vertex, offset, vector

    DX11 SET MESH VERTEXDATA BYTE : DX11 SET MESH VERTEXDATA BYTE mesh, vertex, offset, value

    DX11 SET MESH VERTEXDATA WORD : DX11 SET MESH VERTEXDATA WORD mesh, vertex, offset, value

    DX11 SET MESH VERTEXDATA DWORD : DX11 SET MESH VERTEXDATA DWORD mesh, vertex, offset, value

    DX11 SET MESH VERTEXDATA FLOAT : DX11 SET MESH VERTEXDATA FLOAT mesh, vertex, offset, value

    DX11 SET MESH VERTEXDATA VECTOR2 : DX11 SET MESH VERTEXDATA VECTOR2 mesh, vertex, offset, vector

    DX11 SET MESH VERTEXDATA VECTOR3 : DX11 SET MESH VERTEXDATA VECTOR3 mesh, vertex, offset, vector

    DX11 SET MESH VERTEXDATA VECTOR4 : DX11 SET MESH VERTEXDATA VECTOR4 mesh, vertex, offset, vector

    DX11 GET MESH INDEXDATA : Return Dword = DX11 GET MESH INDEXDATA(mesh, index)

    DX11 SET MESH INDEXDATA : DX11 SET MESH INDEXDATA mesh, index, vertex

    DX11 GET MESH INDEX COUNT : Return Dword = DX11 GET MESH INDEX COUNT(mesh)

    DX11 GET MESH VERTEX COUNT : Return Dword = DX11 GET MESH VERTEX COUNT(mesh)

    DX11 CALCULATE SMOOTH MESH NORMALS : DX11 CALCULATE SMOOTH MESH NORMALS mesh

    DX11 CLONE MESH : Return Dword = DX11 CLONE MESH(mesh)

    DX11 SET MESH INDEX BUFFER : DX11 SET MESH INDEX BUFFER mesh, indexBuffer

    DX11 SET MESH TOPOLOGY : DX11 SET MESH TOPOLOGY mesh, topology

    DX11 GET MESH TOPOLOGY : Return Dword = DX11 GET MESH TOPOLOGY(mesh)

    DX11 SET NULL MESH VERTEX COUNT : DX11 SET NULL MESH VERTEX COUNT mesh, vertexCount

    DX11 SET NULL MESH INDIRECT DRAW ARGUMENT BUFFER : DX11 SET NULL MESH INDIRECT DRAW ARGUMENT BUFFER mesh, indrectArgBuffer, [offset]