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