/*****************************************************************************\ * FILE: guiContainer.cpp * * PURPOSE: implementation of the guiContainer class * * Created by Eric Akers, 19 Dec 2003 * * ChangeLog: * ELA - - Initial Working Version * * * * * Copyright (C) 2003 Eric Akers * * 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 \*****************************************************************************/ // Header Files ############################################################# #include #include #include "guiContainer.h" #include "guiObject.h" // Macros ################################################################### // Structures ############################################################### // Class Function Definitions ############################################### guiContainer::guiContainer( int winWidth, int winHeight ) { windowWidth = winWidth; windowHeight = winHeight; } guiContainer::~guiContainer() { for( unsigned int i=0; idraw(); } // Restore the state for each matrix glMatrixMode( GL_PROJECTION ); glPopMatrix(); glMatrixMode( GL_MODELVIEW ); glPopMatrix(); glPopAttrib(); } bool guiContainer::doMouseEvent( Uint8 button, Uint8 state, Uint16 x, Uint16 y ) { for( unsigned int i=0; idoMouseEvent( button, state, x, windowHeight - y ) ) { return true; } } return false; } bool guiContainer::doKeyboardEvent( Uint8 state, SDL_keysym keysym ) { for( unsigned int i=0; idoKeyboardEvent( state, keysym ) ) { return true; } } return false; }