Exemplo n.º 1
0
		public void SetIndexBuffer(Buffer indexBuffer, Format format, int offset)
		{
            DiagnosticUtilities.RaiseEvent(this, SettingIndexBuffer, DiagnosticUtilities.GetID(indexBuffer), format, offset);
			if (format != Format.R16_UInt && format != Format.R32_UInt)
				throw new ArgumentOutOfRangeException("format");
			_indexBufferBinding = new IndexBufferBinding(indexBuffer, format, offset);
		}
Exemplo n.º 2
0
 public void SetIndexBuffer(Buffer indexBuffer, Format format, int offset)
 {
     DiagnosticUtilities.RaiseEvent(this, SettingIndexBuffer, DiagnosticUtilities.GetID(indexBuffer), format, offset);
     if (format != Format.R16_UInt && format != Format.R32_UInt)
     {
         throw new ArgumentOutOfRangeException("format");
     }
     _indexBufferBinding = new IndexBufferBinding(indexBuffer, format, offset);
 }
Exemplo n.º 3
0
		public void GetIndexBuffer(out Buffer indexBuffer, out Format format, out int offset)
		{
			indexBuffer = _indexBufferBinding.Buffer;
			format = _indexBufferBinding.Format;
			offset = _indexBufferBinding.Offset;
		}
Exemplo n.º 4
0
 public void GetIndexBuffer(out Buffer indexBuffer, out Format format, out int offset)
 {
     indexBuffer = _indexBufferBinding.Buffer;
     format      = _indexBufferBinding.Format;
     offset      = _indexBufferBinding.Offset;
 }