Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# camera.h

Go to the documentation of this file.

    00001 /* -*- c -*- */
    00002 #ifndef INCLUDED_LIB3DS_CAMERA_H
    00003 #define INCLUDED_LIB3DS_CAMERA_H
    00004 /*
    00005  * The 3D Studio File Format Library
    00006  * Copyright (C) 1996-2001 by J.E. Hoffmann <je-h@gmx.net>
    00007  * All rights reserved.
    00008  *
    00009  * This program is  free  software;  you can redistribute it and/or modify it
    00010  * under the terms of the  GNU Lesser General Public License  as published by
    00011  * the  Free Software Foundation;  either version 2.1 of the License,  or (at
    00012  * your option) any later version.
    00013  *
    00014  * This  program  is  distributed in  the  hope that it will  be useful,  but
    00015  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    00016  * or  FITNESS FOR A  PARTICULAR PURPOSE.  See the  GNU Lesser General Public
    00017  * License for more details.
    00018  *
    00019  * You should  have received  a copy of the GNU Lesser General Public License
    00020  * along with  this program;  if not, write to the  Free Software Foundation,
    00021  * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00022  *
    00023  * $Id: camera.h,v 1.1 2005/03/07 11:16:25 Assassin Exp $
    00024  */
    00025
    00026 #ifndef INCLUDED_LIB3DS_TYPES_H
    00027 #include <lib3ds/types.h>
    00028 #endif
    00029
    00030 #ifdef __cplusplus
    00031 extern "C" {
    00032 #endif
    00033
    00034 /*!
    00035  * Camera object
    00036  * \ingroup camera
    00037  */
    00038 struct _Lib3dsCamera {
    00039     Lib3dsCamera *next;
    00040     char name[64];
    00041     Lib3dsVector position;
    00042     Lib3dsVector target;
    00043     Lib3dsFloat roll;
    00044     Lib3dsFloat fov;
    00045     Lib3dsBool see_cone;
    00046     Lib3dsFloat near_range;
    00047     Lib3dsFloat far_range;
    00048 };
    00049
    00050 extern LIB3DSAPI Lib3dsCamera* lib3ds_camera_new(const char *name);
    00051 extern LIB3DSAPI void lib3ds_camera_free(Lib3dsCamera *mesh);
    00052 extern LIB3DSAPI void lib3ds_camera_dump(Lib3dsCamera *camera);
    00053 extern LIB3DSAPI Lib3dsBool lib3ds_camera_read(Lib3dsCamera *camera, Lib3dsIo *io);
    00054 extern LIB3DSAPI Lib3dsBool lib3ds_camera_write(Lib3dsCamera *camera, Lib3dsIo *io);
    00055
    00056 #ifdef __cplusplus
    00057 };
    00058 #endif
    00059 #endif
    00060