public Texture2D(WebGLContext context, int width, int height, PixelFormat format) { this.context = context; Id = context.CreateTexture(width, height, format); Width = width; Height = height; Format = format; }
internal Texture2D(WebGLContext context, int id, int width, int height) { this.context = context; Id = id; Width = width; Height = height; Format = PixelFormat.RGBA; }
internal ActiveTexture2DCollection(WebGLContext context, int size) { this.context = context; this.textures = new Texture2D[size]; }
public WebGLContainer() { Context = new WebGLContext(); Width = 400; Height = 400; }
public WebGLShaderProgram(WebGLContext context, int id) { this.Context = context; this.Id = id; this.locations = new Dictionary <string, WebGLAttributeLocation>(); }