Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2006, 1:23:47 PM (18 years ago)
Author:
bensch
Message:

Cleanup after merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/importer/terrain/terrain_quad.h

    r9414 r9417  
    11/*
    22        orxonox - the future of 3D-vertical-scrollers
    3  
     3
    44        Copyright (C) 2006 orx
    5  
     5
    66        This program is free software; you can redistribute it and/or modify
    77        it under the terms of the GNU General Public License as published by
    88        the Free Software Foundation; either version 2, or (at your option)
    99        any later version.
    10  
     10
    1111        ### File Specific:
    1212        main programmer: Marco Biasini
    13  
     13
    1414 */
    1515#ifndef _TERRAIN_QUAD_TREE_H
     
    2424
    2525typedef enum { TL_CHILD = 0, TR_CHILD = 1, BL_CHILD = 2, BR_CHILD = 3 } TerrainQuadChild;
    26        
     26
    2727class TerrainQuad {
    2828        public:
    2929                TerrainQuad( Terrain *_owner, int _xOffset, int _zOffset );
    3030                TerrainQuad( Terrain *_owner, int _x0, int _z0, int _x1, int _z1 );
    31                
    32                 virtual ~TerrainQuad( ) 
     31
     32                virtual ~TerrainQuad( )
    3333                {
    3434                        for ( int i = 0; i < 4; ++i ) {
    3535                                if ( !children[i]->isChildless() )
    3636                                        SAVE_DELETE( children[i] );
    37                         }       
     37                        }
    3838                }
    3939                int cull( );
    40                
     40
    4141                /**
    4242                 * Returns the array containing the children quad-nodes of this node in the following
    4343                 * order: top-left, top-right, bottom-left, bottom-right
    4444                 */
    45                 inline pTerrainQuad* getChildren( ) 
    46                 { 
    47                         return children; 
     45                inline pTerrainQuad* getChildren( )
     46                {
     47                        return children;
    4848                }
    49                
     49
    5050                /**
    5151                 * Sets the child-nodes to the specified _children elements.
     
    5656                                children[i] = _children[i];
    5757                }
    58                
     58
    5959                inline bool isChildless() { return ( children[0] == NULL ); }
    60                
     60
    6161                /**
    6262                 * Returns the child node given by _child. The returned node may be null.
    6363                 */
    64                 inline pTerrainQuad getChild( TerrainQuadChild _child ) 
    65                 { 
    66                         return children[_child]; 
     64                inline pTerrainQuad getChild( TerrainQuadChild _child )
     65                {
     66                        return children[_child];
    6767                }
    6868                inline void setScale( Vector _scale )
     
    8888                inline int getWidth() { return width; }
    8989                inline int getHeight() { return height; }
    90                
     90
    9191        protected:
    9292                TerrainQuad( ) {}
Note: See TracChangeset for help on using the changeset viewer.