[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

material.h

00001 /*
00002  *  AE Engine
00003  *
00004  *  Copyright (C) 2003 Riku "Rakkis" Nurminen
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 #ifndef __AELIB_AEGFX_MATERIAL_H__
00023 #define __AELIB_AEGFX_MATERIAL_H__
00024 
00025 #include <aedefs.h>
00026 #include <aegfx/texture.h>
00027 #include <aereg/base.h>
00028 
00033 class aeMaterial: public aeBase {
00034         AECF_CNDEF
00035 
00036  private:
00037         aeTexture *tex1;
00038         aeTexture *tex2;
00039         int texCount;
00040         char *matName;
00041 
00042  public:
00047         aeMaterial();
00048 
00055         aeMaterial(char *, aeTexture *);
00056 
00064         aeMaterial(char *, aeTexture *, aeTexture *);
00065         ~aeMaterial();
00066 
00073         char *getName() const { return matName; }
00074 
00081         aeTexture *getPrimaryTexture() const { return tex1; }
00082 
00089         aeTexture *getSecondaryTexture() const { return tex2; }
00090 
00099         void addTexture(aeTexture *);
00100 
00106         void setPrimaryTexture(aeTexture *);
00107 
00113         void setSecondaryTexture(aeTexture *);
00114 
00122         unsigned int getTextureCount() const { return texCount; }
00123 
00130         bool hasPrimary() const { return ((tex1 != NULL) ? true : false); }
00131 
00138         bool hasSecondary() const { return ((tex2 != NULL) ? true : false); }
00139 };
00140 
00141 #endif // __AELIB_AEGFX_MATERIAL_H__

AE Engine Public API Reference
Generated on Wed Apr 9 09:43:39 2003 by Doxygen.