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

d3d9_renderer.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 __AEPLUGIN_AERENDERER_D3D9_RENDERER_H__
00023 #define __AEPLUGIN_AERENDERER_D3D9_RENDERER_H__
00024 
00025 #include <aedefs.h>
00026 #include <aegeom/matrix4.h>
00027 #include <aegeom/vector3.h>
00028 #include <aegfx/color4.h>
00029 #include <aereg/base.h>
00030 #include <aereg/registry.h>
00031 #include <aerenderer/renderer.h>
00032 #include <aerenderer/rendereroptions.h>
00033 #include <aerenderer/renderertypes.h>
00034 #include <aerenderer/renderop.h>
00035 #include <aesys/system.h>
00036 
00043 class aeDirect3D9Renderer: public aeRenderer {
00044  public:
00054         aeDirect3D9Renderer(aeRegistry *reg, bool fullscreen, int winWidth, int winHeight, int winBpp);
00055         ~aeDirect3D9Renderer();
00056 
00062         void initialize();
00063 
00070         void reinitialize();
00071 
00075         void shutdown();
00076 
00082         bool createWindow();
00083 
00087         void closeWindow();
00088 
00099         void setOptions(aeRendererOptions &ropts, bool reinitialize = false);
00100 
00107         void setShadeMode(aeShadeMode sm);
00108 
00116         aeShadeMode getShadeMode() const;
00117 
00125         void addViewport(aeViewport *vp, bool becomesActive = false);
00126 
00132         void removeViewport(const char *vpName);
00133 
00137         void removeAllViewports();
00138 
00146         aeViewport findViewportByName(const char *vpName) const;
00147 
00154         aeViewport getActiveViewport() const;
00155 
00161         void _flushPipeline();
00162 
00168         void _setActiveTextureUnit(int texUnit);
00169 
00175         int _getActiveTextureUnit() const;
00176 
00188         void _setTextureParams(aeRendererUnit targetTex, aeTextureFilterMode tfMode,
00189                                                    aeTextureEnvironment texEnv);
00190 
00199         void _setTextureFilter(aeRendererUnit targetTex, aeTextureFilterMode tfMode);
00200 
00210         aeTextureFilterMode _getTextureFilter(aeRenderUnit targetTex) const;
00211 
00219         void _setTextureEnvironment(aeTextureEnvironment texEnv);
00220 
00228         aeTextureEnvironment _getTextureEnvironment() const;
00229 
00238         void _setDepthBufferParams(bool depthTest, bool depthWrite,
00239                                                            aeDepthBufferFunc depthFunc);
00240 
00246         void _setDepthBufferTest(bool depthTest);
00247 
00253         bool _getDepthBufferTest() const;
00254 
00260         void _setDepthBufferWrite(bool depthWrite);
00261 
00267         bool _getDepthBufferWrite() const;
00268 
00274         void _setDepthBufferFunction(aeDepthBufferFunc depthFunc);
00275 
00281         aeDepthBufferFunc _getDepthBufferFunction() const;
00282 
00291         void _setBlendFunction(aeBlendFunc src, aeBlendFunc dest);
00292 
00298         void _setWorldMatrix(const aeMatrix4 &worldMat);
00299 
00305         void _setViewMatrix(const aeMatrix4 &viewMat);
00306 
00312         void _setProjectionMatrix(const aeMatrix4 &projMat);
00313 
00319         void _pushWorldMatrix();
00320 
00326         void _pushViewMatrix();
00327 
00333         void _pushProjectionMatrix();
00334 
00339         void _popWorldMatrix();
00340 
00345         void _popViewMatrix();
00346 
00351         void _popProjectionMatrix();
00352 
00357         void _prepareFrame();
00358 
00370         void _render(aeRenderOperation &renderOp);
00371 
00376         void _finishFrame();
00377 };
00378 
00379 #endif // __AEPLUGIN_AERENDERER_D3D9_RENDERER_H__

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