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

model.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_AEGEOM_MODEL_H__
00023 #define __AELIB_AEGEOM_MODEL_H__
00024 
00025 #define ONLY_INCLUDE_STD
00026 #include <aedefs.h>
00027 #undef ONLY_INCLUDE_STD
00028 #include <aeengine/eflags.h>
00029 #include <aegeom/object.h>
00030 #include <aegfx/material.h>
00031 #include <aemdlldr/mdlstruct.h>
00032 
00037 class aeModel: public aeObject {
00038  protected:
00039         unsigned int numFrames;
00040         unsigned int numVertices;
00041         unsigned int numTriangles;
00042         unsigned int numTexCoords;
00043         modelState_t modelState;
00044         bool isAnimating;
00045 
00046  public:
00047         virtual ~aeModel();
00048 
00054         virtual void draw(aeEngineflags *) = 0;
00055 
00064         virtual int animate(aeEngineflags *) = 0;
00065 
00069         virtual int renderFrame(aeEngineflags *) = 0;
00070 
00078         virtual void setAnimation(int startframe, int endframe, float percent) = 0;
00079 
00085         virtual void setFrame(int keyframe) = 0;
00086 
00093         virtual modelState_t getState() = 0;
00094 
00100         virtual void setState(modelState_t) = 0;
00101 
00108         virtual bool isAnimating();
00109 };
00110 
00111 #endif // __AELIB_AEGEOM_MODEL_H__

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