Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
 public static unsafe void MatrixMul(libobs.matrix4 matrix)
 {
     libobs.gs_matrix_mul(out matrix);
 }