Exemple #1
0
        public static void PushAttrib(AttribMask mask)
        {
            pushAttribCount++;
            if (pushAttribCount > 100)
            {
                throw new Exception("pushAttrib being called without matching PopAttrib");
            }

            Instance?.PushAttrib(mask);
            CheckForError();
        }
Exemple #2
0
        public static void PopAttrib()
        {
#if USE_OPENGL
            OpenTK.Graphics.OpenGL.GL.PopAttrib();
#else
            AttribMask mask = pushedAttributStack.Pop();
            if ((mask & AttribMask.ViewportBit) == AttribMask.ViewportBit)
            {
                ViewPortData top = viewportStack.Pop();
                Viewport(top.x, top.y, top.width, top.height);
            }
            if (mask != AttribMask.ViewportBit)
            {
                throw new Exception();
            }
#endif
        }
Exemple #3
0
        public static void PushAttrib(AttribMask mask)
        {
#if USE_OPENGL
            OpenTK.Graphics.OpenGL.GL.PushAttrib((OpenTK.Graphics.OpenGL.AttribMask)mask);
#else
            pushedAttributStack.Push(mask);
            if ((mask & AttribMask.ViewportBit) == AttribMask.ViewportBit)
            {
                viewportStack.Push(currentViewport);
            }

            if (mask != AttribMask.ViewportBit)
            {
                throw new Exception();
            }
#endif
        }
Exemple #4
0
 public static void PushAttrib(AttribMask mask)
 {
     Instance?.PushAttrib(mask);
 }
		public static void PushAttrib(AttribMask mask)
		{
			Debug.Assert(Delegates.pglPushAttrib != null, "pglPushAttrib not implemented");
			Delegates.pglPushAttrib((UInt32)mask);
			CallLog("glPushAttrib({0})", mask);
			DebugCheckErrors();
		}
Exemple #6
0
		public static void PushAttrib(AttribMask mask)
		{
#if USE_OPENGL
			if (openGlHardwareAvailable)
			{
				OpenTK.Graphics.OpenGL.GL.PushAttrib((OpenTK.Graphics.OpenGL.AttribMask)mask);
			}
#else
            pushedAttributStack.Push(mask);
            if ((mask & AttribMask.ViewportBit) == AttribMask.ViewportBit)
            {
                viewportStack.Push(currentViewport);
            }

            if (mask != AttribMask.ViewportBit)
            {
                //throw new Exception();
            }
#endif
		}
Exemple #7
0
 internal static extern void glPushAttrib(AttribMask mask);
Exemple #8
0
		internal static extern void glPushAttrib(AttribMask mask);
Exemple #9
0
 public static void Clear(AttribMask mask)
 {
     glClear((int)mask);
 }
Exemple #10
0
 public void PushAttrib(AttribMask mask)
 {
     gl.glPushAttrib((int)mask);
     CheckException();
 }
Exemple #11
0
 public static void PushAttrib(AttribMask mask)
 {
     gl.glPushAttrib((int)mask);
 }
 public void Push(AttribMask mask)
 {
     GI.PushAttrib(mask);
 }
 public static extern void PushAttrib( AttribMask mask );
Exemple #14
0
 public void PushAttrib(AttribMask mask)
 {
     glPushAttrib((int)mask);
 }
Exemple #15
0
 /// <summary>
 /// Push the specified <see cref="AttribMask"/> on the shader
 /// </summary>
 /// <param name="attribute">The <see cref="AttribMask"/> to push</param>
 public void PushAttribute(AttribMask attribute)
 {
     GL.PushAttrib(attribute);
 }