Ejemplo n.º 1
0
        public void framebufferTexture2D(int target, int attachment, int textarget, Web.WebGLTexture texture, int level)
        {
#if _DEBUG
            Log.Info(string.Format("framebufferTexture2D {0} {1} {2} {3} {4}", target, attachment, textarget, texture != null ? texture.Value : 0, level));
#endif

            Gl.glFramebufferTexture2D(target, attachment, textarget, (int)(texture != null ? texture.Value : 0), level);
            ErrorTest();
        }
Ejemplo n.º 2
0
        public void bindTexture(int target, Web.WebGLTexture texture)
        {
            var textureId = (int)(texture != null ? texture.Value : 0);

#if _DEBUG
            Log.Info(string.Format("bindTexture {0} {1}", target, textureId));
#endif

            Gl.glBindTexture(target, textureId);
#if _DEBUG
            ErrorTest();
#endif
        }
Ejemplo n.º 3
0
 public bool isTexture(Web.WebGLTexture texture)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public void deleteTexture(Web.WebGLTexture texture)
 {
     throw new NotImplementedException();
 }