MercuryDynTex.h

Go to the documentation of this file.
00001 #ifndef _MERCURY_DYN_TEX
00002 #define _MERCURY_DYN_TEX
00003 
00004 #include "MercuryObject.h"
00005 #include "MercuryCamera.h"
00006 
00007 class MercuryDynTex : public MercuryObject
00008 {
00009 public:
00010     MercuryDynTex();
00011 
00012     virtual void Init();
00013     virtual void Update( const float dTime );
00014     virtual void Prerender();
00015     virtual void CustomRender();
00016     virtual void AttachTexture( const MString & t );
00017     CLASS_RTTI( MercuryDynTex, MercuryObject );
00018 
00019     void ConfigureForOrtho( float LX, float LY, float LZ, float HX, float HY, float HZ )
00020     {
00021         m_bOrtho = true; m_fLX = LX; m_fLY = LY; m_fLZ = LZ; m_fHX = HX; m_fHY = HY; m_fHZ = HZ;
00022     }
00023 
00024     MercuryCamera       Camera;
00025     void AttachToVBO( int iVBO ); 
00026 private:
00027     bool                m_bOrtho;
00028     float               m_fLX, m_fLY, m_fLZ, m_fHX, m_fHY, m_fHZ;
00029     MercuryTexture *    m_pAtt;
00030 //  MercuryTexture *    m_pAttShadow;
00031 };
00032 
00033 #endif
00034 
00035 /*
00036  * Copyright (c) 2007, Charles Lohr
00037  * All rights reserved.
00038  *
00039  * Redistribution and use in source and binary forms, with or
00040  * without modification, are permitted provided that the following
00041  * conditions are met:
00042  *      -       Redistributions of source code must retain the above
00043  *              copyright notice, this list of conditions and the following disclaimer.
00044  *      -       Redistributions in binary form must reproduce the above copyright
00045  *              notice, this list of conditions and the following disclaimer in
00046  *              the documentation and/or other materials provided with the distribution.
00047  *      -       Neither the name of the Mercury Engine nor the names of its
00048  *              contributors may be used to endorse or promote products derived from
00049  *              this software without specific prior written permission.
00050  *
00051  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00052  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00053  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00054  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
00055  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00056  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00057  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00058  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00059  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00060  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00061  */
00062 
00063 

Hosted by SourceForge.net Logo