419 |
String internalFormat, String format, |
String internalFormat, String format, |
420 |
String shaderName, String[] params) { |
String shaderName, String[] params) { |
421 |
return impl_Texture_shade(getId(), w, h, d, comps, internalFormat, format, |
return impl_Texture_shade(getId(), w, h, d, comps, internalFormat, format, |
422 |
shaderName, params); |
shaderName, params, false); |
423 |
|
} |
424 |
|
|
425 |
|
/** Call libtexture to create the image for each mipmap level separately. |
426 |
|
*/ |
427 |
|
public int shade_all_levels(int w, int h, int d, int comps, |
428 |
|
String internalFormat, String format, |
429 |
|
String shaderName, String[] params) { |
430 |
|
return impl_Texture_shade(getId(), w, h, d, comps, internalFormat, format, |
431 |
|
shaderName, params, true); |
432 |
} |
} |
433 |
|
|
434 |
/** Load a NULL pointer to the texture, which clears the image |
/** Load a NULL pointer to the texture, which clears the image |
471 |
static private native void impl_deleteTexture(int id); |
static private native void impl_deleteTexture(int id); |
472 |
static private native int impl_Texture_shade(int id, int w, int h, int d, int comps, |
static private native int impl_Texture_shade(int id, int w, int h, int d, int comps, |
473 |
String internalFormat, String format, |
String internalFormat, String format, |
474 |
String shaderName, String[] params); |
String shaderName, String[] params, |
475 |
|
boolean shade_all_levels); |
476 |
|
|
477 |
static private native void impl_Texture_loadNull2D(int id, int level, |
static private native void impl_Texture_loadNull2D(int id, int level, |
478 |
String internalFormat, int w, int h, |
String internalFormat, int w, int h, |