From bae043393ca36bade729b4dd4f6e11adf5a22cac Mon Sep 17 00:00:00 2001 From: spixx Date: Sat, 4 Nov 2006 20:51:32 +0000 Subject: [PATCH] not needed (no glut,glui) --- src/openglwindow.h | 151 --------------------------------------------- 1 file changed, 151 deletions(-) delete mode 100644 src/openglwindow.h diff --git a/src/openglwindow.h b/src/openglwindow.h deleted file mode 100644 index 53dbf61..0000000 --- a/src/openglwindow.h +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (C) 2006 Erik Dahlberg -// -// This file is part of LSystem3d. -// -// LSystem3D 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. -// -// LSystem3D 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 LSystem3D; if not, write to the Free Software -// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - - - - -#ifndef OPENGLWINDOW_H -#define OPENGLWINDOW_H - -#include -#include - -#include - -#include "lindenmayersystem.h" -#include "lsystemparameters.h" -#include "model.h" - -using namespace std; - - - -/** - * OpenGL drawing context - */ -class OpenGLWindow -{ -public: - /** - * Constructor - */ - OpenGLWindow(); - - /** - * Destructor - */ - ~OpenGLWindow(); - - /** - * Start generation of l-system data - */ - void generate(); - - /** - * Move camera left - */ - void left(); - - /** - * Move camera right - */ - void right(); - - /** - * Move camera up - */ - void up(); - - /** - * Move camera down - */ - void down(); - - /** - * Move camera forth - */ - void forth(); - - /** - * Move camera back - */ - void back(); - - /** - * Zoom in - */ - void zoomIn(); - - /** - * Zoom out - */ - void zoomOut(); - - /** - * Rotate around y-axis - */ - void rotateY(); - - /** - * Draw l-system model to screen - */ - void draw(); - - /** - * Reset to default view - */ - void defaultView(); - - /** - * Check if live mode is activated - * @return true, if activated - */ - bool liveActivated(); - -protected: - - // Model view - double _xModel, // model coordinate (starting point) - _yModel, - _zModel; - double _scaleModel; // model scale factor - double _yRotationModel; // model rotation - - // L-system - LindenmayerSystem *_lsystem; // l-system generator - Model *_model; // the generated l-system model - LSystemParameters _lsystemParameters; // saves/loads l-system parameters from file - string lsystemParametersPath; // where to find the l-system rules - - // Rendering window - int _window; // the rendering window - bool _busyGenerating; // currently generating? - - // GUI window - GLUI *_glui; // the GUI window - GLUI_EditText *_axiomEditText; // axiom textbox - vector _ruleEditTexts; // rule textboxes - GLUI_Spinner *_angleSpinner; // angle spinner - GLUI_Spinner *_iterationsSpinner; // iteration spinner - GLUI_Checkbox *_liveCheckbox; // live checkbox - int _liveUpdates; // status of live checkbox -}; - - - -#endif -- 2.34.1