800 |
static private native int impl_ByteVector_shade(int id, int w, int h, int d, |
static private native int impl_ByteVector_shade(int id, int w, int h, int d, |
801 |
int comps, String shaderName, String[] params); |
int comps, String shaderName, String[] params); |
802 |
|
|
803 |
|
// -------------------- TexAccum |
804 |
|
/** An object that can collect information about which sizes |
805 |
|
* a texture was rendered at. |
806 |
|
*/ |
807 |
|
static public class TexAccum extends NonRenderableJavaObject { |
808 |
|
private TexAccum(int id) { |
809 |
|
super(id); |
810 |
|
if(GL.dbg) pa("Create texaccum "+id+"\n"); |
811 |
|
} |
812 |
|
protected void deleteObj() { |
813 |
|
if(GL.dbg) pa("Delete texaccum "+getId()+"\n"); |
814 |
|
impl_TexAccum_delete(getId()); |
815 |
|
} |
816 |
|
public void clear() { |
817 |
|
if(GL.dbg) pa("Clear texaccum "+getId()+"\n"); |
818 |
|
impl_TexAccum_clear(getId()); |
819 |
|
} |
820 |
|
public double get(int mip) { |
821 |
|
return impl_TexAccum_get(getId(), mip); |
822 |
|
} |
823 |
|
} |
824 |
|
static public TexAccum createTexAccum() { |
825 |
|
return new TexAccum(impl_TexAccum_create()); |
826 |
|
} |
827 |
|
static private native int impl_TexAccum_create(); |
828 |
|
static private native void impl_TexAccum_delete(int id); |
829 |
|
static private native double impl_TexAccum_get(int id, int mip); |
830 |
|
static private native void impl_TexAccum_clear(int id); |
831 |
|
|
832 |
|
|
833 |
|
|
834 |
//----------Misc |
//----------Misc |
835 |
|
|