public CVertexBuffer GetVertexBuffer(EVertexSteamType index) { var ptr = SDK_IVertexArray_GetVertexBuffer(CoreObject, index); if (ptr.GetPointer() == IntPtr.Zero) { return(null); } var vb = new CVertexBuffer(ptr); vb.Core_AddRef(); return(vb); }
public void BindVertexBuffer(EVertexSteamType index, CVertexBuffer vb) { SDK_IVertexArray_BindVertexBuffer(CoreObject, index, vb.CoreObject); }
public void BindVertexBuffer(EVertexSteamType index, CVertexBuffer vb) { SDK_IGeometryMesh_BindVertexBuffer(CoreObject, index, vb.CoreObject); }