コード例 #1
0
 private void InitializeBuffer <T>(VertexBufferObject <T> buffer, bool setPointer)
     where T : struct
 {
     buffer.Create();
     using (buffer.Use())
     {
         buffer.Upload();
         if (setPointer)
         {
             buffer.SetPointer();
         }
     }
 }