public RIndexBuffer(RIndexElementSize indexElementSize, int indexCount, RBufferUsage usage, bool dynamic) { this.IndexElementSize = indexElementSize; this.IndexCount = indexCount; this.BufferUsage = usage; _isDynamic = dynamic; Threading.BlockOnUIThread(GenerateIfRequired); }
public RVertexBuffer(RVertexDeclaration vertexDeclaration, int vertexCount, RBufferUsage bufferUsage, bool dynamic) { if (vertexDeclaration == null) { throw new ArgumentNullException("vertexDeclaration", "vertexDeclaration not set! was null."); } this.VertexDeclaration = vertexDeclaration; this.VertexCount = vertexCount; this.BufferUsage = bufferUsage; _isDynamic = dynamic; Threading.BlockOnUIThread(GenerateIfRequired); }
public RVertexBuffer(Type type, int vertexCount, RBufferUsage bufferUsage) : this(RVertexDeclaration.FromType(type), vertexCount, bufferUsage, false) { }
public RVertexBuffer(RVertexDeclaration vertexDeclaration, int vertexCount, RBufferUsage bufferUsage) : this(vertexDeclaration, vertexCount, bufferUsage, false) { }
public RVertexBuffer(Type type, int vertexCount, RBufferUsage bufferUsage, bool dynamic) : this(RVertexDeclaration.FromType(type), vertexCount, bufferUsage, dynamic) { }
public RIndexBuffer(Type type, int indexCount, RBufferUsage usage) : this(SizeForType(type), indexCount, usage, false) { }
public RIndexBuffer(RIndexElementSize indexElementSize, int indexCount, RBufferUsage bufferUsage) : this(indexElementSize, indexCount, bufferUsage, false) { }
public RIndexBuffer(Type type, int indexCount, RBufferUsage usage, bool dynamic) : this(SizeForType(type), indexCount, usage, dynamic) { }