Example #1
0
File: GL.cs Project: mortend/uno
 public void TexImage2D(GLTextureTarget target, int level, GLPixelFormat internalFormat, int width, int height, int border, GLPixelFormat format, GLPixelType type, IntPtr data)
 {
     TKGL.TexImage2D((TextureTarget2d)target, level,
                     (TextureComponentCount)internalFormat, width, height, border,
                     (PixelFormat)format, (PixelType)type,
                     data);
 }
Example #2
0
 public void TexSubImage2D(GLTextureTarget target, int level, int xoffset, int yoffset, int width, int height, GLPixelFormat format, GLPixelType type, IntPtr data)
 {
     GL.TexSubImage2D((TextureTarget)target, level,
                      xoffset, yoffset, width, height,
                      (PixelFormat)format, (PixelType)type,
                      data);
 }
Example #3
0
 public void TexSubImage2D(GLTextureTarget target,
                           int level,
                           int xoffset,
                           int yoffset,
                           int width,
                           int height,
                           GLPixelFormat format,
                           GLPixelType type,
                           IntPtr data)
 {
 }
Example #4
0
 public void BindTexture(GLTextureTarget target, GLTextureHandle texture)
 {
     try
     {
         this.BeginFunc();
         this._gl.BindTexture(target, texture);
     }
     finally
     {
         this.EndFunc();
     }
 }
Example #5
0
 public void GenerateMipmap(GLTextureTarget target)
 {
     try
     {
         this.BeginFunc();
         this._gl.GenerateMipmap(target);
     }
     finally
     {
         this.EndFunc();
     }
 }
Example #6
0
 public void TexSubImage2D(GLTextureTarget target, int level, int xoffset, int yoffset, int width, int height, GLPixelFormat format, GLPixelType type, global::System.IntPtr data)
 {
     try
     {
         this.BeginFunc();
         this._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, data);
     }
     finally
     {
         this.EndFunc();
     }
 }
Example #7
0
 public void TexParameter(GLTextureTarget target, GLTextureParameterName pname, GLTextureParameterValue param)
 {
     try
     {
         this.BeginFunc();
         this._gl.TexParameter(target, pname, param);
     }
     finally
     {
         this.EndFunc();
     }
 }
Example #8
0
        public static void TexSubImage2D(GLTextureTarget target, int level, int xoffset, int yoffset, int width, int height, GLPixelFormat format, GLPixelType type, byte[] data)
        {
            if (data != null)
            {
                global::System.Runtime.InteropServices.GCHandle pin = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned);

                try
                {
                    GL._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pin.AddrOfPinnedObject());
                }
                finally
                {
                    pin.Free();
                }
            }
            else
            {
                GL._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, global::System.IntPtr.Zero);
            }
        }
Example #9
0
File: GL.cs Project: mortend/uno
 public void TexParameter(GLTextureTarget target, GLTextureParameterName pname, GLTextureParameterValue param)
 {
     TKGL.TexParameter((TextureTarget)target, (TextureParameterName)pname, (int)param);
 }
Example #10
0
File: GL.cs Project: mortend/uno
 public void BindTexture(GLTextureTarget target, GLTextureHandle texture)
 {
     TKGL.BindTexture((TextureTarget)target, (int)texture);
 }
Example #11
0
 internal abstract int gluBuild2DMipmaps(GLTextureTarget target, GLInternalPixelFormat internalFormat, int width, int height, GLPixelDataFormat format, GLPixelDataType type, void *data);
Example #12
0
 internal abstract void glTexParameter(GLTextureTarget target, GLTextureParameter pname, int *param);
Example #13
0
 internal abstract void glCopyTexSubImage2D(GLTextureTarget target, int level, int xOffset, int yOffset, int x, int y, int width, int height);
Example #14
0
 internal abstract void glCopyTexSubImage1D(GLTextureTarget target, int level, int xOffset, int x, int y, int width);
Example #15
0
File: GL.cs Project: yongaru/uno
 public static void FramebufferTexture2D(GLFramebufferTarget target, GLFramebufferAttachment attachment, GLTextureTarget textarget, GLTextureHandle texture, int level)
 {
     GL._gl.FramebufferTexture2D(target, attachment, textarget, texture, level);
 }
Example #16
0
File: GL.cs Project: mortend/uno
 public void FramebufferTexture2D(GLFramebufferTarget target, GLFramebufferAttachment attachment, GLTextureTarget textarget, GLTextureHandle texture, int level)
 {
     TKGL.FramebufferTexture2D((FramebufferTarget)target, (FramebufferAttachment)attachment, TextureTarget2d.Texture2D, (int)texture, level);
 }
Example #17
0
File: GL.cs Project: yongaru/uno
 public static void TexParameter(GLTextureTarget target, GLTextureParameterName pname, GLTextureParameterValue param)
 {
     GL._gl.TexParameter(target, pname, param);
 }
Example #18
0
File: GL.cs Project: yongaru/uno
 public static void TexSubImage2D(GLTextureTarget target, int level, int xoffset, int yoffset, int width, int height, GLPixelFormat format, GLPixelType type, global::System.IntPtr data)
 {
     GL._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, data);
 }
Example #19
0
File: GL.cs Project: yongaru/uno
 public static void TexImage2D(GLTextureTarget target, int level, GLPixelFormat internalFormat, int width, int height, int border, GLPixelFormat format, GLPixelType type, global::System.IntPtr data)
 {
     GL._gl.TexImage2D(target, level, internalFormat, width, height, border, format, type, data);
 }
Example #20
0
File: GL.cs Project: yongaru/uno
 public static void GenerateMipmap(GLTextureTarget target)
 {
     GL._gl.GenerateMipmap(target);
 }
Example #21
0
File: GL.cs Project: yongaru/uno
 public static void BindTexture(GLTextureTarget target, GLTextureHandle texture)
 {
     GL._gl.BindTexture(target, texture);
 }
Example #22
0
 public void TexImage2D(GLTextureTarget target, int level, GLPixelFormat internalFormat, int width, int height, int border, GLPixelFormat format, GLPixelType type, IntPtr data)
 {
 }
Example #23
0
File: GL.cs Project: mortend/uno
 public void GenerateMipmap(GLTextureTarget target)
 {
     TKGL.GenerateMipmap((TextureTarget)target);
 }
Example #24
0
 public void GenerateMipmap(GLTextureTarget target)
 {
     glGenerateMipmap((GenerateMipmapTarget)target);
 }
Example #25
0
 public void TexParameter(GLTextureTarget target, GLTextureParameterName pname, GLTextureParameterValue param)
 {
 }
Example #26
0
 public void GenerateMipmap(GLTextureTarget target)
 {
 }
Example #27
0
 internal abstract void glBindTexture(GLTextureTarget target, uint texture);
Example #28
0
 internal abstract void glCopyTexImage2D(GLTextureTarget target, int level, GLInternalPixelFormat internalFormat, int x, int y, int width, int height, int border);
Example #29
0
 public void FramebufferTexture2D(GLFramebufferTarget target, GLFramebufferAttachment attachment, GLTextureTarget textarget, GLTextureHandle texture, int level)
 {
     try
     {
         this.BeginFunc();
         this._gl.FramebufferTexture2D(target, attachment, textarget, texture, level);
     }
     finally
     {
         this.EndFunc();
     }
 }
Example #30
0
 public void BindTexture(GLTextureTarget target, GLTextureHandle texture)
 {
 }