| 488 | } |
| 489 | |
| 490 | static RwCamera* CameraCreate(S32 a, S32 b, S32 c) |
| 491 | { |
| 492 | RwCamera* camera = RwCameraCreate(); |
| 493 | if (camera != NULL) |
| 494 | { |
| 495 | _rwObjectHasFrameSetFrame(camera, RwFrameCreate()); |
| 496 | camera->frameBuffer = RwRasterCreate(a, b, 0, 2); |
| 497 | if (c != 0) |
| 498 | { |
| 499 | camera->zBuffer = RwRasterCreate(a, b, 0, 1); |
| 500 | } |
| 501 | if (camera->object.object.parent != NULL) |
| 502 | { |
| 503 | if (camera->frameBuffer != NULL) |
| 504 | { |
| 505 | if ((c == 0) || (camera->zBuffer != NULL)) |
| 506 | { |
| 507 | return camera; |
| 508 | } |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | CameraDestroy(camera); |
| 513 | return NULL; |
| 514 | } |
| 515 | |
| 516 | void CameraDestroy(RwCamera* cam) |
| 517 | { |
no test coverage detected