Summary description for GLHardwareIndexBuffer.
Inheritance: Axiom.Graphics.HardwareIndexBuffer
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <param name="numIndices"></param>
        /// <param name="usage"></param>
        /// <param name="useShadowBuffer"></param>
        /// <returns></returns>
        public override HardwareIndexBuffer CreateIndexBuffer(IndexType type, int numIndices, BufferUsage usage, bool useShadowBuffer)
        {
            GLHardwareIndexBuffer buffer = new GLHardwareIndexBuffer(type, numIndices, usage, useShadowBuffer);

            indexBuffers.Add(buffer);
            return(buffer);
        }
Ejemplo n.º 2
0
		public override HardwareIndexBuffer CreateIndexBuffer( IndexType type, int numIndices, BufferUsage usage,
															   bool useShadowBuffer )
		{
			var buffer = new GLHardwareIndexBuffer( this, type, numIndices, usage, useShadowBuffer );
			lock ( IndexBuffersMutex )
				indexBuffers.Add( buffer );
			return buffer;
		}