Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3419 in orxonox.OLD for orxonox/trunk/src/skysphere.h


Ignore:
Timestamp:
Feb 22, 2005, 6:26:03 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: copied dave's SkySphere into the Trunk
done it with svn copy, and implemented the Class into the world.cc
it works perfectly

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/skysphere.h

    r3416 r3419  
    1313#define _SKYSPHERE_H
    1414
     15/* INCLUDES */
     16#include "p_node.h"
    1517
    16 #include "importer/material.h"
    17 #include "p_node.h"
    18 #include "world_entity.h"
     18/* FORWARD DEFINITION */
     19class Material;
     20class Vector;
    1921
    2022//! A Class to handle a SkySphere
    2123class Skysphere: public PNode
    2224{
    23 
    24 
    2525 private:
    2626  GLUquadricObj *sphereObj;
    27   float a,b,c;       //!< Parameters to hold the Position of the SkySphere
    28   Material *sky;     //!< A Material for the Sky
    29  
     27  Vector sphereCenter; //!< Center of the Skysphere
     28  Material *sky;       //!< A Material for the Sky
    3029 
    3130 public:
    3231  Skysphere();
     32  Skysphere(char* fileName);
    3333  ~Skysphere();
    34  
    35  
    36  
    37  
    38   void updatePosition(float x,float y,float z);
     34
     35  void updatePosition(Vector sphereCenter);
    3936  void draw();
    40  
    41    
    42    
    43    
    44    
     37
     38 private:
     39  void initialize(char* fileName); 
    4540};
    4641
Note: See TracChangeset for help on using the changeset viewer.