Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 internal Texture2D(WebGLContext context, int id, int width, int height)
 {
     this.context = context;
     Id           = id;
     Width        = width;
     Height       = height;
     Format       = PixelFormat.RGBA;
 }
Exemplo n.º 3
0
 internal ActiveTexture2DCollection(WebGLContext context, int size)
 {
     this.context  = context;
     this.textures = new Texture2D[size];
 }
Exemplo n.º 4
0
 public WebGLContainer()
 {
     Context = new WebGLContext();
     Width   = 400;
     Height  = 400;
 }
Exemplo n.º 5
0
 public WebGLShaderProgram(WebGLContext context, int id)
 {
     this.Context   = context;
     this.Id        = id;
     this.locations = new Dictionary <string, WebGLAttributeLocation>();
 }