/** * @file ucube/videocontext.h * @brief Public interface of the ucube/videocontext module. * * Copyright 2010 Stephen M. Webb * * This propgram is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 3 of the License, or (at your option) any later * version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., 51 * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef UCUBE_VIDEOCONTEXT_H #define UCUBE_VIDEOCONTEXT_H 1 namespace UCube { /** * A base class for the various platform-specific video contexts. */ class VideoContext { public: VideoContext() : m_depth(32) { } virtual ~VideoContext() { } virtual void swapBuffers() = 0; int depth() const { return m_depth; } virtual int windowid() const { return 0; } protected: int m_depth; }; } // namespace UCube #endif // UCUBE_VIDEOCONTEXT_H