Changeset 156 for trunk/VUT/Ogre/include


Ignore:
Timestamp:
07/06/05 02:36:16 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/Ogre/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h

    r155 r156  
    106106    bool IsBoundingBoxQuery(); 
    107107 
    108         /** Finds visible objects of hierarchy node using occlusion queries 
    109         @param node the current scene node 
    110         @param objs the visible objects 
    111         @param includeChildren if the children of current scene nodes should also be traversed 
    112         */ 
    113         /*virtual bool FindVisibleObjects(GtpVisibility::HierarchyNode *node,    
    114                                                                         InfoContainer<GtpVisibility::MeshInfo> *visibleGeometry,  
    115                                                                         bool includeChildren = false) = 0;*/ 
     108 
    116109protected: 
    117110        /** Renders geometry  
     
    126119        */ 
    127120        void DeleteQueries(); 
    128          
    129         /** Renders bounding box of specified node. 
    130                 @param box the bounding box of the scene node to be rendered  
    131         */ 
    132         void RenderBoundingBox(AxisAlignedBox *box); 
    133121 
    134122        /** Returns pointer to current renderable bounding box geometry. 
     
    138126        /** A pass that prepares an occlusion query. 
    139127                @remark disables depth write, colour write, lighting, 
    140                 vertex and fragment program. 
    141         */ 
     128                vertex and fragment program.*/ 
    142129        //void SetOcclusionPass(); 
    143130 
    144         /** Returns pointer to current renderable half bounding box geometry.*/ 
    145         //SolidHalfBoundingBox *GetSolidHalfBoundingBox(); 
     131        /** Renders given bounding box. 
     132                @param box the bounding box of the scene node to be rendered  
     133        */ 
     134        void RenderBoundingBox(AxisAlignedBox *box); 
    146135 
    147136        /** Renderable of an aabb. 
  • trunk/VUT/Ogre/include/OgreSolidBoundingBox.h

    r117 r156  
    99        no colors, and no lighting. 
    1010*/ 
    11 class SolidBoundingBox : public SimpleRenderable 
     11class __declspec(dllexport) SolidBoundingBox : public SimpleRenderable 
    1212{ 
    1313public: 
     
    3030 
    3131protected: 
    32                 /**  
    33                         Sets the material used for occlusion queries.  
    34                         @remark the material is called "Visibility/QueryMaterial" and 
    35                         uses no lighting, no depth write, and no colours 
    36                 */ 
    37                 void SetOcclusionQueryMaterial(); 
    38         /** Override this method to prevent parent transforms (rotation,translation,scale) 
    39         */ 
    40                 void getWorldTransforms( Matrix4* xform ) const; 
    41         /** @copydoc Renderable::getWorldOrientation */ 
    42         const Quaternion& getWorldOrientation(void) const; 
    43         /** @copydoc Renderable::getWorldPosition */ 
    44         const Vector3& getWorldPosition(void) const; 
     32        /**  
     33                Sets the material used for occlusion queries.  
     34                @remark the material is called "Visibility/QueryMaterial" and 
     35                uses no lighting, no depth write, and no colours 
     36        */ 
     37        void SetOcclusionQueryMaterial(); 
     38 
     39        /** Override this method to prevent parent transforms (rotation,translation,scale) 
     40    */ 
     41        void getWorldTransforms( Matrix4* xform ) const; 
     42    /** @copydoc Renderable::getWorldOrientation */ 
     43    const Quaternion& getWorldOrientation(void) const; 
     44    /** @copydoc Renderable::getWorldPosition */ 
     45    const Vector3& getWorldPosition(void) const; 
    4546                 
    46         /** Builds the wireframe line list. 
    47         */ 
    48                 void setupBoundingBoxVertices(const AxisAlignedBox& aab); 
     47    /** Builds the wireframe line list. 
     48    */ 
     49        void setupBoundingBoxVertices(const AxisAlignedBox& aab); 
    4950 
    50         Real mRadius; 
     51    Real mRadius; 
    5152}; 
    5253 
  • trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h

    r155 r156  
    1111#include "OgrePlatformQueryManager.h" 
    1212#include "VisibilityManager.h" 
     13#include <OgreSolidBoundingBox.h> 
     14 
    1315 
    1416namespace Ogre { 
     
    123125        ShadowTechnique mSavedShadowTechnique; 
    124126 
    125         bool mRenderOnlyBoundingBoxes; 
     127        bool mRenderHierarchyNodes; 
     128 
     129        std::vector<SolidBoundingBox *> mSolidBoxes; 
    126130}; 
    127131 
Note: See TracChangeset for help on using the changeset viewer.