Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2009, 4:52:36 PM (15 years ago)
Author:
Naaduun
Message:

Added own scenemanager to map, added 2 pointer to contain mapentity and mapscenenod to radarviewable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/map/src/orxonox/objects/worldentities/CameraPosition.cc

    r2662 r2913  
    3030#include "CameraPosition.h"
    3131
     32#include <OgreCamera.h>
     33
    3234#include "core/CoreIncludes.h"
    3335#include "core/XMLPort.h"
     
    4446        this->bDrag_ = false;
    4547        this->bAllowMouseLook_ = false;
     48        this->bRenderCamera_ = false;
    4649
    4750        this->setObjectMode(0x0);
     
    5861        XMLPortParam(CameraPosition, "drag", setDrag, getDrag, xmlelement, mode).defaultValues(false);
    5962        XMLPortParam(CameraPosition, "mouselook", setAllowMouseLook, getAllowMouseLook, xmlelement, mode).defaultValues(false);
     63        XMLPortParam(CameraPosition, "rendercamera", setRenderCamera, getRenderCamera, xmlelement, mode).defaultValues(false);
    6064    }
    6165
     
    7074            camera->setDrag(true);
    7175    }
     76
     77    void CameraPosition::attachCamera(Ogre::Camera* camera)
     78    {
     79        this->attachOgreObject(camera);
     80    }
    7281}
Note: See TracChangeset for help on using the changeset viewer.