Esempio 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();
        }
Esempio 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
        }
Esempio n. 3
0
 public bool isTexture(Web.WebGLTexture texture)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public void deleteTexture(Web.WebGLTexture texture)
 {
     throw new NotImplementedException();
 }