Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CToxiD3DRenderer.h

Go to the documentation of this file.
00001 
00009 /* 
00010         ---- Copyright (C) 2002  Jose Eduardo R. Mourão (eduardo_rdm@hotmail.com) ----
00011           
00012         This file is part of ToxiTea.
00013 
00014     ToxiTea is free software; you can redistribute it and/or modify
00015     it under the terms of the GNU General Public License as published by
00016     the Free Software Foundation; either version 2 of the License, or
00017     (at your option) any later version.
00018 
00019     ToxiTea is distributed in the hope that it will be useful,
00020     but WITHOUT ANY WARRANTY; without even the implied warranty of
00021     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022     GNU General Public License for more details.
00023 
00024     You should have received a copy of the GNU General Public License
00025     along with ToxiTea; if not, write to the Free Software
00026     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 
00028         For more information and updates visit: 
00029         http://toxitea.sourceforge.net
00030         or mail to: eduardo_rdm@hotmail.com
00031 
00032         COMPILING AND/OR USING YOU ARE ACCEPTING ALL TERMS ABOVE.
00033         THIS LICENSE CAN BE CHANGED ANY TIME FOR ANY REASON WITHOUT NO COMMUNICATION.
00034 */
00035 
00039 #include "Generals.h"
00040 
00041 #include "CToxiRenderer.h"
00042 
00043 #ifndef _CTOXID3DRENDERER_CLASS_
00044 #define _CTOXID3DRENDERER_CLASS_
00045 
00046 #ifndef _CTOXIWINDOW_CLASS_
00047 #include "CToxiWindow.h"
00048 #endif
00049 
00050 #define TOXID3DRENDERER "CToxiD3DRenderer"
00051 
00052 #ifdef TOXITEA_D3D
00053 
00054 class TOXITEADLL_API CToxiD3DRenderer: public CToxiRenderer {
00055 public:
00056 
00057         IDirect3D8 *D3D8;
00058         IDirect3DDevice8 *D3D8Device;
00059         HRESULT D3D_hr;
00060 
00061         
00062 
00064         CToxiD3DRenderer();
00065 
00067         ~CToxiD3DRenderer();
00068 
00070         void setupRenderer(int _width,int _height,int _bits);
00071         
00073         bool createContext();
00074 
00076         bool killContext();
00077 
00079         void resizeContext();
00080 
00082         int getRendererType();
00083         
00088         void swapBuffers();
00089 
00091         void sampleDrawnScene();
00092 
00094         void sampleInitScene();
00095 
00097         void sampleResizeContext();
00098         
00099 };
00100 #endif
00101 
00102 #endif

Generated on Mon Sep 23 23:07:01 2002 for ToxiTea by doxygen1.2.18