C:/jkyprian/devel/lib3ds/lib3ds/background.h

00001 /* -*- c -*- */
00002 #ifndef INCLUDED_LIB3DS_BACKGROUND_H
00003 #define INCLUDED_LIB3DS_BACKGROUND_H
00004 /*
00005  * The 3D Studio File Format Library
00006  * Copyright (C) 1996-2007 by Jan Eric Kyprianidis <www.kyprianidis.com>
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: background.h,v 1.8 2007/06/20 17:04:08 jeh 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 
00038 typedef struct Lib3dsBitmap {
00039     Lib3dsBool use;
00040     char name[64];
00041 } Lib3dsBitmap;
00042 
00047 typedef struct Lib3dsSolid {
00048     Lib3dsBool use;
00049     Lib3dsRgb col;
00050 } Lib3dsSolid;
00051 
00056 typedef struct Lib3dsGradient {
00057     Lib3dsBool use;
00058     Lib3dsFloat percent;
00059     Lib3dsRgb top;
00060     Lib3dsRgb middle;
00061     Lib3dsRgb bottom;
00062 } Lib3dsGradient;
00063 
00068 struct Lib3dsBackground {
00069     Lib3dsBitmap bitmap;
00070     Lib3dsSolid solid;
00071     Lib3dsGradient gradient;
00072 };
00073 
00074 extern LIB3DSAPI Lib3dsBool lib3ds_background_read(Lib3dsBackground *background, Lib3dsIo *io);
00075 extern LIB3DSAPI Lib3dsBool lib3ds_background_write(Lib3dsBackground *background, Lib3dsIo *io);
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 #endif
00081 
00082 
00083 
00084 
00085 

Hosted by
SourceForge.net Logo
Generated at Wed Jun 20 18:51:36 2007 by Doxygen 1.5.2