PSSGManager.Model.getIndices C# (CSharp) Méthode

getIndices() public méthode

public getIndices ( ) : ushort[]
Résultat ushort[]
        public ushort[] getIndices()
        {
            ushort[] indices = new ushort[indicesCount];
            Array.Copy(renderDataSource.indices, indexOffset, indices, 0, indicesCount);
            return indices;
        }

Usage Example

Exemple #1
0
        public void RenderModel(Model model)
        {
            this.model   = model;
            vertexBuffer = new VertexBuffer(typeof(CustomVertex.PositionNormalColored), model.getVertices().Length,
                                            device, Usage.Dynamic | Usage.WriteOnly, CustomVertex.PositionNormalColored.Format, Pool.Default);
            vertexBuffer.SetData(model.getVertices(), 0, LockFlags.None);

            indexBuffer = new IndexBuffer(typeof(ushort), model.getIndices().Length, device, Usage.WriteOnly, Pool.Default);
            indexBuffer.SetData(model.getIndices(), 0, LockFlags.None);

            Render();
        }
All Usage Examples Of PSSGManager.Model::getIndices