Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2006, 3:49:03 PM (17 years ago)
Author:
gfilip
Message:

little update2

File:
1 edited

Legend:

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

    r10065 r10068  
    2020#include "vector.h"
    2121#include <iostream.h>
    22 
     22#include "state.h"
     23#include "shell_command.h"
    2324
    2425ObjectListDefinition(Camera);
     26
    2527
    2628/**
     
    185187
    186188        //Setting the Camera Eye, lookAt and up Vectors
    187   glLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z,
     189  gluLookAt(cameraPosition.x, cameraPosition.y, cameraPosition.z,
    188190            targetPosition.x, targetPosition.y, targetPosition.z,
    189191            this->upVector.x, this->upVector.y, this->upVector.z);
     
    299301// CAMERA-TARGET //
    300302///////////////////
     303//REATE_FACTORY(CameraTarget);
     304
    301305
    302306ObjectListDefinition(CameraTarget);
     307
     308SHELL_COMMAND(det, CameraTarget, detach);
     309
     310
    303311CameraTarget::CameraTarget()
    304312{
     
    310318
    311319
    312 CameraTarget::detach()
    313 {
    314   State::getCameraTargetNode()->setParentSoft(NULL);
    315 }
    316 
    317 
    318 
    319 
    320 
     320void CameraTarget::detach()
     321{
     322  State::getCameraTargetNode()->setParentSoft(Null);
     323}
     324
     325
     326
     327
     328
Note: See TracChangeset for help on using the changeset viewer.