Make dithering an enum.

This commit is contained in:
Mathias Agopian
2019-03-12 13:32:28 -07:00
committed by Mathias Agopian
parent 07bb62490b
commit 6e4491c852
7 changed files with 37 additions and 23 deletions
@@ -124,16 +124,16 @@ Java_com_google_android_filament_View_nGetAntiAliasing(JNIEnv*, jclass,
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_View_nSetDithering(JNIEnv*, jclass,
jlong nativeView, jboolean dithering) {
jlong nativeView, jint dithering) {
View* view = (View*) nativeView;
view->setDithering((bool) dithering);
view->setDithering((View::Dithering) dithering);
}
extern "C" JNIEXPORT jboolean JNICALL
extern "C" JNIEXPORT jint JNICALL
Java_com_google_android_filament_View_nGetDithering(JNIEnv*, jclass,
jlong nativeView) {
View* view = (View*) nativeView;
return (jboolean)view->getDithering();
return (jint)view->getDithering();
}
extern "C" JNIEXPORT void JNICALL