createBitmaps function

Future<int> createBitmaps(
  1. int width,
  2. int height
)

Implementation

Future<int> createBitmaps(int width, int height) async {
  int result = -1;

  if (Platform.isAndroid) {
    result = initTexturesAndroid(width, height);
  } else if (Platform.isIOS) {
    result = await initTexturesIosAsync(width, height);
  }

  return result;
}