[Scummvm-cvs-logs] SF.net SVN: scummvm:[50768] scummvm/branches/gsoc2010-opengl/backends

vgvgf at users.sourceforge.net vgvgf at users.sourceforge.net
Fri Jul 9 21:45:57 CEST 2010


Revision: 50768
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50768&view=rev
Author:   vgvgf
Date:     2010-07-09 19:45:56 +0000 (Fri, 09 Jul 2010)

Log Message:
-----------
Added OpenGLSDLGraphicsManager.

Modified Paths:
--------------
    scummvm/branches/gsoc2010-opengl/backends/module.mk

Added Paths:
-----------
    scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/
    scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.cpp
    scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.h


Property changes on: scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl
___________________________________________________________________
Added: svn:ignore
   + .deps
*.o
lib*.a


Added: scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.cpp	                        (rev 0)
+++ scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.cpp	2010-07-09 19:45:56 UTC (rev 50768)
@@ -0,0 +1,73 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program 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 2
+ * of the License, or (at your option) any later version.
+
+ * This program 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "backends/graphics/openglsdl/openglsdl-graphics.h"
+
+#include <SDL.h>
+#include <SDL_opengl.h>
+
+OpenGLSDLGraphicsManager::OpenGLSDLGraphicsManager() {
+
+}
+
+OpenGLSDLGraphicsManager::~OpenGLSDLGraphicsManager() {
+
+}
+
+void OpenGLSDLGraphicsManager::init() {
+	if (SDL_InitSubSystem(SDL_INIT_VIDEO) == -1) {
+		error("Could not initialize SDL: %s", SDL_GetError());
+	}
+
+	OpenGLGraphicsManager::init();
+}
+
+void OpenGLSDLGraphicsManager::forceFullRedraw() {
+
+}
+
+bool OpenGLSDLGraphicsManager::handleScalerHotkeys(const SDL_KeyboardEvent &key) {
+	return false;
+}
+
+bool OpenGLSDLGraphicsManager::isScalerHotkey(const Common::Event &event) {
+	return false;
+}
+
+void OpenGLSDLGraphicsManager::adjustMouseEvent(Common::Event &event) {
+
+}
+
+void OpenGLSDLGraphicsManager::setMousePos(int x, int y) {
+
+}
+
+void OpenGLSDLGraphicsManager::toggleFullScreen() {
+
+}
+
+bool OpenGLSDLGraphicsManager::saveScreenshot(const char *filename) {
+	return false;
+}


Property changes on: scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.cpp
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author URL Id
Added: svn:eol-style
   + native

Added: scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.h
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.h	                        (rev 0)
+++ scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.h	2010-07-09 19:45:56 UTC (rev 50768)
@@ -0,0 +1,50 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program 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 2
+ * of the License, or (at your option) any later version.
+
+ * This program 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 Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef BACKENDS_GRAPHICS_OPENGLSDL_H
+#define BACKENDS_GRAPHICS_OPENGLSDL_H
+
+#include "backends/graphics/opengl/opengl-graphics.h"
+
+/**
+ * SDL OpenGL graphics manager
+ */
+class OpenGLSDLGraphicsManager : public OpenGLGraphicsManager {
+public:
+	OpenGLSDLGraphicsManager();
+	virtual ~OpenGLSDLGraphicsManager();
+
+	virtual void init();
+
+	virtual void forceFullRedraw();
+	virtual bool handleScalerHotkeys(const SDL_KeyboardEvent &key);
+	virtual bool isScalerHotkey(const Common::Event &event);
+	virtual void adjustMouseEvent(Common::Event &event);
+	virtual void setMousePos(int x, int y);
+	virtual void toggleFullScreen();
+	virtual bool saveScreenshot(const char *filename);
+};
+
+#endif


Property changes on: scummvm/branches/gsoc2010-opengl/backends/graphics/openglsdl/openglsdl-graphics.h
___________________________________________________________________
Added: svn:mime-type
   + text/plain
Added: svn:keywords
   + Date Rev Author URL Id
Added: svn:eol-style
   + native

Modified: scummvm/branches/gsoc2010-opengl/backends/module.mk
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/module.mk	2010-07-09 18:45:32 UTC (rev 50767)
+++ scummvm/branches/gsoc2010-opengl/backends/module.mk	2010-07-09 19:45:56 UTC (rev 50768)
@@ -28,6 +28,9 @@
 	graphics/gp2xsdl/gp2xsdl-graphics.o \
 	graphics/gp2xwizsdl/gp2xwizsdl-graphics.o \
 	graphics/linuxmotosdl/linuxmotosdl-graphics.o \
+	graphics/opengl/glerrorcheck.o \
+	graphics/opengl/opengl-graphics.o \
+	graphics/openglsdl/openglsdl-graphics.o \
 	graphics/sdl/sdl-graphics.o \
 	graphics/symbiansdl/symbiansdl-graphics.o \
 	keymapper/action.o \


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list