view method
dynamic
view(
- dynamic buffer,
- dynamic offset,
- dynamic length
Implementation
view(buffer, offset, length) {
if (type == 5120) {
return Int8List.view(buffer, offset, length);
} else if (type == 5121) {
return Uint8List.view(buffer, offset, length);
} else if (type == 5122) {
return Int16List.view(buffer, offset, length);
} else if (type == 5123) {
return Uint16List.view(buffer, offset, length);
} else if (type == 5125) {
return Uint32List.view(buffer, offset, length);
} else if (type == 5126) {
return Float32List.view(buffer, offset, length);
} else {
throw (" GLTFHelper GLTypeData view type: ${type} is not support ...");
}
}