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

texture.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_TEXTURE_H__
00023 #define __AELIB_AEGFX_TEXTURE_H__
00024 
00025 #include <aedefs.h>
00026 #include <aereg/base.h>
00027 
00028 enum aeTexMode {
00029         REPLACE,
00030         BLEND,
00031         DECAL,
00032         MODULATE
00033 };
00034 
00038 class aeTexture: public aeBase {
00039         AECF_CNDEF
00040 
00041  private:
00042         unsigned char *t_buffer;
00043         unsigned int t_width;
00044         unsigned int t_height;
00045         unsigned int t_bpp;
00046         char *t_string;
00047         aeTexMode t_texmode;
00048 
00049  public:
00055         aeTexture(char *, unsigned char *, unsigned int width, unsigned int height, unsigned int bpp);
00056         ~aeTexture();
00057 
00059         GLuint t_id;
00060 
00067         unsigned char *getData() const { return t_buffer; }
00068 
00075         char *getName() const { return t_string; }
00076 
00083         unsigned int getWidth() const { return t_width; }
00084 
00091         unsigned int getHeight() const { return t_height; }
00092 
00099         int getBitsPerPixel() const { return t_bpp; }
00100 
00107         aeTexMode getTexMode() const { return t_texmode; }
00108 
00122         void setTexMode(aeTexMode);
00123 };
00124 
00125 #endif // __AELIB_AEGFX_TEXTURE_H__

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