/* Filename: Rectangle3D.h Author: Daniel Lioi Date: December 2002 Modified: June 2003 This file accompanies example03.cpp. */ #include class Rectangle3D { public: Rectangle3D(); // default constructor ~Rectangle3D(); // default destructor void setPosition(float x, float y, float z); void setSize(float x, float y, float z); void setYaw( float y, float dy = 0, float ddy = 0); void setPitch( float x, float dx = 0, float ddx = 0); void setRoll( float z, float dz = 0, float ddz = 0); void render(DWORD curTime); private: LPDIRECT3DVERTEXBUFFER8 m_vertBuffer; LPDIRECT3DINDEXBUFFER8 m_indexBuffer; float m_posX, m_posY, m_posZ; float m_width, m_height, m_depth; float m_yaw, m_pitch, m_roll; float m_dYaw, m_dPitch, m_dRoll; float m_ddYaw, m_ddPitch, m_ddRoll; DWORD m_oldTime; };