Beispiel #1
0
 public void AddVertexBuffer(IVertexBufferObject vertexBufferObject)
 {
     vertexBuffers.Add(vertexBufferObject);
 }
Beispiel #2
0
 public void SetVertexBufferIndex(IVertexBufferObject vertexBufferObject, int newIndex)
 {
     int index = vertexBuffers.IndexOf(vertexBufferObject);
     SetVertexBufferIndex(index, newIndex);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SynchronizedBufferObject{T}" /> class.
 /// </summary>
 /// <param name="bufferObject">The <see cref="IBufferObject{T}"/> to wrap.</param>
 public SynchronizedBufferObject(IVertexBufferObject <T> bufferObject)
 {
     this.bufferObject = bufferObject;
 }
Beispiel #4
0
 public void RemoveVertexBuffer(IVertexBufferObject vertexBufferObject)
 {
     vertexBuffers.Remove(vertexBufferObject);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SynchronizedVertexBufferObject{T}" /> class.
 /// </summary>
 /// <param name="vertexBufferObject">The <see cref="IVertexBufferObject{T}"/> to wrap.</param>
 public SynchronizedVertexBufferObject(IVertexBufferObject <T> vertexBufferObject)
     : base(vertexBufferObject)
 {
     this.vertexBufferObject = vertexBufferObject;
 }