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