Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: changed Skysphere to WorldEntity

Location:
orxonox/trunk/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/Makefile.in

    r3493 r3502  
    313313          esac; \
    314314        done; \
    315         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
     315        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/Makefile'; \
    316316        cd $(top_srcdir) && \
    317           $(AUTOMAKE) --gnu  src/Makefile
     317          $(AUTOMAKE) --foreign  src/Makefile
    318318.PRECIOUS: Makefile
    319319Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/Makefile.in

    r3493 r3502  
    181181          esac; \
    182182        done; \
    183         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/Makefile'; \
     183        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/Makefile'; \
    184184        cd $(top_srcdir) && \
    185           $(AUTOMAKE) --gnu  src/lib/Makefile
     185          $(AUTOMAKE) --foreign  src/lib/Makefile
    186186.PRECIOUS: Makefile
    187187Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/graphics/Makefile.in

    r3493 r3502  
    175175          esac; \
    176176        done; \
    177         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/Makefile'; \
     177        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/Makefile'; \
    178178        cd $(top_srcdir) && \
    179           $(AUTOMAKE) --gnu  src/lib/graphics/Makefile
     179          $(AUTOMAKE) --foreign  src/lib/graphics/Makefile
    180180.PRECIOUS: Makefile
    181181Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/graphics/importer/Makefile.in

    r3493 r3502  
    215215          esac; \
    216216        done; \
    217         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile'; \
     217        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile'; \
    218218        cd $(top_srcdir) && \
    219           $(AUTOMAKE) --gnu  src/lib/graphics/importer/Makefile
     219          $(AUTOMAKE) --foreign  src/lib/graphics/importer/Makefile
    220220.PRECIOUS: Makefile
    221221Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/gui/Makefile.in

    r3493 r3502  
    177177          esac; \
    178178        done; \
    179         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/Makefile'; \
     179        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/Makefile'; \
    180180        cd $(top_srcdir) && \
    181           $(AUTOMAKE) --gnu  src/lib/gui/Makefile
     181          $(AUTOMAKE) --foreign  src/lib/gui/Makefile
    182182.PRECIOUS: Makefile
    183183Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/gui/console/Makefile.in

    r3493 r3502  
    203203          esac; \
    204204        done; \
    205         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile'; \
     205        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile'; \
    206206        cd $(top_srcdir) && \
    207           $(AUTOMAKE) --gnu  src/lib/gui/console/Makefile
     207          $(AUTOMAKE) --foreign  src/lib/gui/console/Makefile
    208208.PRECIOUS: Makefile
    209209Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/lib/gui/gui/Makefile.in

    r3493 r3502  
    236236          esac; \
    237237        done; \
    238         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile'; \
     238        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile'; \
    239239        cd $(top_srcdir) && \
    240           $(AUTOMAKE) --gnu  src/lib/gui/gui/Makefile
     240          $(AUTOMAKE) --foreign  src/lib/gui/gui/Makefile
    241241.PRECIOUS: Makefile
    242242Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • orxonox/trunk/src/story_entities/world.cc

    r3475 r3502  
    7272  this->localCamera->destroy();
    7373  this->nullParent->destroy(); 
    74   delete this->skySphere;
     74  //delete this->skySphere;
    7575
    7676  //delete this->trackManager;
     
    225225            // Create SkySphere
    226226            skySphere = new Skysphere("../data/pictures/sky-replace.jpg");
     227            this->localPlayer->addChild(this->skySphere);
    227228
    228229            /*monitor progress*/
     
    277278            // Create SkySphere
    278279            skySphere = new Skysphere("../data/pictures/sky-replace.jpg");
     280            this->localPlayer->addChild(this->skySphere);
    279281
    280282            break;
     
    825827          entity = entities->nextElement();
    826828        }
    827       skySphere->updatePosition(localCamera->absCoordinate);
     829      //skySphere->updatePosition(localCamera->absCoordinate);
    828830     
    829831      /* update tick the rest */
  • 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.