Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2009, 4:11:31 PM (16 years ago)
Author:
landauf
Message:

merged map branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/objects/worldentities/CameraPosition.cc

    r2826 r3089  
    3030#include "CameraPosition.h"
    3131
     32#include <OgreCamera.h>
     33
    3234#include "core/CoreIncludes.h"
    3335#include "core/XMLPort.h"
     
    4547        this->bAllowMouseLook_ = false;
    4648        this->bAbsolute_ = false;
     49        this->bRenderCamera_ = false;
    4750
    4851        this->setObjectMode(0x0);
     
    6063        XMLPortParam(CameraPosition, "mouselook", setAllowMouseLook, getAllowMouseLook, xmlelement, mode).defaultValues(false);
    6164        XMLPortParam(CameraPosition, "absolute", setIsAbsolute, getIsAbsolute, xmlelement, mode).defaultValues(false);
     65        XMLPortParam(CameraPosition, "rendercamera", setRenderCamera, getRenderCamera, xmlelement, mode).defaultValues(false);
    6266    }
    6367
     
    7276            camera->setDrag(true);
    7377    }
     78
     79    void CameraPosition::attachCamera(Ogre::Camera* camera)
     80    {
     81        this->attachOgreObject(camera);
     82    }
    7483}
Note: See TracChangeset for help on using the changeset viewer.