Esempio n. 1
0
        public void DrawArrays(Primitive[] primitives)
        {
            this.CheckUpdate();
            int errorCode = PsmGraphicsContext.DrawArrays2(this.handle, primitives, 0, -1);

            if (errorCode != 0)
            {
                Error.ThrowNativeException(errorCode);
            }
        }
Esempio n. 2
0
        public void DrawArrays(Primitive[] primitives, int first, int count)
        {
            this.CheckUpdate();
            if (count < 0)
            {
                count = int.MaxValue;
            }
            int errorCode = PsmGraphicsContext.DrawArrays2(this.handle, primitives, first, count);

            if (errorCode != 0)
            {
                Error.ThrowNativeException(errorCode);
            }
        }