// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004.  All Rights Reserved
//
// The Wild Magic Library (WM3) source code is supplied under the terms of
// the license agreement http://www.wild-magic.com/License/WildMagic3.pdf and
// may not be copied or disclosed except in accordance with the terms of that
// agreement.

#ifndef SECTION3P4P3B_H
#define SECTION3P4P3B_H

#include "Wm3WindowApplication3.h"
using namespace Wm3;

//#define ONE_SQUARE

class Section3p4p3b : public WindowApplication3
{
    WM3_DECLARE_INITIALIZE;

public:
    Section3p4p3b ();

    virtual bool OnInitialize ();
    virtual void OnTerminate ();
    virtual void OnIdle ();
    virtual bool OnKeyDown (unsigned char ucKey, int iX, int iY);

protected:
    NodePtr m_spkScene;

#ifdef ONE_SQUARE
    TriMeshPtr m_spkMesh;
    TexturePtr m_spkTexture;
#else
    TriMeshPtr m_spkMesh0, m_spkMesh1;
    TexturePtr m_spkTexture0, m_spkTexture1;
#endif
};

WM3_REGISTER_INITIALIZE(Section3p4p3b);

#endif

