Skip to content

Commit

Permalink
Corrected glCompressedTexImage2D method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharshachilakapati committed Aug 20, 2015
1 parent 649b8a3 commit c148470
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions webgl4j/src/main/java/com/shc/webgl4j/client/WebGL10.java
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,10 @@ public static void glCompileShader(int shaderID)
nglCompileShader(WebGLObjectMap.get().toShader(shaderID));
}

public static void glCompressedTexImage2D(int target, int level, int internalFormat, long width, long height,
public static void glCompressedTexImage2D(int target, int level, int internalFormat,
int border, long imageSize, Image image)
{
glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, image.getElement());
glCompressedTexImage2D(target, level, internalFormat, border, imageSize, image.getElement());
}

public static void glCompressedTexImage2D(int target, int level, int internalFormat, long width, long height,
Expand All @@ -588,24 +588,24 @@ public static void glCompressedTexImage2D(int target, int level, int internalFor
nglCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, pixels);
}

public static void glCompressedTexImage2D(int target, int level, int internalFormat, long width, long height,
public static void glCompressedTexImage2D(int target, int level, int internalFormat,
int border, long imageSize, JavaScriptObject JavaScriptObject)
{
checkContextCompatibility();
nglCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, JavaScriptObject);
nglCompressedTexImage2D(target, level, internalFormat,border, imageSize, JavaScriptObject);
}

public static void glCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, long width, long height,
public static void glCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset,
int format, long imageSize, Image image)
{
glCompressedTexSubImage2D(target, level, xOffset, yOffset, width, height, format, imageSize, image.getElement());
glCompressedTexSubImage2D(target, level, xOffset, yOffset, format, imageSize, image.getElement());
}

public static void glCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, long width, long height,
public static void glCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset,
int format, long imageSize, JavaScriptObject data)
{
checkContextCompatibility();
nglCompressedTexSubImage2D(target, level, xOffset, yOffset, width, height, format, imageSize, data);
nglCompressedTexSubImage2D(target, level, xOffset, yOffset, format, imageSize, data);
}

public static void glCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, long width, long height,
Expand Down Expand Up @@ -1649,19 +1649,18 @@ private static native void nglCompileShader(JavaScriptObject shaderID) /*-{
$wnd.gl.compileShader(shaderID);
}-*/;

private static native void nglCompressedTexImage2D(int target, int level, int internalFormat, double width, double height,
private static native void nglCompressedTexImage2D(int target, int level, int internalFormat,
int border, double imageSize, JavaScriptObject JavaScriptObject) /*-{
$wnd.gl.compressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, JavaScriptObject);
$wnd.gl.compressedTexImage2D(target, level, internalFormat, border, imageSize, JavaScriptObject);
}-*/;

private static native void nglCompressedTexImage2D(int target, int level, int internalFormat, double width, double height,
int border, double imageSize, ArrayBufferView pixels) /*-{
$wnd.gl.compressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, pixels);
}-*/;

private static native void nglCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, double width,
double height, int format, double imageSize, JavaScriptObject data) /*-{
$wnd.gl.compressedTexSubImage2D(target, level, xOffset, yOffset, width, height, format, imageSize, data);
private static native void nglCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, int format, double imageSize, JavaScriptObject data) /*-{
$wnd.gl.compressedTexSubImage2D(target, level, xOffset, yOffset, format, imageSize, data);
}-*/;

private static native void nglCompressedTexSubImage2D(int target, int level, int xOffset, int yOffset, double width,
Expand Down

0 comments on commit c148470

Please sign in to comment.