示例#1
0
        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);
        }
示例#2
0
 public void BindVertexBuffer(EVertexSteamType index, CVertexBuffer vb)
 {
     SDK_IVertexArray_BindVertexBuffer(CoreObject, index, vb.CoreObject);
 }
示例#3
0
 public void BindVertexBuffer(EVertexSteamType index, CVertexBuffer vb)
 {
     SDK_IGeometryMesh_BindVertexBuffer(CoreObject, index, vb.CoreObject);
 }