예제 #1
0
 public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color4 color)
 {
     unsafe
     {
         TexEnv(target, pname, &color.R);
     }
 }
예제 #2
0
        public void TexEnv(TextureEnvironmentTarget target, TextureEnvParameter pname, float param)
        {
#if USE_OPENGL
            OpenTK.Graphics.OpenGL.GL.TexEnv((OpenTK.Graphics.OpenGL.TextureEnvTarget)target, (OpenTK.Graphics.OpenGL.TextureEnvParameter)pname, param);
#else
            OpenTK.Graphics.ES11.GL.TexEnv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, param);
#endif
        }
예제 #3
0
        public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, System.Drawing.Color color)
        {
            Color4 c = new Color4(color.R, color.G, color.B, color.A);

            unsafe
            {
                TexEnv(target, pname, &c.R);
            }
        }
예제 #4
0
 public static void TexEnviv(TextureEnvTarget target, TextureEnvParameter pname, int[] @params)
 {
     unsafe
     {
         fixed(int * @params_ptr = @params)
         {
             Interop.Calli((int)target, (int)pname, @params_ptr, TexEnvivAddress);
         }
     }
 }
예제 #5
0
		public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Int32[] @params)
		{
			unsafe {
				fixed (Int32* p_params = @params)
				{
					Debug.Assert(Delegates.pglTexEnviv != null, "pglTexEnviv not implemented");
					Delegates.pglTexEnviv((Int32)target, (Int32)pname, p_params);
					CallLog("glTexEnviv({0}, {1}, {2})", target, pname, @params);
				}
			}
			DebugCheckErrors();
		}
예제 #6
0
 public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color4 color)
 {
     unsafe
     {
         TexEnv(target, pname, &color.R);
     }
 }
예제 #7
0
 public static void glGetTexEnviv(TextureEnvTarget target, TextureEnvParameter pname, ref Int32[] @params)
 {
     i_OpenGL1_0.glGetTexEnviv(target, pname, ref @params);
 }
예제 #8
0
 public static void glTexEnvfv(TextureEnvTarget target, TextureEnvParameter pname, ref Single[] @params)
 {
     i_OpenGL1_0.glTexEnvfv(target, pname, ref @params);
 }
예제 #9
0
 public static void TexEnviv(TextureEnvTarget target, TextureEnvParameter pname, int * @params)
 {
     Interop.Calli((int)target, (int)pname, @params, TexEnvivAddress);
 }
예제 #10
0
		public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, float[] @params)
		{
			unsafe {
				fixed (float* p_params = @params)
				{
					Debug.Assert(Delegates.pglTexEnvfv != null, "pglTexEnvfv not implemented");
					Delegates.pglTexEnvfv((Int32)target, (Int32)pname, p_params);
					LogFunction("glTexEnvfv({0}, {1}, {2})", target, pname, LogValue(@params));
				}
			}
			DebugCheckErrors(null);
		}
예제 #11
0
 internal static extern void glTexEnvi(TextureEnvTarget target, TextureEnvParameter pname, Int32 param);
 public static extern void TexEnvfv( TextureEnvTarget target, TextureEnvParameter pname, float[] @params );
 public static extern void TexEnvf( TextureEnvTarget target, TextureEnvParameter pname, float param );
 public static extern void TexEnvi( TextureEnvTarget target, TextureEnvParameter pname, int param );
예제 #15
0
파일: GlfwGL.cs 프로젝트: lamest/agg-sharp
 public void TexEnv(TextureEnvironmentTarget target, TextureEnvParameter pname, float param)
 {
     glTexEnvf((int)target, (int)pname, param);
 }
		public static void GetMultiTexEnvEXT(Int32 texunit, TextureEnvTarget target, TextureEnvParameter pname, [Out] float[] @params)
		{
			unsafe {
				fixed (float* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetMultiTexEnvfvEXT != null, "pglGetMultiTexEnvfvEXT not implemented");
					Delegates.pglGetMultiTexEnvfvEXT(texunit, (Int32)target, (Int32)pname, p_params);
					LogFunction("glGetMultiTexEnvfvEXT({0}, {1}, {2}, {3})", LogEnumName(texunit), target, pname, LogValue(@params));
				}
			}
			DebugCheckErrors(null);
		}
		public static void MultiTexEnvEXT(Int32 texunit, TextureEnvTarget target, TextureEnvParameter pname, float param)
		{
			Debug.Assert(Delegates.pglMultiTexEnvfEXT != null, "pglMultiTexEnvfEXT not implemented");
			Delegates.pglMultiTexEnvfEXT(texunit, (Int32)target, (Int32)pname, param);
			LogFunction("glMultiTexEnvfEXT({0}, {1}, {2}, {3})", LogEnumName(texunit), target, pname, param);
			DebugCheckErrors(null);
		}
예제 #18
0
파일: GLHelper.cs 프로젝트: KarjamP/SDL2-CS
 public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Color color)
 {
     Color4 c = new Color4(color.R, color.G, color.B, color.A);
     unsafe
     {
         TexEnv(target, pname, &c.R);
     }
 }
예제 #19
0
 internal static extern void glTexEnvfv(TextureEnvTarget target, TextureEnvParameter pname, [OutAttribute] Single * @params);
		public static void GetMultiTexEnvEXT(Int32 texunit, TextureEnvTarget target, TextureEnvParameter pname, [Out] Int32[] @params)
		{
			unsafe {
				fixed (Int32* p_params = @params)
				{
					Debug.Assert(Delegates.pglGetMultiTexEnvivEXT != null, "pglGetMultiTexEnvivEXT not implemented");
					Delegates.pglGetMultiTexEnvivEXT(texunit, (Int32)target, (Int32)pname, p_params);
					CallLog("glGetMultiTexEnvivEXT({0}, {1}, {2}, {3})", texunit, target, pname, @params);
				}
			}
			DebugCheckErrors();
		}
예제 #21
0
 internal static extern void glTexEnviv(TextureEnvTarget target, TextureEnvParameter pname, [OutAttribute] Int32 * @params);
예제 #22
0
		public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, float param)
		{
			Debug.Assert(Delegates.pglTexEnvf != null, "pglTexEnvf not implemented");
			Delegates.pglTexEnvf((Int32)target, (Int32)pname, param);
			LogFunction("glTexEnvf({0}, {1}, {2})", target, pname, param);
			DebugCheckErrors(null);
		}
		public static void MultiTexEnvEXT(Int32 texunit, TextureEnvTarget target, TextureEnvParameter pname, Int32 param)
		{
			Debug.Assert(Delegates.pglMultiTexEnviEXT != null, "pglMultiTexEnviEXT not implemented");
			Delegates.pglMultiTexEnviEXT(texunit, (Int32)target, (Int32)pname, param);
			CallLog("glMultiTexEnviEXT({0}, {1}, {2}, {3})", texunit, target, pname, param);
			DebugCheckErrors();
		}
 public static extern void GetTexEnviv( TextureEnvTarget target, TextureEnvParameter pname, [Out]int[] @params );
 public static unsafe void TexEnvx(this OesFixedPoint thisApi, [Flow(FlowDirection.In)] TextureEnvTarget target, [Flow(FlowDirection.In)] TextureEnvParameter pname, [Count(Computed = "pname"), Flow(FlowDirection.In)] ReadOnlySpan <int> @params)
 {
     // SpanOverloader
     thisApi.TexEnvx(target, pname, in @params.GetPinnableReference());
 }
예제 #26
0
		internal static extern void glTexEnvf(TextureEnvTarget target, TextureEnvParameter pname, Single param);
예제 #27
0
 public static void glTexEnvf(TextureEnvTarget target, TextureEnvParameter pname, Single param)
 {
     i_OpenGL1_0.glTexEnvf(target, pname, param);
 }
예제 #28
0
		internal static extern void glTexEnvfv(TextureEnvTarget target, TextureEnvParameter pname, [OutAttribute] Single* @params);
예제 #29
0
 public static void glTexEnvi(TextureEnvTarget target, TextureEnvParameter pname, Int32 param)
 {
     i_OpenGL1_0.glTexEnvi(target, pname, param);
 }
예제 #30
0
		internal static extern void glTexEnvi(TextureEnvTarget target, TextureEnvParameter pname, Int32 param);
예제 #31
0
 public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, System.Drawing.Color color)
 {
     Color4 c = new Color4(color);
     unsafe
     {
         TexEnv(target, pname, &c.R);
     }
 }
예제 #32
0
		internal static extern void glTexEnviv(TextureEnvTarget target, TextureEnvParameter pname, [OutAttribute] Int32* @params);
예제 #33
0
		public static void TexEnv(TextureEnvTarget target, TextureEnvParameter pname, Int32 param)
		{
			Debug.Assert(Delegates.pglTexEnvi != null, "pglTexEnvi not implemented");
			Delegates.pglTexEnvi((Int32)target, (Int32)pname, param);
			CallLog("glTexEnvi({0}, {1}, {2})", target, pname, param);
			DebugCheckErrors();
		}
예제 #34
0
 internal static extern void glTexEnvf(TextureEnvTarget target, TextureEnvParameter pname, Single param);
예제 #35
0
 public static void TexEnv(TextureEnvironmentTarget target, TextureEnvParameter pname, float param)
 {
     Instance?.TexEnv(target, pname, param);
 }
예제 #36
0
 public static void TexEnvi(TextureEnvTarget target, TextureEnvParameter pname, int param)
 {
     Interop.Calli((int)target, (int)pname, param, TexEnviAddress);
 }