@@ -1054,7 +1054,6 @@ class WebGLRenderingContext extends js.Object {
10541054 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
10551055 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
10561056 * @param level the mipmap level of detail. 0 is the base image.
1057- * @param internalformat the format of the compressed data.
10581057 * @param xoffset the x texel offset into the texture image.
10591058 * @param yoffset the y texel offset into the texture image.
10601059 * @param width the width of the texture image.
@@ -1086,7 +1085,6 @@ class WebGLRenderingContext extends js.Object {
10861085 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
10871086 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
10881087 * @param level the mipmap level of detail. 0 is the base image.
1089- * @param internalformat the format of the data. May be [[WebGLRenderingContext.ALPHA ]], [[WebGLRenderingContext.LUMINANCE ]], [[WebGLRenderingContext.LUMINANCE_ALPHA ]], [[WebGLRenderingContext.RGB ]], or [[WebGLRenderingContext.RGBA ]].
10901088 * @param xoffset the x texel offset into the texture image.
10911089 * @param yoffset the y texel offset into the texture image.
10921090 * @param x the window coordinates of the lower left corner of the framebuffer.
@@ -1342,7 +1340,7 @@ class WebGLRenderingContext extends js.Object {
13421340 * Returns the value of the requested parameter for a buffer.
13431341 *
13441342 * @param target must be [[WebGLRenderingContext.ARRAY_BUFFER ]] or [[WebGLRenderingContext.ELEMENT_ARRAY_BUFFER ]]
1345- * @param value the buffer parameter to retrieve, may be [[WebGLRenderingContext.BUFFER_SIZE ]] or [[WebGLRenderingContext.BUFFER_USAGE ]]
1343+ * @param pname the buffer parameter to retrieve, may be [[WebGLRenderingContext.BUFFER_SIZE ]] or [[WebGLRenderingContext.BUFFER_USAGE ]]
13461344 *
13471345 */
13481346 def getBufferParameter (target : Int , pname : Int ): Int = js.native
@@ -1455,7 +1453,7 @@ class WebGLRenderingContext extends js.Object {
14551453 /**
14561454 * Returns the value of the given texture parameter on the target of the active texture.
14571455 *
1458- * @param target the target to query. May be either [[WebGLRenderingContext.TEXTURE_2D ]] or `TEXTURE_CUBE_MAP' .
1456+ * @param target the target to query. May be either [[WebGLRenderingContext.TEXTURE_2D ]] or `TEXTURE_CUBE_MAP` .
14591457 * @param pname the parameter to query. May be either [[WebGLRenderingContext.TEXTURE_MAG_FILTER ]],
14601458 * [[WebGLRenderingContext.TEXTURE_MIN_FILTER ]], [[WebGLRenderingContext.TEXTURE_WRAP_S ]],
14611459 * or [[WebGLRenderingContext.TEXTURE_WRAP_T ]].
@@ -1541,7 +1539,7 @@ class WebGLRenderingContext extends js.Object {
15411539 /**
15421540 * Specifies the line width.
15431541 */
1544- def lineWidth (width : Int ): Unit = js.native
1542+ def lineWidth (width : Double ): Unit = js.native
15451543
15461544 /**
15471545 * Attempts to link the specified [[WebGLProgram ]].
@@ -1562,7 +1560,7 @@ class WebGLRenderingContext extends js.Object {
15621560 * to them, calculated as `factor`*DZ + r*`units`, where DZ is the change in z based on the polygon's screen area, and r is the minimum value that
15631561 * is guaranteed produce a measurable offset.
15641562 */
1565- def polygonOffset (factor : Int , units : Int ): Unit = js.native
1563+ def polygonOffset (factor : Double , units : Double ): Unit = js.native
15661564
15671565 /**
15681566 * Reads pixels from the framebuffer into `pixels`.
@@ -1696,10 +1694,9 @@ class WebGLRenderingContext extends js.Object {
16961694 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
16971695 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
16981696 * @param level the mipmap level of detail. 0 is the base image.
1699- * @param internalformat the format to store the image.
1700- * @param width the width of the texture image.
1701- * @param height the height of the texture image.
1702- * @param border the border width. Must be 0.
1697+ * @param internalformat the format of the target pixel data.
1698+ * @param format the format of the incoming pixel data.
1699+ * @param type the data type of the pixel data.
17031700 * @param pixels the source image data.
17041701 */
17051702 def texImage2D (target : Int , level : Int , internalformat : Int , format : Int , `type` : Int , pixels : ImageData ): Unit = js.native
@@ -1711,10 +1708,9 @@ class WebGLRenderingContext extends js.Object {
17111708 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
17121709 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
17131710 * @param level the mipmap level of detail. 0 is the base image.
1714- * @param internalformat the format to store the image.
1715- * @param width the width of the texture image.
1716- * @param height the height of the texture image.
1717- * @param border the border width. Must be 0.
1711+ * @param internalformat the format of the target pixel data.
1712+ * @param format the format of the incoming pixel data.
1713+ * @param type the data type of the pixel data.
17181714 * @param pixels the source image data.
17191715 */
17201716 def texImage2D (target : Int , level : Int , internalformat : Int , format : Int , `type` : Int , pixels : HTMLImageElement ): Unit = js.native
@@ -1726,10 +1722,9 @@ class WebGLRenderingContext extends js.Object {
17261722 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
17271723 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
17281724 * @param level the mipmap level of detail. 0 is the base image.
1729- * @param internalformat the format to store the image.
1730- * @param width the width of the texture image.
1731- * @param height the height of the texture image.
1732- * @param border the border width. Must be 0.
1725+ * @param internalformat the format of the target pixel data.
1726+ * @param format the format of the incoming pixel data.
1727+ * @param type the data type of the pixel data.
17331728 * @param pixels the source image data.
17341729 */
17351730 def texImage2D (target : Int , level : Int , internalformat : Int , format : Int , `type` : Int , pixels : HTMLCanvasElement ): Unit = js.native
@@ -1741,10 +1736,9 @@ class WebGLRenderingContext extends js.Object {
17411736 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
17421737 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
17431738 * @param level the mipmap level of detail. 0 is the base image.
1744- * @param internalformat the format to store the image.
1745- * @param width the width of the texture image.
1746- * @param height the height of the texture image.
1747- * @param border the border width. Must be 0.
1739+ * @param internalformat the format of the target pixel data.
1740+ * @param format the format of the incoming pixel data.
1741+ * @param type the data type of the pixel data.
17481742 * @param pixels the source image data.
17491743 */
17501744 def texImage2D (target : Int , level : Int , internalformat : Int , format : Int , `type` : Int , pixels : HTMLVideoElement ): Unit = js.native
@@ -1757,7 +1751,7 @@ class WebGLRenderingContext extends js.Object {
17571751 * [[WebGLRenderingContext.TEXTURE_WRAP_S ]], or [[WebGLRenderingContext.TEXTURE_WRAP_T ]]
17581752 * @param param the value to set. See the corresponding parameters for valid values.
17591753 */
1760- def texParameterf (target : Int , pname : Int , param : Int ): Unit = js.native
1754+ def texParameterf (target : Int , pname : Int , param : Double ): Unit = js.native
17611755
17621756 /**
17631757 * Sets the texture parameter for the active texture unit.
@@ -1776,7 +1770,6 @@ class WebGLRenderingContext extends js.Object {
17761770 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
17771771 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
17781772 * @param level the mipmap level of detail. 0 is the base image.
1779- * @param internalformat the format of the image data.
17801773 * @param xoffset the x texel offset into the texture image.
17811774 * @param yoffset the y texel offset into the texture image.
17821775 * @param width the width of the texture image.
@@ -1792,11 +1785,8 @@ class WebGLRenderingContext extends js.Object {
17921785 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
17931786 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
17941787 * @param level the mipmap level of detail. 0 is the base image.
1795- * @param internalformat desired the format of the image data.
17961788 * @param xoffset the x texel offset into the texture image.
17971789 * @param yoffset the y texel offset into the texture image.
1798- * @param width the width of the texture image.
1799- * @param height the height of the texture image.
18001790 * @param pixels the image data.
18011791 */
18021792 def texSubImage2D (target : Int , level : Int , xoffset : Int , yoffset : Int , format : Int , `type` : Int , pixels : ImageData ): Unit = js.native
@@ -1808,11 +1798,8 @@ class WebGLRenderingContext extends js.Object {
18081798 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
18091799 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
18101800 * @param level the mipmap level of detail. 0 is the base image.
1811- * @param internalformat desired the format of the image data.
18121801 * @param xoffset the x texel offset into the texture image.
18131802 * @param yoffset the y texel offset into the texture image.
1814- * @param width the width of the texture image.
1815- * @param height the height of the texture image.
18161803 * @param pixels the image data.
18171804 */
18181805 def texSubImage2D (target : Int , level : Int , xoffset : Int , yoffset : Int , format : Int , `type` : Int , pixels : HTMLImageElement ): Unit = js.native
@@ -1824,12 +1811,9 @@ class WebGLRenderingContext extends js.Object {
18241811 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
18251812 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
18261813 * @param level the mipmap level of detail. 0 is the base image.
1827- * @param internalformat desired the format of the image data.
18281814 * @param xoffset the x texel offset into the texture image.
18291815 * @param yoffset the y texel offset into the texture image.
1830- * @param width the width of the texture image.
1831- * @param height the height of the texture image.
1832- * @param pixels the image data.
1816+ * @param pixels the image data..
18331817 */
18341818 def texSubImage2D (target : Int , level : Int , xoffset : Int , yoffset : Int , format : Int , `type` : Int , pixels : HTMLCanvasElement ): Unit = js.native
18351819
@@ -1840,11 +1824,8 @@ class WebGLRenderingContext extends js.Object {
18401824 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y ]], [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y ]],
18411825 * [[WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z ]], or [[WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z ]]
18421826 * @param level the mipmap level of detail. 0 is the base image.
1843- * @param internalformat desired the format of the image data.
18441827 * @param xoffset the x texel offset into the texture image.
18451828 * @param yoffset the y texel offset into the texture image.
1846- * @param width the width of the texture image.
1847- * @param height the height of the texture image.
18481829 * @param pixels the image data.
18491830 */
18501831 def texSubImage2D (target : Int , level : Int , xoffset : Int , yoffset : Int , format : Int , `type` : Int , pixels : HTMLVideoElement ): Unit = js.native
0 commit comments