/* -*- Objc -*- */ /* * $Id: MapDisplay.h,v 1.1 2003/07/02 16:37:51 el_doc Exp $ * * Copyright (C) 2003 Free Software Foundation, Inc. * * This file is part of GNU Hégémonie. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef MAP_DISPLAY_H #define MAP_DISPLAY_H #include "Map/MapDisplayPoint.h" /** * MapDisplay implements the display of the map using a voxel and * wave surfing algorithm to find visible polygons. */ @class Camera; @interface MapDisplay : MapDisplayPoint { @private coord_t *_previousRay; coord_t *_currentRay; unsigned _previousPosition; unsigned _currentPosition; BOOL *_previousVisibleRay; BOOL *_currentVisibleRay; double _currentMaxHeight; double _maxHeight; BOOL _stopRay; int _nbIter; int _step1; int _step2; coord_t _pointNear; int _previousHeightRay; coord_t _camUp; } /** * Display the height field from a camera and with a given number of ray. */ - (void) displayWithCamera: (Camera *)camera numberOfRay: (int)nbRay firstStep: (int)step1 secondStep: (int)step2; @end #endif /* MAP_DISPLAY_H */