public void texSubImage2D( int target, int level, double xoffset, double yoffset, int format, int type, Web.ImageData pixels) { throw new NotImplementedException(); }
public void drawImage(Web.ImageData image, int offsetX, int offsetY, int width = 0, int height = 0, int canvasOffsetX = 0, int canvasOffsetY = 0, int canvasImageWidth = 0, int canvasImageHeight = 0) { throw new NotImplementedException(); }
public void texImage2D(int target, int level, int internalformat, int format, int type, Web.ImageData pixels) { #if _DEBUG Log.Info(string.Format("texImage2D {0} {1} {2} {3} {4}", target, level, internalformat, format, type)); if (pixels != null) { Log.Info(string.Format("ImageData {0} {1}", pixels.width, pixels.height)); } #endif unsafe { byte[] dataBytes = pixels.dataBytes; fixed(byte *pData = dataBytes) { Gl.glTexImage2D( target, level, internalformat, pixels.width, pixels.height, 0, format, type, pData); } } #if _DEBUG ErrorTest(); #endif }
public void putImageData(Web.ImageData imagedata, int dx, int dy, int dirtyX = 0, int dirtyY = 0, int dirtyWidth = 0, int dirtyHeight = 0) { throw new NotImplementedException(); }