411 |
shaderName, params, false); |
shaderName, params, false); |
412 |
} |
} |
413 |
|
|
414 |
|
/** Call glGetCompressedTexImage. |
415 |
|
*/ |
416 |
|
public byte[] getCompressedTexImage(int lod) { |
417 |
|
return impl_Texture_getCompressedTexImage(getId(), lod); |
418 |
|
} |
419 |
|
|
420 |
|
/** Call glCompressedTexImage. |
421 |
|
* The length of data is used so it needs to be right. |
422 |
|
*/ |
423 |
|
public void compressedTexImage(int level, String internalFormat, int width, int height, |
424 |
|
int border, byte[] data) { |
425 |
|
impl_Texture_compressedTexImage(getId(), level, internalFormat, width, height, |
426 |
|
border, data); |
427 |
|
} |
428 |
|
|
429 |
/** Call libtexture to create the image for each mipmap level separately. |
/** Call libtexture to create the image for each mipmap level separately. |
430 |
*/ |
*/ |
431 |
public int shade_all_levels(int w, int h, int d, int comps, |
public int shade_all_levels(int w, int h, int d, int comps, |
475 |
level, internalFormat, x, y, w, h, |
level, internalFormat, x, y, w, h, |
476 |
border); |
border); |
477 |
} |
} |
478 |
|
public float[] getParameter(String name) { |
479 |
|
return getGLTexParameterFloat("TEXTURE_2D", getId(), name); |
480 |
|
} |
481 |
|
public float[] getLevelParameter(int level, String name) { |
482 |
|
return getGLTexLevelParameterFloat("TEXTURE_2D", getId(), level, name); |
483 |
|
} |
484 |
|
|
485 |
} |
} |
486 |
|
|
508 |
String target, int level, |
String target, int level, |
509 |
String internalFormat, int x, int y, |
String internalFormat, int x, int y, |
510 |
int w, int h, int border) ; |
int w, int h, int border) ; |
511 |
|
static private native byte[] impl_Texture_getCompressedTexImage(int id, int lod); |
512 |
|
static private native void impl_Texture_compressedTexImage(int id, int level, String internalFormat, |
513 |
|
int width, int height, int border, byte[] data); |
514 |
|
|
515 |
//--------- OpenGL Program |
//--------- OpenGL Program |
516 |
/** An OpenGL program object. |
/** An OpenGL program object. |
717 |
return impl_ByteVector_shade(getId(), w, h, d, comps, shaderName, params); |
return impl_ByteVector_shade(getId(), w, h, d, comps, shaderName, params); |
718 |
} |
} |
719 |
|
|
720 |
|
|
721 |
} |
} |
722 |
/** Create a new bytevector of size 0. |
/** Create a new bytevector of size 0. |
723 |
*/ |
*/ |