Changeset 3020 for GTP/trunk/App/Demos


Ignore:
Timestamp:
10/10/08 09:13:32 (16 years ago)
Author:
mattausch
Message:

removed most leaks

Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp

    r3019 r3020  
    12931293 
    12941294        const float minKey = 0.09f; 
    1295         const float maxKey = 0.45f; 
     1295        const float maxKey = 0.36f; 
    12961296 
    12971297        const float lightIntensity = DotProd(-light->GetDirection(), Vector3::UNIT_Z()); 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Polyhedron.h

    r2929 r3020  
    3737        ~Polyhedron(); 
    3838        /** Computes the intersection of the polyhedron with the given plane 
     39                and returns it as another polyhedron 
    3940                @returns NULL if the geometry is not split by this plane 
    4041        */ 
     
    4243        /** Adds a polygon to the polyhedron. 
    4344        */ 
     45        //void Add(const Polygon3 &poly); 
     46         
    4447        void Add(Polygon3 *poly); 
     48 
    4549        /** Computes bounding box of the geometry. 
    4650        */ 
     
    7074        */ 
    7175        void CollectVertices(VertexArray &vertices) const; 
    72          
    73         inline friend std::ostream &operator<<(std::ostream &s, const Polyhedron &a); 
    74  
    7576        /** Computes polyhedron from a couple of intersecting planes and a bounding box. 
    7677        */ 
    7778        static Polyhedron *CreatePolyhedron(const std::vector<Plane3> &planes, const AxisAlignedBox3 &box); 
     79 
     80        inline friend std::ostream &operator<<(std::ostream &s, const Polyhedron &a); 
     81 
    7882 
    7983protected: 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.h

    r3019 r3020  
    1010 
    1111 
    12 #define _CRTDBG_MAP_ALLOC 
    1312 
    1413class igzstream; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp

    r3017 r3020  
    344344 
    345345        // diffuse component should be more saturated (and less blueish) for high sun positions 
    346         diffuse.x *= 1.2f; 
    347         diffuse.z *= 0.8f; 
     346        diffuse.x *= 1.3f; 
     347        diffuse.z *= 0.7f; 
    348348 
    349349        // scale diffuse component in order to make sky look less bright in relation to 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3019 r3020  
    17711771        DEL_PTR(renderQueue); 
    17721772        DEL_PTR(perfGraph); 
    1773  
    17741773        DEL_PTR(fbo); 
    17751774        DEL_PTR(ssaoShader); 
    1776  
    17771775        DEL_PTR(light); 
    17781776        DEL_PTR(visCamera); 
    1779  
    17801777        DEL_PTR(preetham); 
    1781  
    1782         if (sCgMrtVertexProgram) 
     1778        DEL_PTR(shadowMap); 
     1779        DEL_PTR(shadowTraverser); 
     1780 
     1781        if (sCgMrtVertexProgram)  
    17831782                cgDestroyProgram(sCgMrtVertexProgram); 
     1783 
    17841784        if (RenderState::sCgMrtFragmentProgram) 
    17851785                cgDestroyProgram(RenderState::sCgMrtFragmentProgram); 
     1786 
    17861787        if (RenderState::sCgMrtFragmentTexProgram) 
    17871788                cgDestroyProgram(RenderState::sCgMrtFragmentTexProgram); 
Note: See TracChangeset for help on using the changeset viewer.