예제 #1
0
 public void AddVertexBuffer(IVertexBufferObject vertexBufferObject)
 {
     vertexBuffers.Add(vertexBufferObject);
 }
예제 #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;
 }
예제 #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;
 }