Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 6:12:07 PM (18 years ago)
Author:
gfilip
Message:

blackscreen orientation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/cameraman.cc

    r10342 r10343  
    1818#include "game_world_data.h"
    1919#include "state.h"
    20 #include "iostream.h"
    2120#include "sound_engine.h"
    2221#include <string>
    2322
    24 ObjectListDefinition(cameraman);
     23ObjectListDefinition(CameraMan);
    2524
    2625
    27 cameraman::cameraman()
     26CameraMan::CameraMan()
    2827{
    29   this->registerObject(this, cameraman::_objectList);
     28  this->registerObject(this, CameraMan::_objectList);
    3029
    3130  this->nearClip = 1.0;
     
    3938
    4039
    41 void cameraman::createCam()
     40void CameraMan::createCam()
    4241{
    4342 // Camera* newCamera=new Camera();
     
    4847}
    4948
    50 void cameraman::setCam(int cameraNo)
     49void CameraMan::setCam(int cameraNo)
    5150{
    5251  if (cameraNo<cameras.size())
     
    5554  State::setCamera(currentCam, currentCam->getTarget());
    5655  OrxSound::SoundEngine::getInstance()->setListener(currentCam);
    57 
     56  this->fadeToBlack->setParent(this->currentCam);
     57  this->fadeToBlack->setRelCoor(3., 0., 0.);
    5858  }
    5959
     
    6161
    6262
    63 void cameraman::testCam()
     63void CameraMan::testCam()
    6464{
    6565cameras[1]->lookAt(currentCam->getTarget());
     
    6868
    6969
    70 void cameraman::moveCurrCam(int x, int y, int z)
     70void CameraMan::moveCurrCam(int x, int y, int z)
    7171{
    7272currentCam->target->trans(x,y,z);
     
    7474
    7575
    76 void cameraman::moveCam(int x, int y, int z, int camNo)
     76void CameraMan::moveCam(int x, int y, int z, int camNo)
    7777{
    7878cameras[camNo]->target->trans(x,y,z);
     
    8080
    8181
    82 void cameraman::changeTarget(int camNo, std::string className, std::string objectName)
     82void CameraMan::changeTarget(int camNo, std::string className, std::string objectName)
    8383{
    8484  BaseObject* object = ObjectListBase::getBaseObject(className, objectName);
     
    8888
    8989
    90 void cameraman::changeCurrTarget(std::string className, std::string objectName)
     90void CameraMan::changeCurrTarget(std::string className, std::string objectName)
    9191{
    9292  BaseObject* object = ObjectListBase::getBaseObject(className, objectName);
     
    9595}
    9696
    97 void cameraman::atachCurrTarget(PNode* target)
     97void CameraMan::atachCurrTarget(PNode* target)
    9898{
    9999  currentCam->target->atach(target);
    100100}
    101101
    102 void cameraman::jumpCam(int x, int y, int z, int camNo)
     102void CameraMan::jumpCam(int x, int y, int z, int camNo)
    103103{
    104104  cameras[camNo]->target->jump(x, y, z);
     
    107107
    108108
    109 void cameraman::setClipRegion(float nearCli, float farCli)
     109void CameraMan::setClipRegion(float nearCli, float farCli)
    110110{
    111111  this->nearClip=nearCli;
     
    117117
    118118
    119 void cameraman::jumpCurrCam(int x, int y, int z)
     119void CameraMan::jumpCurrCam(int x, int y, int z)
    120120{
    121121  currentCam->target->jump(x, y, z);
     
    125125
    126126
    127 void cameraman::togglFade()
     127void CameraMan::togglFade()
    128128{
    129129  if( this->fadeToBlack)
Note: See TracChangeset for help on using the changeset viewer.