Added OpenArena project
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -19,3 +19,6 @@
|
|||||||
[submodule "project/jni/application/gemrb/gemrb"]
|
[submodule "project/jni/application/gemrb/gemrb"]
|
||||||
path = project/jni/application/gemrb/gemrb
|
path = project/jni/application/gemrb/gemrb
|
||||||
url = git://gemrb.git.sourceforge.net/gitroot/gemrb/gemrb
|
url = git://gemrb.git.sourceforge.net/gitroot/gemrb/gemrb
|
||||||
|
[submodule "project/jni/application/openarena/engine"]
|
||||||
|
path = project/jni/application/openarena/engine
|
||||||
|
url = https://github.com/pelya/openarena-engine.git
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
package="com.package.name"
|
package="com.package.name"
|
||||||
android:versionCode="100"
|
android:versionCode="100"
|
||||||
android:versionName="1.0.0 - intiial version"
|
android:versionName="1.0.0 - intiial version"
|
||||||
android:installLocation="preferExternal"
|
android:installLocation="auto"
|
||||||
>
|
>
|
||||||
<application android:label="@string/app_name"
|
<application android:label="@string/app_name"
|
||||||
android:icon="@drawable/icon"
|
android:icon="@drawable/icon"
|
||||||
|
|||||||
47
project/jni/application/openarena/AndroidAppSettings.cfg
Normal file
47
project/jni/application/openarena/AndroidAppSettings.cfg
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# The application settings for Android libSDL port
|
||||||
|
AppSettingVersion=17
|
||||||
|
LibSdlVersion=1.2
|
||||||
|
AppName="OpenArena"
|
||||||
|
AppFullName=ws.openarena.sdl
|
||||||
|
ScreenOrientation=h
|
||||||
|
InhibitSuspend=n
|
||||||
|
AppDataDownloadUrl="Game data|http://10.0.2.2/up/oa-0.8.8-1.zip"
|
||||||
|
VideoDepthBpp=24
|
||||||
|
NeedDepthBuffer=y
|
||||||
|
NeedStencilBuffer=y
|
||||||
|
NeedGles2=n
|
||||||
|
SwVideoMode=n
|
||||||
|
SdlVideoResize=y
|
||||||
|
SdlVideoResizeKeepAspect=n
|
||||||
|
CompatibilityHacks=n
|
||||||
|
CompatibilityHacksStaticInit=n
|
||||||
|
CompatibilityHacksTextInputEmulatesHwKeyboard=n
|
||||||
|
AppUsesMouse=n
|
||||||
|
AppNeedsTwoButtonMouse=n
|
||||||
|
ShowMouseCursor=n
|
||||||
|
ForceRelativeMouseMode=n
|
||||||
|
AppNeedsArrowKeys=y
|
||||||
|
AppNeedsTextInput=y
|
||||||
|
AppUsesJoystick=n
|
||||||
|
AppHandlesJoystickSensitivity=n
|
||||||
|
AppUsesMultitouch=y
|
||||||
|
NonBlockingSwapBuffers=n
|
||||||
|
RedefinedKeys="SPACE RETURN NO_REMAP NO_REMAP SPACE ESCAPE"
|
||||||
|
AppTouchscreenKeyboardKeysAmount=0
|
||||||
|
AppTouchscreenKeyboardKeysAmountAutoFire=0
|
||||||
|
RedefinedKeysScreenKb="0 1 2 3 4 5 6 7 8 9"
|
||||||
|
StartupMenuButtonTimeout=3000
|
||||||
|
HiddenMenuOptions='OptionalDownloadConfig'
|
||||||
|
FirstStartMenuOptions=''
|
||||||
|
MultiABI=n
|
||||||
|
AppVersionCode=101
|
||||||
|
AppVersionName="1.01"
|
||||||
|
ResetSdlConfigForThisVersion=n
|
||||||
|
DeleteFilesOnUpgrade="%"
|
||||||
|
CompiledLibraries="sdl_mixer sdl_image freetype curl"
|
||||||
|
CustomBuildScript=y
|
||||||
|
AppCflags='-O2 -finline-functions'
|
||||||
|
AppLdflags=''
|
||||||
|
AppSubdirsBuild=''
|
||||||
|
AppCmdline=''
|
||||||
|
ReadmeText='^Readme text'
|
||||||
11
project/jni/application/openarena/AndroidBuild.sh
Executable file
11
project/jni/application/openarena/AndroidBuild.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LOCAL_PATH=`dirname $0`
|
||||||
|
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
|
||||||
|
|
||||||
|
../setEnvironment.sh make -j8 -C engine \
|
||||||
|
PLATFORM=android ARCH=arm USE_LOCAL_HEADERS=0 \
|
||||||
|
USE_OPENAL=0 USE_CURL=1 USE_CURL_DLOPEN=0 USE_CODEC_VORBIS=0 USE_MUMBLE=0 USE_FREETYPE=1 \
|
||||||
|
USE_RENDERER_DLOPEN=0 USE_INTERNAL_ZLIB=0 USE_INTERNAL_JPEG=1 HAVE_VM_COMPILED=1 &&
|
||||||
|
mv -f engine/build/release-android-arm/openarena.arm libapplication.so
|
||||||
|
|
||||||
BIN
project/jni/application/openarena/AndroidData/data.zip
Normal file
BIN
project/jni/application/openarena/AndroidData/data.zip
Normal file
Binary file not shown.
1
project/jni/application/openarena/engine
Submodule
1
project/jni/application/openarena/engine
Submodule
Submodule project/jni/application/openarena/engine added at ddeec4e863
1
project/jni/application/openarena/icon.png
Symbolic link
1
project/jni/application/openarena/icon.png
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
engine/misc/quake3-tango.png
|
||||||
@@ -105,7 +105,7 @@ static struct ScreenKbGlState_t
|
|||||||
GLboolean texture2d;
|
GLboolean texture2d;
|
||||||
GLuint textureId;
|
GLuint textureId;
|
||||||
GLfloat color[4];
|
GLfloat color[4];
|
||||||
GLfloat texEnvMode;
|
GLint texEnvMode;
|
||||||
GLboolean blend;
|
GLboolean blend;
|
||||||
GLenum blend1, blend2;
|
GLenum blend1, blend2;
|
||||||
GLint texFilter1, texFilter2;
|
GLint texFilter1, texFilter2;
|
||||||
@@ -121,7 +121,7 @@ static inline void beginDrawingTex()
|
|||||||
oldGlState.texture2d = glIsEnabled(GL_TEXTURE_2D);
|
oldGlState.texture2d = glIsEnabled(GL_TEXTURE_2D);
|
||||||
glGetIntegerv(GL_TEXTURE_BINDING_2D, &oldGlState.textureId);
|
glGetIntegerv(GL_TEXTURE_BINDING_2D, &oldGlState.textureId);
|
||||||
glGetFloatv(GL_CURRENT_COLOR, &(oldGlState.color[0]));
|
glGetFloatv(GL_CURRENT_COLOR, &(oldGlState.color[0]));
|
||||||
glGetTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &oldGlState.texEnvMode);
|
glGetTexEnviv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, &oldGlState.texEnvMode);
|
||||||
oldGlState.blend = glIsEnabled(GL_BLEND);
|
oldGlState.blend = glIsEnabled(GL_BLEND);
|
||||||
glGetIntegerv(GL_BLEND_SRC, &oldGlState.blend1);
|
glGetIntegerv(GL_BLEND_SRC, &oldGlState.blend1);
|
||||||
glGetIntegerv(GL_BLEND_DST, &oldGlState.blend2);
|
glGetIntegerv(GL_BLEND_DST, &oldGlState.blend2);
|
||||||
@@ -151,7 +151,7 @@ static inline void endDrawingTex()
|
|||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
glBindTexture(GL_TEXTURE_2D, oldGlState.textureId);
|
glBindTexture(GL_TEXTURE_2D, oldGlState.textureId);
|
||||||
glColor4f(oldGlState.color[0], oldGlState.color[1], oldGlState.color[2], oldGlState.color[3]);
|
glColor4f(oldGlState.color[0], oldGlState.color[1], oldGlState.color[2], oldGlState.color[3]);
|
||||||
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, oldGlState.texEnvMode);
|
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, oldGlState.texEnvMode);
|
||||||
if( oldGlState.blend == GL_FALSE )
|
if( oldGlState.blend == GL_FALSE )
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glBlendFunc(oldGlState.blend1, oldGlState.blend2);
|
glBlendFunc(oldGlState.blend1, oldGlState.blend2);
|
||||||
|
|||||||
Reference in New Issue
Block a user