Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2011, 4:02:07 PM (13 years ago)
Author:
landauf
Message:

added fade in/out effect for space boundaries (alpha value, based on distance)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/modules/objects/SpaceBoundaries.h

    r8645 r8660  
    100100
    101101        private:
    102             struct billboardAdministration{ bool usedYet; Billboard* billy; };
     102            struct BillboardAdministration{ bool usedYet; Billboard* billy; };
    103103           
    104104            // Variabeln::
    105105            std::list<WeakPtr<Pawn> > pawnsIn_; //!< List of the pawns that this instance of SpaceBoundaries has to handle.
    106106           
    107             std::vector<billboardAdministration> billboards_;
     107            std::vector<BillboardAdministration> billboards_;
    108108       
    109109            int reaction_; //!< Values: 0, 1, 2.
     
    122122            float computeDistance(WorldEntity *item); //!< Compute distance to center point.
    123123            void displayWarning(const std::string warnText); //!< TODO: Implement.
    124             void displayBoundaries(Pawn *item);
     124            void displayBoundaries(Pawn *item, float alpha);
    125125            void conditionalBounceBack(Pawn *item, float currentDistance, float dt);
    126126            void bounceBack(Pawn *item, Vector3 *normal, Vector3 *velocity);
     
    129129            void checkWhoIsIn(); //!< Update the list 'pawnsIn_'.
    130130           
    131             void positionBillboard(const Vector3 position); //!< Display a Billboard at the position 'position'.
     131            void positionBillboard(const Vector3& position, float alpha); //!< Display a Billboard at the position 'position'.
    132132            void setBillboardOptions(Billboard *billy);
    133133            void removeAllBillboards(); //!< Hide all elements of '*billboard_' and set their attribute 'usedYet' to 0.
Note: See TracChangeset for help on using the changeset viewer.