aboutsummaryrefslogtreecommitdiff
path: root/quake/src/WinQuake/r_vars.cpp
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2009-04-29 11:58:17 -0700
committerJack Palevich <jackpal@google.com>2009-04-29 11:58:17 -0700
commitcabb5dd768714a7df34469a096b5e1aa815a2c22 (patch)
treeac67c3d0df7f86a31bdbc82ccb0feb1d989a30e6 /quake/src/WinQuake/r_vars.cpp
parent9fd67c44777b350dc56f3e70c88963b0d966ffc7 (diff)
downloadquake-cabb5dd768714a7df34469a096b5e1aa815a2c22.tar.gz
Modified Quake to run as an Android application.
+ Add an Android Java application to interface with the Android Java runtime. + Add a downloader activity that enables the application to download the Quake data files from a web server. + Converted to C++. (Not nescessary, just convenient.) + Converted from OpenGL to OpenGL ES 1.0 + Converted from an application to a shared library that's called from Java. + Support Android audio, events, and networking + Add minimal support for running with trackball, touch screen. + Remap key assignments for use with the T-mobile G1 keyboard. Features The UI is clunky, but servicable, at least on a T-mobile G1. You can play the shareware levels, in both single-player and multi-player deathmatches over WiFi. On keyboardless devices you can't do much, other than admire the attract mode and quit. Quake actually contains two source trees: QuakeWorld and WinQuake. The difference is in how the two games implement multiplayer. QuakeWorld is client/server, while WinQuake is peer-to-peer. QuakeWorld has only been partially converted, and is not currently compiled or run. We concentrated on WinQuake because it was able to reliably replay the timedemo demos. We use timedemo in WinQuake to measure OpenGL performance. Historical Note This change is a roll-up of numerous changes that were made in the private Google Android perforce9 tree during the development of Android. It doesn't seem worth trying to preserve the individual commit history, so I'm checking all the changes in at one time. This code snapshot was taken from the Cupcake branch.
Diffstat (limited to 'quake/src/WinQuake/r_vars.cpp')
-rwxr-xr-xquake/src/WinQuake/r_vars.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/quake/src/WinQuake/r_vars.cpp b/quake/src/WinQuake/r_vars.cpp
new file mode 100755
index 0000000..90fe7f5
--- /dev/null
+++ b/quake/src/WinQuake/r_vars.cpp
@@ -0,0 +1,39 @@
+/*
+Copyright (C) 1996-1997 Id Software, Inc.
+
+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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+// r_vars.c: global refresh variables
+
+#include "quakedef.h"
+
+#if !id386
+
+// all global and static refresh variables are collected in a contiguous block
+// to avoid cache conflicts.
+
+//-------------------------------------------------------
+// global refresh variables
+//-------------------------------------------------------
+
+// FIXME: make into one big structure, like cl or sv
+// FIXME: do separately for refresh engine and driver
+
+int r_bmodelactive;
+
+#endif // !id386
+