public CIndexBuffer GetIndexBuffer() { var ptr = SDK_IGeometryMesh_GetIndexBuffer(CoreObject); if (ptr.GetPointer() == IntPtr.Zero) { return(null); } var ib = new CIndexBuffer(ptr); ib.Core_AddRef(); return(ib); }
public void BindIndexBuffer(CIndexBuffer ib) { SDK_IGeometryMesh_BindIndexBuffer(CoreObject, ib.CoreObject); }