internal IntPtr instance = IntPtr.Zero; //pointer to unmanaged object #endregion Fields #region Constructors public unsafe GSVertexBuffer(libobs.gs_vb_data data, UInt32 flags) { instance = libobs.gs_vertexbuffer_create(out data, flags); if (instance == IntPtr.Zero) throw new ApplicationException("gs_vertexbuffer_create failed"); }
public static unsafe void MatrixMul(libobs.matrix4 matrix) { libobs.gs_matrix_mul(out matrix); }