Axiom.RenderSystems.Xna.XnaHardwareIndexBuffer.XnaHardwareIndexBuffer C# (CSharp) 메소드

XnaHardwareIndexBuffer() 공개 메소드

public XnaHardwareIndexBuffer ( HardwareBufferManagerBase manager, IndexType type, int numIndices, BufferUsage usage, Microsoft.Xna.Framework.Graphics device, bool useSystemMemory, bool useShadowBuffer ) : System
manager HardwareBufferManagerBase
type IndexType
numIndices int
usage BufferUsage
device Microsoft.Xna.Framework.Graphics
useSystemMemory bool
useShadowBuffer bool
리턴 System
		unsafe public XnaHardwareIndexBuffer( HardwareBufferManagerBase manager, IndexType type, int numIndices, BufferUsage usage, XFG.GraphicsDevice device, bool useSystemMemory, bool useShadowBuffer )
			: base( manager, type, numIndices, usage, useSystemMemory, useShadowBuffer )
		{
			_bufferType = ( type == IndexType.Size16 ) ? XFG.IndexElementSize.SixteenBits : XFG.IndexElementSize.ThirtyTwoBits;

			// create the buffer
            if (usage == BufferUsage.Dynamic || usage == BufferUsage.DynamicWriteOnly)
            {
                _xnaBuffer = new XFG.IndexBuffer(device, _bufferType, numIndices, XnaHelper.Convert(usage));
            }
            else 
                _xnaBuffer = new XFG.IndexBuffer(device, _bufferType, numIndices, XFG.BufferUsage.None);

			_bufferBytes = new byte[ sizeInBytes ];
			_bufferBytes.Initialize();
		}