SE_Camera* SE_Application::getUICamera() { SE_Scene* scene = mSceneManager->getScene(SE_FRAMEBUFFER_SCENE,"GUI"); if (scene) { return scene->getCamera(); } return NULL; }
/* void SE_Application::setCamera(int index, SE_Camera* camera) { if(index < 0 || index >= MAX_CAMERA_NUM) return; SE_Camera* c = mCameraArray[index]; if(c) delete c; mCameraArray[index] = camera; } SE_Camera* SE_Application::getCamera(int index) { if(index < 0 || index >= MAX_CAMERA_NUM) return NULL; return mCameraArray[index]; } void SE_Application::setCurrentCamera(int index) { if(index < 0 || index >= MAX_CAMERA_NUM) return; mCurrentCamera = mCameraArray[index]; } */ SE_Camera* SE_Application::getCurrentCamera() { //return mCurrentCamera; SE_Scene* scene = mSceneManager->getMainScene(); if (scene) { return scene->getCamera(); } return NULL; }