Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3502 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Mar 11, 2005, 6:22:15 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: changed Skysphere to WorldEntity

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skysphere.cc

    r3484 r3502  
    106106void Skysphere::updatePosition(Vector sphereCenter)
    107107{
    108   this->sphereCenter = sphereCenter;
     108  //this->sphereCenter = sphereCenter; /* absolete */
     109  this->absCoordinate = sphereCenter;
    109110}
    110111
     112
     113void Skysphere::tick(float time)
     114{}
    111115
    112116/**
     
    120124  skyMaterial->select();
    121125  glPushMatrix();
    122   glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z);
     126  //glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z); /* absolete */
    123127 
     128  glTranslatef(this->absCoordinate.x,
     129               this->absCoordinate.y,
     130               this->absCoordinate.z);
     131   
     132
    124133  glRotatef(-30, 1, 0, 0);
    125134  glRotatef(95.0f, 0.0f, 0.0f, 1.0f);
  • orxonox/trunk/src/world_entities/skysphere.h

    r3484 r3502  
    1515/* INCLUDES */
    1616#include "p_node.h"
     17#include "world_entity.h"
    1718
    1819/* FORWARD DEFINITION */
     
    2122
    2223//! A Class to handle a SkySphere
    23 class Skysphere : public PNode
     24class Skysphere : public WorldEntity
    2425{
    2526
     
    3334
    3435  void updatePosition(Vector sphereCenter);
    35   void draw();
     36
     37  virtual void draw();
     38  virtual void tick(float time);
    3639
    3740 private:
    3841  GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
    3942  Material *skyMaterial;    //!< A Material for the SkySphere.
     43
    4044  Vector sphereCenter;      //!< Center of the SkySphere.
    4145  float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
Note: See TracChangeset for help on using the changeset viewer.