scummvm/gfx_opengl.h

77 lines
1.8 KiB
C
Raw Normal View History

2010-01-21 20:29:34 +10:30
/* Residual - A 3D game interpreter
*
* Residual is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the AUTHORS
* file distributed with this source distribution.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 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
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* $URL$
* $Id$
*
*/
#ifndef STARK_GFX_OPENGL_H
#define STARK_GFX_OPENGL_H
#include "engines/stark/gfx_base.h"
#ifdef USE_OPENGL
#ifdef SDL_BACKEND
#include <SDL_opengl.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#endif
namespace Stark {
class GfxOpenGL : public GfxBase {
public:
GfxOpenGL();
virtual ~GfxOpenGL();
byte *setupScreen(int screenW, int screenH, bool fullscreen);
const char *getVideoDeviceName();
void setupCamera(float fov, float nclip, float fclip, float roll);
void positionCamera(Graphics::Vector3d pos, Graphics::Vector3d interest);
void clearScreen();
void flipBuffer();
bool isHardwareAccelerated();
void set3DMode();
void translateViewpointStart(Graphics::Vector3d pos, float pitch, float yaw, float roll);
void translateViewpointFinish();
void drawSurface(Graphics::Surface* bmp);
2010-01-21 20:29:34 +10:30
protected:
private:
byte *_storedDisplay;
};
} // end of namespace Stark
#endif
#endif