| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _WebGLRenderingContextWrappingImplementation extends _CanvasRenderingConte
xtWrappingImplementation implements WebGLRenderingContext { | 7 class _WebGLRenderingContextWrappingImplementation extends _CanvasRenderingConte
xtWrappingImplementation implements WebGLRenderingContext { |
| 8 _WebGLRenderingContextWrappingImplementation() : super() {} | 8 _WebGLRenderingContextWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__WebGLRenderingContextWrappingImplementation() native { | 10 static create__WebGLRenderingContextWrappingImplementation() native { |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 _getAttachedShaders(this, program); | 360 _getAttachedShaders(this, program); |
| 361 return; | 361 return; |
| 362 } | 362 } |
| 363 static void _getAttachedShaders(receiver, program) native; | 363 static void _getAttachedShaders(receiver, program) native; |
| 364 | 364 |
| 365 int getAttribLocation(WebGLProgram program, String name) { | 365 int getAttribLocation(WebGLProgram program, String name) { |
| 366 return _getAttribLocation(this, program, name); | 366 return _getAttribLocation(this, program, name); |
| 367 } | 367 } |
| 368 static int _getAttribLocation(receiver, program, name) native; | 368 static int _getAttribLocation(receiver, program, name) native; |
| 369 | 369 |
| 370 void getBufferParameter() { | 370 Object getBufferParameter(int target, int pname) { |
| 371 _getBufferParameter(this); | 371 return _getBufferParameter(this, target, pname); |
| 372 return; | |
| 373 } | 372 } |
| 374 static void _getBufferParameter(receiver) native; | 373 static Object _getBufferParameter(receiver, target, pname) native; |
| 375 | 374 |
| 376 WebGLContextAttributes getContextAttributes() { | 375 WebGLContextAttributes getContextAttributes() { |
| 377 return _getContextAttributes(this); | 376 return _getContextAttributes(this); |
| 378 } | 377 } |
| 379 static WebGLContextAttributes _getContextAttributes(receiver) native; | 378 static WebGLContextAttributes _getContextAttributes(receiver) native; |
| 380 | 379 |
| 381 int getError() { | 380 int getError() { |
| 382 return _getError(this); | 381 return _getError(this); |
| 383 } | 382 } |
| 384 static int _getError(receiver) native; | 383 static int _getError(receiver) native; |
| 385 | 384 |
| 386 void getExtension(String name) { | 385 Object getExtension(String name) { |
| 387 _getExtension(this, name); | 386 return _getExtension(this, name); |
| 388 return; | |
| 389 } | 387 } |
| 390 static void _getExtension(receiver, name) native; | 388 static Object _getExtension(receiver, name) native; |
| 391 | 389 |
| 392 void getFramebufferAttachmentParameter() { | 390 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) { |
| 393 _getFramebufferAttachmentParameter(this); | 391 return _getFramebufferAttachmentParameter(this, target, attachment, pname); |
| 394 return; | |
| 395 } | 392 } |
| 396 static void _getFramebufferAttachmentParameter(receiver) native; | 393 static Object _getFramebufferAttachmentParameter(receiver, target, attachment,
pname) native; |
| 397 | 394 |
| 398 void getParameter() { | 395 Object getParameter(int pname) { |
| 399 _getParameter(this); | 396 return _getParameter(this, pname); |
| 400 return; | |
| 401 } | 397 } |
| 402 static void _getParameter(receiver) native; | 398 static Object _getParameter(receiver, pname) native; |
| 403 | 399 |
| 404 String getProgramInfoLog(WebGLProgram program) { | 400 String getProgramInfoLog(WebGLProgram program) { |
| 405 return _getProgramInfoLog(this, program); | 401 return _getProgramInfoLog(this, program); |
| 406 } | 402 } |
| 407 static String _getProgramInfoLog(receiver, program) native; | 403 static String _getProgramInfoLog(receiver, program) native; |
| 408 | 404 |
| 409 void getProgramParameter() { | 405 Object getProgramParameter(WebGLProgram program, int pname) { |
| 410 _getProgramParameter(this); | 406 return _getProgramParameter(this, program, pname); |
| 411 return; | |
| 412 } | 407 } |
| 413 static void _getProgramParameter(receiver) native; | 408 static Object _getProgramParameter(receiver, program, pname) native; |
| 414 | 409 |
| 415 void getRenderbufferParameter() { | 410 Object getRenderbufferParameter(int target, int pname) { |
| 416 _getRenderbufferParameter(this); | 411 return _getRenderbufferParameter(this, target, pname); |
| 417 return; | |
| 418 } | 412 } |
| 419 static void _getRenderbufferParameter(receiver) native; | 413 static Object _getRenderbufferParameter(receiver, target, pname) native; |
| 420 | 414 |
| 421 String getShaderInfoLog(WebGLShader shader) { | 415 String getShaderInfoLog(WebGLShader shader) { |
| 422 return _getShaderInfoLog(this, shader); | 416 return _getShaderInfoLog(this, shader); |
| 423 } | 417 } |
| 424 static String _getShaderInfoLog(receiver, shader) native; | 418 static String _getShaderInfoLog(receiver, shader) native; |
| 425 | 419 |
| 426 void getShaderParameter() { | 420 Object getShaderParameter(WebGLShader shader, int pname) { |
| 427 _getShaderParameter(this); | 421 return _getShaderParameter(this, shader, pname); |
| 428 return; | |
| 429 } | 422 } |
| 430 static void _getShaderParameter(receiver) native; | 423 static Object _getShaderParameter(receiver, shader, pname) native; |
| 431 | 424 |
| 432 String getShaderSource(WebGLShader shader) { | 425 String getShaderSource(WebGLShader shader) { |
| 433 return _getShaderSource(this, shader); | 426 return _getShaderSource(this, shader); |
| 434 } | 427 } |
| 435 static String _getShaderSource(receiver, shader) native; | 428 static String _getShaderSource(receiver, shader) native; |
| 436 | 429 |
| 437 void getSupportedExtensions() { | 430 Object getTexParameter(int target, int pname) { |
| 438 _getSupportedExtensions(this); | 431 return _getTexParameter(this, target, pname); |
| 439 return; | |
| 440 } | 432 } |
| 441 static void _getSupportedExtensions(receiver) native; | 433 static Object _getTexParameter(receiver, target, pname) native; |
| 442 | 434 |
| 443 void getTexParameter() { | 435 Object getUniform(WebGLProgram program, WebGLUniformLocation location) { |
| 444 _getTexParameter(this); | 436 return _getUniform(this, program, location); |
| 445 return; | |
| 446 } | 437 } |
| 447 static void _getTexParameter(receiver) native; | 438 static Object _getUniform(receiver, program, location) native; |
| 448 | |
| 449 void getUniform() { | |
| 450 _getUniform(this); | |
| 451 return; | |
| 452 } | |
| 453 static void _getUniform(receiver) native; | |
| 454 | 439 |
| 455 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) { | 440 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) { |
| 456 return _getUniformLocation(this, program, name); | 441 return _getUniformLocation(this, program, name); |
| 457 } | 442 } |
| 458 static WebGLUniformLocation _getUniformLocation(receiver, program, name) nativ
e; | 443 static WebGLUniformLocation _getUniformLocation(receiver, program, name) nativ
e; |
| 459 | 444 |
| 460 void getVertexAttrib() { | 445 Object getVertexAttrib(int index, int pname) { |
| 461 _getVertexAttrib(this); | 446 return _getVertexAttrib(this, index, pname); |
| 462 return; | |
| 463 } | 447 } |
| 464 static void _getVertexAttrib(receiver) native; | 448 static Object _getVertexAttrib(receiver, index, pname) native; |
| 465 | 449 |
| 466 int getVertexAttribOffset(int index, int pname) { | 450 int getVertexAttribOffset(int index, int pname) { |
| 467 return _getVertexAttribOffset(this, index, pname); | 451 return _getVertexAttribOffset(this, index, pname); |
| 468 } | 452 } |
| 469 static int _getVertexAttribOffset(receiver, index, pname) native; | 453 static int _getVertexAttribOffset(receiver, index, pname) native; |
| 470 | 454 |
| 471 void hint(int target, int mode) { | 455 void hint(int target, int mode) { |
| 472 _hint(this, target, mode); | 456 _hint(this, target, mode); |
| 473 return; | 457 return; |
| 474 } | 458 } |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 static void _vertexAttribPointer(receiver, indx, size, type, normalized, strid
e, offset) native; | 871 static void _vertexAttribPointer(receiver, indx, size, type, normalized, strid
e, offset) native; |
| 888 | 872 |
| 889 void viewport(int x, int y, int width, int height) { | 873 void viewport(int x, int y, int width, int height) { |
| 890 _viewport(this, x, y, width, height); | 874 _viewport(this, x, y, width, height); |
| 891 return; | 875 return; |
| 892 } | 876 } |
| 893 static void _viewport(receiver, x, y, width, height) native; | 877 static void _viewport(receiver, x, y, width, height) native; |
| 894 | 878 |
| 895 String get typeName() { return "WebGLRenderingContext"; } | 879 String get typeName() { return "WebGLRenderingContext"; } |
| 896 } | 880 } |
| OLD | NEW |