Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

camera.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 * lescegra                                                           *
00003 *                                                                    *
00004 * http://geeky.kicks-ass.org/projects/lescegra.html                  *
00005 *                                                                    *
00006 * Copyright 2003 by Enno Cramer <uebergeek@web.de>                   *
00007 *                                                                    *
00008 * This library is free software; you can redistribute it and/or      *
00009 * modify it under the terms of the GNU Library General Public        *
00010 * License as published by the Free Software Foundation; either       *
00011 * version 2 of the License, or (at your option) any later version.   *
00012 *                                                                    *
00013 * This library is distributed in the hope that it will be useful,    *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of     *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  *
00016 * Library General Public License for more details.                   *
00017 *                                                                    *
00018 * You should have received a copy of the GNU Library General Public  *
00019 * License along with this library; if not, write to the Free         *
00020 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
00021 *********************************************************************/
00022 
00023 #ifndef LSG_CAMERA_H
00024 #define LSG_CAMERA_H 1
00025 
00026 /**
00027  * \file  camera.h
00028  * \brief Abstract camera interface
00029  */
00030 
00031 #include <lescegra/util/object.h>
00032 
00033 #include <lescegra/sg/node.h>
00034 #include <lescegra/util/frustum.h>
00035 
00036 typedef struct LsgCamera LsgCamera;
00037 
00038 /**
00039  * \brief Abstract camera interface
00040  */
00041 struct LsgCamera {
00042     LsgObject super;
00043     /**
00044      * Display a node as seen by the camera.
00045      * @param self      The instance variable
00046      * @param frust     The initial view frustum
00047      * @param node      The node to display
00048      */
00049     void (*display)(LsgCamera* self, LsgFrustum* frust, LsgNode* node);
00050 };
00051 
00052 /**
00053  * Constructor method for LsgCamera. Does nearly nothing.
00054  * @param self      The instance variable
00055  */
00056 void LsgCamera_init(LsgCamera* self);
00057 
00058 /**
00059  * Destructor method for LsgCamera. Reuse parent implementation.
00060  * @param self      The instance variable
00061  */
00062 #define LsgCamera_destroy(self)     LsgObject_destroy(&(self)->super)
00063 
00064 #endif

(c) 2003, by Enno Cramer
generated on 9 Jul 2003
lescegra - doxygen