SetDataFloat() 공개 메소드

public SetDataFloat ( BufferTarget Target, BufferUsageHint Hint, float Data ) : void
Target BufferTarget
Hint BufferUsageHint
Data float
리턴 void
예제 #1
0
 public void GenerateBuffer()
 {
     Buffer = new Buffer(BufferTarget.ArrayBuffer);
     Buffer.SetDataFloat(BufferUsageHint.StaticDraw, Data);
     if (IndexArray == null || IndexArray.Length == 0)
     {
         IndexArray = new uint[Data.Length / VERTEX_SIZE];
         Utility.Utility.RepeatFor(IndexArray.Length, x => IndexArray[x] = (uint)x);
     }
     Empty = false;
 }
예제 #2
0
 public void GenerateBuffers()
 {
     fillBuffer.SetDataFloat(BufferTarget.ArrayBuffer, BufferUsageHint.StaticDraw, fillArray);
     outlineBuffer.SetDataFloat(BufferTarget.ArrayBuffer, BufferUsageHint.StaticDraw, outlineArray);
 }