├── .gitignore ├── LICENSE ├── Projects └── Android │ ├── AndroidManifest.xml │ ├── android.debug.keystore │ ├── build.bat │ ├── build.gradle │ ├── build.py │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── jni │ ├── Android.mk │ ├── Application.mk │ ├── RTCWVR │ │ ├── RTCWVR_SurfaceView.c │ │ ├── VrClientInfo.h │ │ ├── VrCommon.h │ │ ├── VrCompositor.c │ │ ├── VrCompositor.h │ │ ├── VrCvars.h │ │ ├── VrInput.h │ │ ├── VrInputCommon.c │ │ ├── VrInputDefault.c │ │ ├── VrInputWeaponAlign.c │ │ ├── argtable3.c │ │ ├── argtable3.h │ │ ├── mathlib.c │ │ ├── mathlib.h │ │ └── matrixlib.c │ ├── SupportLibs │ │ └── gl4es │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── Android.mk │ │ │ ├── CHANGELOG.md │ │ │ ├── CMakeLists.txt │ │ │ ├── COMPILE.md │ │ │ ├── LICENSE │ │ │ ├── MEDIA.md │ │ │ ├── README.md │ │ │ ├── USAGE.md │ │ │ ├── _config.yml │ │ │ ├── bc_cat.h │ │ │ ├── include │ │ │ ├── EGL │ │ │ │ ├── egl.h │ │ │ │ ├── eglext.h │ │ │ │ └── eglplatform.h │ │ │ ├── GL │ │ │ │ ├── gl.h │ │ │ │ ├── gl_mangle.h │ │ │ │ ├── glext.h │ │ │ │ ├── glu.h │ │ │ │ ├── glu_mangle.h │ │ │ │ ├── glx.h │ │ │ │ ├── glx_mangle.h │ │ │ │ ├── glxext.h │ │ │ │ └── internal │ │ │ │ │ └── dri_interface.h │ │ │ ├── GLES │ │ │ │ ├── egl.h │ │ │ │ ├── gl.h │ │ │ │ ├── gl2.h │ │ │ │ ├── gl2ext.h │ │ │ │ ├── gl2platform.h │ │ │ │ ├── gl3.h │ │ │ │ ├── gl3ext.h │ │ │ │ ├── gl3platform.h │ │ │ │ ├── glext.h │ │ │ │ └── glplatform.h │ │ │ ├── KHR │ │ │ │ └── khrplatform.h │ │ │ ├── android_debug.h │ │ │ ├── gl4eshint.h │ │ │ └── khash.h │ │ │ ├── media │ │ │ └── minecraft.png │ │ │ ├── refs │ │ │ ├── foobillardplus.0000014748.png │ │ │ ├── glsl_lighting.0000505393.png │ │ │ ├── glxgears.0000008203.png │ │ │ ├── neverball.0000078750.png │ │ │ ├── openra.0000031249.png │ │ │ ├── pointsprite.0000248810.png │ │ │ └── stuntcarracer.0000118817.png │ │ │ ├── spec │ │ │ ├── build │ │ │ ├── gen.py │ │ │ ├── requirements.txt │ │ │ ├── template │ │ │ │ ├── base │ │ │ │ │ ├── base.j2 │ │ │ │ │ ├── copy_packed_call.j2 │ │ │ │ │ ├── fprint.j2 │ │ │ │ │ ├── header.j2 │ │ │ │ │ ├── headers.j2 │ │ │ │ │ ├── indexed_call.j2 │ │ │ │ │ ├── packed_call.j2 │ │ │ │ │ ├── wrap.c.j2 │ │ │ │ │ └── wrap.h.j2 │ │ │ │ ├── client.c.j2 │ │ │ │ ├── eglwrap.c.j2 │ │ │ │ ├── gleswrap.c.j2 │ │ │ │ ├── glextwrap.c.j2 │ │ │ │ ├── glwrap.h.j2 │ │ │ │ ├── glxfuncs.j2 │ │ │ │ ├── host.c.j2 │ │ │ │ └── proxy.h.j2 │ │ │ ├── xml │ │ │ │ └── toyml.py │ │ │ └── yml │ │ │ │ ├── alsa.yml │ │ │ │ ├── egl.yml │ │ │ │ ├── gles-1.1.yml │ │ │ │ ├── gles-2.0.yml │ │ │ │ ├── glext-1.1.yml │ │ │ │ ├── glext-es2-1.1.yml │ │ │ │ ├── glx.yml │ │ │ │ ├── glxext.yml │ │ │ │ ├── my_glx.yml │ │ │ │ ├── opengl.yml │ │ │ │ └── wgl.yml │ │ │ ├── src │ │ │ ├── CMakeLists.txt │ │ │ ├── agl │ │ │ │ ├── agl.c │ │ │ │ ├── agl.h │ │ │ │ ├── amigaos.c │ │ │ │ └── amigaos.h │ │ │ ├── config.h │ │ │ ├── gl │ │ │ │ ├── array.c │ │ │ │ ├── array.h │ │ │ │ ├── attributes.h │ │ │ │ ├── blend.c │ │ │ │ ├── blend.h │ │ │ │ ├── blit.c │ │ │ │ ├── blit.h │ │ │ │ ├── buffers.c │ │ │ │ ├── buffers.h │ │ │ │ ├── build_info.c │ │ │ │ ├── build_info.h │ │ │ │ ├── const.h │ │ │ │ ├── debug.c │ │ │ │ ├── debug.h │ │ │ │ ├── decompress.c │ │ │ │ ├── decompress.h │ │ │ │ ├── depth.c │ │ │ │ ├── depth.h │ │ │ │ ├── directstate.c │ │ │ │ ├── directstate.h │ │ │ │ ├── drawing.c │ │ │ │ ├── enable.c │ │ │ │ ├── enum_info.h │ │ │ │ ├── eval.c │ │ │ │ ├── eval.h │ │ │ │ ├── face.c │ │ │ │ ├── face.h │ │ │ │ ├── fog.c │ │ │ │ ├── fog.h │ │ │ │ ├── fpe.c │ │ │ │ ├── fpe.h │ │ │ │ ├── fpe_shader.c │ │ │ │ ├── fpe_shader.h │ │ │ │ ├── framebuffers.c │ │ │ │ ├── framebuffers.h │ │ │ │ ├── getter.c │ │ │ │ ├── gl4es.c │ │ │ │ ├── gl4es.h │ │ │ │ ├── glcase.h │ │ │ │ ├── gles.h │ │ │ │ ├── glstate.c │ │ │ │ ├── glstate.h │ │ │ │ ├── hint.c │ │ │ │ ├── hint.h │ │ │ │ ├── init.c │ │ │ │ ├── init.h │ │ │ │ ├── light.c │ │ │ │ ├── light.h │ │ │ │ ├── line.c │ │ │ │ ├── line.h │ │ │ │ ├── list.c │ │ │ │ ├── list.h │ │ │ │ ├── listdraw.c │ │ │ │ ├── listrl.c │ │ │ │ ├── loader.c │ │ │ │ ├── loader.h │ │ │ │ ├── logs.h │ │ │ │ ├── math │ │ │ │ │ ├── eval.c │ │ │ │ │ └── eval.h │ │ │ │ ├── matrix.c │ │ │ │ ├── matrix.h │ │ │ │ ├── matvec.c │ │ │ │ ├── matvec.h │ │ │ │ ├── pixel.c │ │ │ │ ├── pixel.h │ │ │ │ ├── planes.c │ │ │ │ ├── planes.h │ │ │ │ ├── pointsprite.c │ │ │ │ ├── pointsprite.h │ │ │ │ ├── preproc.c │ │ │ │ ├── preproc.h │ │ │ │ ├── program.c │ │ │ │ ├── program.h │ │ │ │ ├── queries.c │ │ │ │ ├── queries.h │ │ │ │ ├── raster.c │ │ │ │ ├── raster.h │ │ │ │ ├── render.c │ │ │ │ ├── render.h │ │ │ │ ├── shader.c │ │ │ │ ├── shader.h │ │ │ │ ├── shaderconv.c │ │ │ │ ├── shaderconv.h │ │ │ │ ├── stack.c │ │ │ │ ├── stack.h │ │ │ │ ├── state.h │ │ │ │ ├── stb_dxt_104.h │ │ │ │ ├── stencil.c │ │ │ │ ├── stencil.h │ │ │ │ ├── string_utils.c │ │ │ │ ├── string_utils.h │ │ │ │ ├── stubs.c │ │ │ │ ├── texenv.c │ │ │ │ ├── texenv.h │ │ │ │ ├── texgen.c │ │ │ │ ├── texgen.h │ │ │ │ ├── texture.c │ │ │ │ ├── texture.h │ │ │ │ ├── uniform.c │ │ │ │ ├── uniform.h │ │ │ │ ├── vertexattrib.c │ │ │ │ ├── vertexattrib.h │ │ │ │ └── wrap │ │ │ │ │ ├── gl4es.c │ │ │ │ │ ├── gl4es.h │ │ │ │ │ ├── gles.c │ │ │ │ │ ├── gles.h │ │ │ │ │ ├── glstub.c │ │ │ │ │ ├── skips.h │ │ │ │ │ └── stub.h │ │ │ └── glx │ │ │ │ ├── gbm.c │ │ │ │ ├── gbmfunc.h │ │ │ │ ├── glesfuncs.inc │ │ │ │ ├── glx.c │ │ │ │ ├── glx.h │ │ │ │ ├── glx_gbm.h │ │ │ │ ├── hardext.c │ │ │ │ ├── hardext.h │ │ │ │ ├── lookup.c │ │ │ │ ├── rpi.c │ │ │ │ ├── rpi.h │ │ │ │ ├── streaming.c │ │ │ │ ├── streaming.h │ │ │ │ ├── utils.c │ │ │ │ └── utils.h │ │ │ ├── test.cmake │ │ │ ├── tests │ │ │ ├── test.sh │ │ │ └── tests.sh │ │ │ ├── traces │ │ │ ├── foobillardplus.tgz │ │ │ ├── glsl_lighting.tgz │ │ │ ├── glxgears.tgz │ │ │ ├── neverball.tgz │ │ │ ├── openra.tgz │ │ │ ├── pointsprite.tgz │ │ │ └── stuntcarracer.tgz │ │ │ └── version.h │ └── rtcw │ │ ├── Android.mk │ │ ├── Android_cgame.mk │ │ ├── Android_client.mk │ │ ├── Android_game.mk │ │ ├── Android_ui.mk │ │ ├── COPYING.txt │ │ ├── LICENSE │ │ ├── README.txt │ │ ├── main │ │ └── ui │ │ │ └── menudef.h │ │ ├── src │ │ ├── Backup │ │ │ └── wolf.sln │ │ ├── android │ │ │ ├── android-jni.cpp │ │ │ ├── android_glimp.c │ │ │ ├── android_local.h │ │ │ ├── android_main.c │ │ │ ├── android_snd.c │ │ │ ├── in_android.c │ │ │ └── in_android.h │ │ ├── botai │ │ │ ├── ai_chat.c │ │ │ ├── ai_chat.h │ │ │ ├── ai_cmd.c │ │ │ ├── ai_cmd.h │ │ │ ├── ai_dmnet.c │ │ │ ├── ai_dmnet.h │ │ │ ├── ai_dmq3.c │ │ │ ├── ai_dmq3.h │ │ │ ├── ai_main.c │ │ │ ├── ai_main.h │ │ │ ├── ai_team.c │ │ │ ├── ai_team.h │ │ │ ├── botai.h │ │ │ ├── chars.h │ │ │ ├── inv.h │ │ │ ├── match.h │ │ │ └── syn.h │ │ ├── botlib │ │ │ ├── aasfile.h │ │ │ ├── be_aas.h │ │ │ ├── be_aas_bsp.h │ │ │ ├── be_aas_bspq3.c │ │ │ ├── be_aas_cluster.c │ │ │ ├── be_aas_cluster.h │ │ │ ├── be_aas_debug.c │ │ │ ├── be_aas_debug.h │ │ │ ├── be_aas_def.h │ │ │ ├── be_aas_entity.c │ │ │ ├── be_aas_entity.h │ │ │ ├── be_aas_file.c │ │ │ ├── be_aas_file.h │ │ │ ├── be_aas_funcs.h │ │ │ ├── be_aas_main.c │ │ │ ├── be_aas_main.h │ │ │ ├── be_aas_move.c │ │ │ ├── be_aas_move.h │ │ │ ├── be_aas_optimize.c │ │ │ ├── be_aas_optimize.h │ │ │ ├── be_aas_reach.c │ │ │ ├── be_aas_reach.h │ │ │ ├── be_aas_route.c │ │ │ ├── be_aas_route.h │ │ │ ├── be_aas_routealt.c │ │ │ ├── be_aas_routealt.h │ │ │ ├── be_aas_routetable.c │ │ │ ├── be_aas_routetable.h │ │ │ ├── be_aas_sample.c │ │ │ ├── be_aas_sample.h │ │ │ ├── be_ai_char.c │ │ │ ├── be_ai_chat.c │ │ │ ├── be_ai_gen.c │ │ │ ├── be_ai_goal.c │ │ │ ├── be_ai_move.c │ │ │ ├── be_ai_weap.c │ │ │ ├── be_ai_weight.c │ │ │ ├── be_ai_weight.h │ │ │ ├── be_ea.c │ │ │ ├── be_interface.c │ │ │ ├── be_interface.h │ │ │ ├── botlib.h │ │ │ ├── botlib.vcproj │ │ │ ├── botlib.vcxproj │ │ │ ├── botlib.vcxproj.filters │ │ │ ├── l_crc.c │ │ │ ├── l_crc.h │ │ │ ├── l_libvar.c │ │ │ ├── l_libvar.h │ │ │ ├── l_log.c │ │ │ ├── l_log.h │ │ │ ├── l_memory.c │ │ │ ├── l_memory.h │ │ │ ├── l_precomp.c │ │ │ ├── l_precomp.h │ │ │ ├── l_script.c │ │ │ ├── l_script.h │ │ │ ├── l_struct.c │ │ │ ├── l_struct.h │ │ │ └── l_utils.h │ │ ├── bspc │ │ │ ├── _files.c │ │ │ ├── aas_areamerging.c │ │ │ ├── aas_areamerging.h │ │ │ ├── aas_cfg.c │ │ │ ├── aas_cfg.h │ │ │ ├── aas_create.c │ │ │ ├── aas_create.h │ │ │ ├── aas_edgemelting.c │ │ │ ├── aas_edgemelting.h │ │ │ ├── aas_facemerging.c │ │ │ ├── aas_facemerging.h │ │ │ ├── aas_file.c │ │ │ ├── aas_file.h │ │ │ ├── aas_gsubdiv.c │ │ │ ├── aas_gsubdiv.h │ │ │ ├── aas_map.c │ │ │ ├── aas_map.h │ │ │ ├── aas_prunenodes.c │ │ │ ├── aas_prunenodes.h │ │ │ ├── aas_store.c │ │ │ ├── aas_store.h │ │ │ ├── be_aas_bspc.c │ │ │ ├── be_aas_bspc.h │ │ │ ├── brushbsp.c │ │ │ ├── bspc.c │ │ │ ├── csg.c │ │ │ ├── faces.c │ │ │ ├── glfile.c │ │ │ ├── l_bsp_ent.c │ │ │ ├── l_bsp_ent.h │ │ │ ├── l_bsp_hl.c │ │ │ ├── l_bsp_hl.h │ │ │ ├── l_bsp_q1.c │ │ │ ├── l_bsp_q1.h │ │ │ ├── l_bsp_q2.c │ │ │ ├── l_bsp_q2.h │ │ │ ├── l_bsp_q3.c │ │ │ ├── l_bsp_q3.h │ │ │ ├── l_bsp_sin.c │ │ │ ├── l_bsp_sin.h │ │ │ ├── l_cmd.c │ │ │ ├── l_cmd.h │ │ │ ├── l_log.c │ │ │ ├── l_log.h │ │ │ ├── l_math.c │ │ │ ├── l_math.h │ │ │ ├── l_mem.c │ │ │ ├── l_mem.h │ │ │ ├── l_poly.c │ │ │ ├── l_poly.h │ │ │ ├── l_qfiles.c │ │ │ ├── l_qfiles.h │ │ │ ├── l_threads.c │ │ │ ├── l_threads.h │ │ │ ├── l_utils.c │ │ │ ├── l_utils.h │ │ │ ├── leakfile.c │ │ │ ├── map.c │ │ │ ├── map_hl.c │ │ │ ├── map_q1.c │ │ │ ├── map_q2.c │ │ │ ├── map_q3.c │ │ │ ├── map_sin.c │ │ │ ├── nodraw.c │ │ │ ├── portals.c │ │ │ ├── prtfile.c │ │ │ ├── q2files.h │ │ │ ├── q3files.h │ │ │ ├── qbsp.h │ │ │ ├── qfiles.h │ │ │ ├── sinfiles.h │ │ │ ├── textures.c │ │ │ ├── tree.c │ │ │ └── writebsp.c │ │ ├── cgame │ │ │ ├── cg_consolecmds.c │ │ │ ├── cg_draw.c │ │ │ ├── cg_drawtools.c │ │ │ ├── cg_effects.c │ │ │ ├── cg_ents.c │ │ │ ├── cg_event.c │ │ │ ├── cg_flamethrower.c │ │ │ ├── cg_info.c │ │ │ ├── cg_local.h │ │ │ ├── cg_localents.c │ │ │ ├── cg_main.c │ │ │ ├── cg_marks.c │ │ │ ├── cg_newDraw.c │ │ │ ├── cg_particles.c │ │ │ ├── cg_players.c │ │ │ ├── cg_playerstate.c │ │ │ ├── cg_predict.c │ │ │ ├── cg_public.h │ │ │ ├── cg_scoreboard.c │ │ │ ├── cg_servercmds.c │ │ │ ├── cg_snapshot.c │ │ │ ├── cg_sound.c │ │ │ ├── cg_syscalls.c │ │ │ ├── cg_trails.c │ │ │ ├── cg_view.c │ │ │ ├── cg_weapons.c │ │ │ ├── cgame.def │ │ │ ├── cgame.vcproj │ │ │ ├── cgame.vcxproj │ │ │ ├── cgame.vcxproj.filters │ │ │ └── tr_types.h │ │ ├── client │ │ │ ├── cl_cgame.c │ │ │ ├── cl_cin.c │ │ │ ├── cl_console.c │ │ │ ├── cl_input.c │ │ │ ├── cl_keys.c │ │ │ ├── cl_main.c │ │ │ ├── cl_net_chan.c │ │ │ ├── cl_parse.c │ │ │ ├── cl_scrn.c │ │ │ ├── cl_ui.c │ │ │ ├── client.h │ │ │ ├── keys.h │ │ │ ├── snd_adpcm.c │ │ │ ├── snd_dma.c │ │ │ ├── snd_local.h │ │ │ ├── snd_mem.c │ │ │ ├── snd_mix.c │ │ │ ├── snd_public.h │ │ │ └── snd_wavelet.c │ │ ├── extractfuncs │ │ │ ├── ChangeLog │ │ │ ├── Conscript │ │ │ ├── extractfuncs.c │ │ │ ├── extractfuncs.vcproj │ │ │ ├── extractfuncs.vcxproj │ │ │ ├── extractfuncs.vcxproj.filters │ │ │ ├── l_log.c │ │ │ ├── l_log.h │ │ │ ├── l_memory.c │ │ │ ├── l_memory.h │ │ │ ├── l_precomp.c │ │ │ ├── l_precomp.h │ │ │ ├── l_script.c │ │ │ ├── l_script.h │ │ │ └── out │ │ │ │ └── src │ │ │ │ ├── botlib │ │ │ │ ├── be_interface.h │ │ │ │ └── l_script.h │ │ │ │ ├── bspc │ │ │ │ ├── l_bsp_ent.h │ │ │ │ ├── l_cmd.h │ │ │ │ ├── l_log.h │ │ │ │ ├── l_math.h │ │ │ │ ├── l_mem.h │ │ │ │ ├── l_poly.h │ │ │ │ ├── l_qfiles.h │ │ │ │ ├── l_threads.h │ │ │ │ ├── l_utils.h │ │ │ │ ├── q2files.h │ │ │ │ └── qbsp.h │ │ │ │ ├── extractfuncs │ │ │ │ ├── .consign │ │ │ │ ├── extractfuncs │ │ │ │ ├── extractfuncs.c │ │ │ │ ├── l_log.c │ │ │ │ ├── l_log.h │ │ │ │ ├── l_memory.c │ │ │ │ ├── l_memory.h │ │ │ │ ├── l_precomp.c │ │ │ │ ├── l_precomp.h │ │ │ │ ├── l_script.c │ │ │ │ └── l_script.h │ │ │ │ ├── game │ │ │ │ ├── botlib.h │ │ │ │ ├── q_shared.h │ │ │ │ └── surfaceflags.h │ │ │ │ └── qcommon │ │ │ │ └── unzip.h │ │ ├── ft2 │ │ │ ├── ahangles.c │ │ │ ├── ahangles.h │ │ │ ├── ahglobal.c │ │ │ ├── ahglobal.h │ │ │ ├── ahglyph.c │ │ │ ├── ahglyph.h │ │ │ ├── ahhint.c │ │ │ ├── ahhint.h │ │ │ ├── ahloader.h │ │ │ ├── ahmodule.c │ │ │ ├── ahmodule.h │ │ │ ├── ahoptim.c │ │ │ ├── ahoptim.h │ │ │ ├── ahtypes.h │ │ │ ├── autohint.h │ │ │ ├── freetype.h │ │ │ ├── ftcalc.c │ │ │ ├── ftcalc.h │ │ │ ├── ftconfig.h │ │ │ ├── ftdebug.c │ │ │ ├── ftdebug.h │ │ │ ├── ftdriver.h │ │ │ ├── fterrors.h │ │ │ ├── ftextend.c │ │ │ ├── ftextend.h │ │ │ ├── ftglyph.c │ │ │ ├── ftglyph.h │ │ │ ├── ftgrays.c │ │ │ ├── ftgrays.h │ │ │ ├── ftimage.h │ │ │ ├── ftinit.c │ │ │ ├── ftlist.c │ │ │ ├── ftlist.h │ │ │ ├── ftmemory.h │ │ │ ├── ftmm.c │ │ │ ├── ftmm.h │ │ │ ├── ftmodule.h │ │ │ ├── ftnames.c │ │ │ ├── ftnames.h │ │ │ ├── ftobjs.c │ │ │ ├── ftobjs.h │ │ │ ├── ftoption.h │ │ │ ├── ftoutln.c │ │ │ ├── ftoutln.h │ │ │ ├── ftraster.c │ │ │ ├── ftraster.h │ │ │ ├── ftrend1.c │ │ │ ├── ftrend1.h │ │ │ ├── ftrender.h │ │ │ ├── ftsmooth.c │ │ │ ├── ftsmooth.h │ │ │ ├── ftstream.c │ │ │ ├── ftstream.h │ │ │ ├── ftsystem.c │ │ │ ├── ftsystem.h │ │ │ ├── fttypes.h │ │ │ ├── psnames.h │ │ │ ├── sfdriver.c │ │ │ ├── sfdriver.h │ │ │ ├── sfnt.h │ │ │ ├── sfobjs.c │ │ │ ├── sfobjs.h │ │ │ ├── t1tables.h │ │ │ ├── ttcmap.c │ │ │ ├── ttcmap.h │ │ │ ├── ttdriver.c │ │ │ ├── ttdriver.h │ │ │ ├── tterrors.h │ │ │ ├── ttgload.c │ │ │ ├── ttgload.h │ │ │ ├── ttinterp.c │ │ │ ├── ttinterp.h │ │ │ ├── ttload.c │ │ │ ├── ttload.h │ │ │ ├── ttnameid.h │ │ │ ├── ttobjs.c │ │ │ ├── ttobjs.h │ │ │ ├── ttpload.c │ │ │ ├── ttpload.h │ │ │ ├── ttpost.c │ │ │ ├── ttpost.h │ │ │ ├── ttsbit.c │ │ │ ├── ttsbit.h │ │ │ ├── tttables.h │ │ │ ├── tttags.h │ │ │ └── tttypes.h │ │ ├── game │ │ │ ├── ai_cast.c │ │ │ ├── ai_cast.h │ │ │ ├── ai_cast_characters.c │ │ │ ├── ai_cast_debug.c │ │ │ ├── ai_cast_events.c │ │ │ ├── ai_cast_fight.c │ │ │ ├── ai_cast_fight.h │ │ │ ├── ai_cast_func_attack.c │ │ │ ├── ai_cast_func_boss1.c │ │ │ ├── ai_cast_funcs.c │ │ │ ├── ai_cast_global.h │ │ │ ├── ai_cast_script.c │ │ │ ├── ai_cast_script_actions.c │ │ │ ├── ai_cast_script_ents.c │ │ │ ├── ai_cast_sight.c │ │ │ ├── ai_cast_think.c │ │ │ ├── be_aas.h │ │ │ ├── be_ai_char.h │ │ │ ├── be_ai_chat.h │ │ │ ├── be_ai_gen.h │ │ │ ├── be_ai_goal.h │ │ │ ├── be_ai_move.h │ │ │ ├── be_ai_weap.h │ │ │ ├── be_ea.h │ │ │ ├── bg_animation.c │ │ │ ├── bg_lib.c │ │ │ ├── bg_local.h │ │ │ ├── bg_misc.c │ │ │ ├── bg_pmove.c │ │ │ ├── bg_public.h │ │ │ ├── bg_slidemove.c │ │ │ ├── botlib.h │ │ │ ├── g_active.c │ │ │ ├── g_alarm.c │ │ │ ├── g_bot.c │ │ │ ├── g_client.c │ │ │ ├── g_cmds.c │ │ │ ├── g_combat.c │ │ │ ├── g_func_decs.h │ │ │ ├── g_funcs.h │ │ │ ├── g_items.c │ │ │ ├── g_local.h │ │ │ ├── g_main.c │ │ │ ├── g_mem.c │ │ │ ├── g_misc.c │ │ │ ├── g_missile.c │ │ │ ├── g_mover.c │ │ │ ├── g_props.c │ │ │ ├── g_public.h │ │ │ ├── g_save.c │ │ │ ├── g_script.c │ │ │ ├── g_script_actions.c │ │ │ ├── g_session.c │ │ │ ├── g_spawn.c │ │ │ ├── g_svcmds.c │ │ │ ├── g_syscalls.c │ │ │ ├── g_target.c │ │ │ ├── g_team.c │ │ │ ├── g_team.h │ │ │ ├── g_tramcar.c │ │ │ ├── g_trigger.c │ │ │ ├── g_utils.c │ │ │ ├── g_weapon.c │ │ │ ├── game.def │ │ │ ├── game.vcproj │ │ │ ├── game.vcxproj │ │ │ ├── game.vcxproj.filters │ │ │ ├── q_math.c │ │ │ ├── q_shared.c │ │ │ ├── q_shared.h │ │ │ └── surfaceflags.h │ │ ├── idLib │ │ │ ├── idAudio.h │ │ │ ├── idAudioHardware.h │ │ │ ├── idLib.h │ │ │ ├── idQ3Asnd.cpp │ │ │ ├── idSound.cpp │ │ │ ├── idSound.h │ │ │ ├── idSpeaker.cpp │ │ │ ├── idSpeaker.h │ │ │ └── sys │ │ │ │ └── win32 │ │ │ │ ├── eax.h │ │ │ │ ├── eaxguid.lib │ │ │ │ └── win_snd.cpp │ │ ├── jpeg-6 │ │ │ ├── jcapimin.c │ │ │ ├── jccoefct.c │ │ │ ├── jccolor.c │ │ │ ├── jcdctmgr.c │ │ │ ├── jchuff.c │ │ │ ├── jchuff.h │ │ │ ├── jcinit.c │ │ │ ├── jcmainct.c │ │ │ ├── jcmarker.c │ │ │ ├── jcmaster.c │ │ │ ├── jcomapi.c │ │ │ ├── jconfig.h │ │ │ ├── jcparam.c │ │ │ ├── jcphuff.c │ │ │ ├── jcprepct.c │ │ │ ├── jcsample.c │ │ │ ├── jctrans.c │ │ │ ├── jdapimin.c │ │ │ ├── jdapistd.c │ │ │ ├── jdatadst.c │ │ │ ├── jdatasrc.c │ │ │ ├── jdcoefct.c │ │ │ ├── jdcolor.c │ │ │ ├── jdct.h │ │ │ ├── jddctmgr.c │ │ │ ├── jdhuff.c │ │ │ ├── jdhuff.h │ │ │ ├── jdinput.c │ │ │ ├── jdmainct.c │ │ │ ├── jdmarker.c │ │ │ ├── jdmaster.c │ │ │ ├── jdpostct.c │ │ │ ├── jdsample.c │ │ │ ├── jdtrans.c │ │ │ ├── jerror.c │ │ │ ├── jerror.h │ │ │ ├── jfdctflt.c │ │ │ ├── jidctflt.c │ │ │ ├── jinclude.h │ │ │ ├── jmemmgr.c │ │ │ ├── jmemnobs.c │ │ │ ├── jmemsys.h │ │ │ ├── jmorecfg.h │ │ │ ├── jpegint.h │ │ │ ├── jpeglib.h │ │ │ ├── jutils.c │ │ │ └── jversion.h │ │ ├── macosx │ │ │ ├── BuildRelease │ │ │ ├── CGMouseDeltaFix.h │ │ │ ├── CGMouseDeltaFix.m │ │ │ ├── CGPrivateAPI.h │ │ │ ├── GenerateQGL.pl │ │ │ ├── Performance.rtf │ │ │ ├── Q3Controller.h │ │ │ ├── Q3Controller.m │ │ │ ├── Quake3.icns │ │ │ ├── Quake3.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ │ ├── RecordDemo.zsh │ │ │ ├── WolfSP.pbproj │ │ │ │ ├── bungi.pbxuser │ │ │ │ ├── duane.pbxuser │ │ │ │ ├── johnson.pbxuser │ │ │ │ ├── project.pbxproj │ │ │ │ └── zaphod.pbxuser │ │ │ ├── banner.jpg │ │ │ ├── macosx_display.h │ │ │ ├── macosx_display.m │ │ │ ├── macosx_glimp.h │ │ │ ├── macosx_glimp.m │ │ │ ├── macosx_glsmp_mutex.m │ │ │ ├── macosx_glsmp_null.m │ │ │ ├── macosx_glsmp_ports.m │ │ │ ├── macosx_input.m │ │ │ ├── macosx_local.h │ │ │ ├── macosx_qgl.h │ │ │ ├── macosx_sndcore.m │ │ │ ├── macosx_snddma.m │ │ │ ├── macosx_sys.m │ │ │ ├── macosx_timers.h │ │ │ ├── macosx_timers.m │ │ │ └── timedemo.zsh │ │ ├── qcommon │ │ │ ├── cm_load.c │ │ │ ├── cm_local.h │ │ │ ├── cm_patch.c │ │ │ ├── cm_patch.h │ │ │ ├── cm_polylib.c │ │ │ ├── cm_polylib.h │ │ │ ├── cm_public.h │ │ │ ├── cm_test.c │ │ │ ├── cm_trace.c │ │ │ ├── cmd.c │ │ │ ├── common.c │ │ │ ├── cvar.c │ │ │ ├── files.c │ │ │ ├── huffman.c │ │ │ ├── md4.c │ │ │ ├── msg.c │ │ │ ├── net_chan.c │ │ │ ├── qcommon.h │ │ │ ├── qfiles.h │ │ │ ├── unzip.c │ │ │ ├── unzip.h │ │ │ ├── vm.c │ │ │ ├── vm_interpreted.c │ │ │ ├── vm_local.h │ │ │ ├── vm_none.c │ │ │ └── vm_x86.c │ │ ├── renderer │ │ │ ├── anorms256.h │ │ │ ├── qgl.h │ │ │ ├── qgl_linked.h │ │ │ ├── ref_trin.def │ │ │ ├── renderer.vcproj │ │ │ ├── renderer.vcxproj │ │ │ ├── renderer.vcxproj.filters │ │ │ ├── tr_animation.c │ │ │ ├── tr_backend.c │ │ │ ├── tr_bsp.c │ │ │ ├── tr_cmds.c │ │ │ ├── tr_cmesh.c │ │ │ ├── tr_curve.c │ │ │ ├── tr_flares.c │ │ │ ├── tr_font.c │ │ │ ├── tr_image.c │ │ │ ├── tr_init.c │ │ │ ├── tr_light.c │ │ │ ├── tr_local.h │ │ │ ├── tr_main.c │ │ │ ├── tr_marks.c │ │ │ ├── tr_mesh.c │ │ │ ├── tr_model.c │ │ │ ├── tr_noise.c │ │ │ ├── tr_public.h │ │ │ ├── tr_scene.c │ │ │ ├── tr_shade.c │ │ │ ├── tr_shade_calc.c │ │ │ ├── tr_shader.c │ │ │ ├── tr_shadows.c │ │ │ ├── tr_sky.c │ │ │ ├── tr_surface.c │ │ │ └── tr_world.c │ │ ├── server │ │ │ ├── server.h │ │ │ ├── sv_bot.c │ │ │ ├── sv_ccmds.c │ │ │ ├── sv_client.c │ │ │ ├── sv_game.c │ │ │ ├── sv_init.c │ │ │ ├── sv_main.c │ │ │ ├── sv_net_chan.c │ │ │ ├── sv_snapshot.c │ │ │ └── sv_world.c │ │ ├── splines │ │ │ ├── Splines.vcproj │ │ │ ├── Splines.vcxproj │ │ │ ├── Splines.vcxproj.filters │ │ │ ├── math_angles.cpp │ │ │ ├── math_angles.h │ │ │ ├── math_matrix.cpp │ │ │ ├── math_matrix.h │ │ │ ├── math_quaternion.cpp │ │ │ ├── math_quaternion.h │ │ │ ├── math_vector.cpp │ │ │ ├── math_vector.h │ │ │ ├── q_parse.cpp │ │ │ ├── q_shared.cpp │ │ │ ├── q_splineshared.h │ │ │ ├── splines.cpp │ │ │ ├── splines.h │ │ │ ├── util_list.h │ │ │ ├── util_str.cpp │ │ │ └── util_str.h │ │ ├── ui │ │ │ ├── keycodes.h │ │ │ ├── ui.def │ │ │ ├── ui.vcproj │ │ │ ├── ui.vcxproj │ │ │ ├── ui.vcxproj.filters │ │ │ ├── ui_atoms.c │ │ │ ├── ui_gameinfo.c │ │ │ ├── ui_local.h │ │ │ ├── ui_main.c │ │ │ ├── ui_players.c │ │ │ ├── ui_public.h │ │ │ ├── ui_shared.c │ │ │ ├── ui_shared.h │ │ │ ├── ui_syscalls.c │ │ │ └── ui_util.c │ │ └── unix │ │ │ ├── .consign │ │ │ ├── ChangeLog │ │ │ ├── Conscript-bspc │ │ │ ├── Conscript-cgame │ │ │ ├── Conscript-client │ │ │ ├── Conscript-game │ │ │ ├── Conscript-setup │ │ │ ├── Conscript-ui │ │ │ ├── Construct │ │ │ ├── README.EULA │ │ │ ├── README.Linux │ │ │ ├── README.Q3Test │ │ │ ├── bspc.vpj │ │ │ ├── build_setup.sh │ │ │ ├── build_tarball.sh │ │ │ ├── cgame.vpj │ │ │ ├── client.vpj │ │ │ ├── cons │ │ │ ├── extractfuncs.vpj │ │ │ ├── ftol.nasm │ │ │ ├── game.vpj │ │ │ ├── linux_common.c │ │ │ ├── linux_glimp.c │ │ │ ├── linux_joystick.c │ │ │ ├── linux_local.h │ │ │ ├── linux_qgl.c │ │ │ ├── linux_snd.c │ │ │ ├── matha.s │ │ │ ├── pcons-2.3.1 │ │ │ ├── qasm.h │ │ │ ├── quake3.xpm │ │ │ ├── snapvector.nasm │ │ │ ├── snd_mixa.s │ │ │ ├── sys_dosa.s │ │ │ ├── ui.vpj │ │ │ ├── unix_glw.h │ │ │ ├── unix_main.c │ │ │ ├── unix_net.c │ │ │ ├── unix_shared.c │ │ │ ├── vm_x86.c │ │ │ ├── vm_x86a.s │ │ │ └── wolf.vpw │ │ └── uncrustify.cfg │ ├── libs │ └── haptic_service.aar │ ├── local.properties │ ├── settings.gradle │ └── z_vr_assets │ ├── gfx │ ├── menus │ │ ├── background_dim.tga │ │ └── control_scheme.tga │ └── vignette.tga │ ├── icons │ ├── arrow.tga │ ├── binoculars.tga │ ├── binoculars_select.tga │ ├── exit.tga │ ├── exit_select.tga │ ├── icon_pbook_notselect.tga │ ├── icon_vbook_notselect.tga │ ├── icon_zbook_notselect.tga │ ├── iconw_acolt_1.tga │ ├── iconw_acolt_1_select.tga │ ├── iconw_amp40_1.tga │ ├── iconw_amp40_1_select.tga │ ├── iconw_athompson_1.tga │ ├── iconw_athompson_1_select.tga │ ├── iconw_sluger_1.tga │ ├── iconw_sluger_1_select.tga │ ├── item_select_cursor.tga │ ├── load.tga │ ├── load_select.tga │ ├── noammo2.tga │ ├── save.tga │ ├── save_select.tga │ ├── stamina_notselect.tga │ ├── wine2_notselect.tga │ ├── wine3_notselect.tga │ └── wine_notselect.tga │ ├── models │ ├── players │ │ └── bj │ │ │ └── hand.mdc │ └── powerups │ │ ├── binoc.jpg │ │ └── v_binocs.mdc │ ├── models_vr.cfg │ ├── text │ └── pickupnames.txt │ ├── ui │ ├── assets │ │ ├── cheats_sketch.tga │ │ └── pageturn3.tga │ ├── cheats.menu │ ├── controls.menu │ ├── credits.menu │ ├── help_popup.menu │ ├── ingame.txt │ ├── ingame_controls.menu │ ├── ingame_options.menu │ ├── ingame_system.menu │ ├── menus.txt │ ├── notebook.menu │ ├── options.menu │ └── system.menu │ └── weapons_vr.cfg ├── README.md ├── VrSamples-RTCWQuest.iml ├── assets ├── Controller_diagram_alt.jpg ├── banner.jpg └── commandline.txt ├── java └── com │ └── drbeef │ └── rtcwquest │ ├── GLES3JNIActivity.java │ └── GLES3JNILib.java └── res ├── drawable-hdpi └── ic_rtcwquest.png ├── drawable-mdpi └── ic_rtcwquest.png ├── drawable-xhdpi └── ic_rtcwquest.png ├── drawable-xxhdpi └── ic_rtcwquest.png └── values └── strings.xml /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows shortcuts 12 | *.lnk 13 | 14 | # build files 15 | *.o 16 | *.d 17 | 18 | #binaries 19 | *.so 20 | 21 | #libs 22 | *.a 23 | 24 | #files created by build 25 | .idea 26 | *.apk 27 | *.ap_ 28 | *.class 29 | Projects/Android/build/* 30 | assets/oculussig* 31 | Projects/Android/.cxx/* 32 | *.json 33 | *.bin 34 | Projects/Android/.gradle/* 35 | *.ser 36 | Projects/Android/.idea/* 37 | Projects/Android/.externalNativeBuild/* 38 | drbeef-release-key.keystore 39 | Projects/Android/Android.iml 40 | Projects/Projects.iml 41 | assets/pak0.pk3 42 | assets/sp_vpak8.pk3 43 | assets/z_zvr_weapons.pk3 44 | assets/z_vr_assets.pk3 45 | -------------------------------------------------------------------------------- /Projects/Android/android.debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/android.debug.keystore -------------------------------------------------------------------------------- /Projects/Android/build.bat: -------------------------------------------------------------------------------- 1 | @rem Only edit the master copy of this file in SDK_ROOT/bin/scripts/build/perproject 2 | 3 | @setlocal enableextensions enabledelayedexpansion 4 | 5 | @if not exist "build.gradle" @echo Build script must be executed from project directory. & goto :Abort 6 | 7 | @set P=.. 8 | 9 | :TryAgain 10 | 11 | @rem @echo P = %P% 12 | 13 | @if exist "%P%\bin\scripts\build\build.py.bat" goto :Found 14 | 15 | @if exist "%P%\bin\scripts\build" @echo "Could not find build.py.bat" & goto :Abort 16 | 17 | @set P=%P%\.. 18 | 19 | @goto :TryAgain 20 | 21 | :Found 22 | 23 | @set P=%P%\bin\scripts\build 24 | @call %P%\build.py.bat %1 %2 %3 %4 %5 25 | @goto :End 26 | 27 | :Abort 28 | 29 | :End 30 | -------------------------------------------------------------------------------- /Projects/Android/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply from: "${rootProject.projectDir}/VrApp.gradle" 3 | 4 | android { 5 | // This is the name of the generated apk file, which will have 6 | // -debug.apk or -release.apk appended to it. 7 | // The filename doesn't effect the Android installation process. 8 | // Use only letters to remain compatible with the package name. 9 | project.archivesBaseName = "rtcwquest" 10 | 11 | defaultConfig { 12 | // Gradle replaces the manifest package with this value, which must 13 | // be unique on a system. If you don't change it, a new app 14 | // will replace an older one. 15 | applicationId "com.drbeef." + project.archivesBaseName 16 | 17 | // override app plugin abiFilters for both 32 and 64-bit support 18 | externalNativeBuild { 19 | ndk { 20 | abiFilters 'armeabi-v7a' 21 | } 22 | ndkBuild { 23 | abiFilters 'armeabi-v7a' 24 | } 25 | } 26 | minSdkVersion 26 27 | targetSdkVersion 26 28 | } 29 | 30 | sourceSets { 31 | main { 32 | manifest.srcFile 'AndroidManifest.xml' 33 | java.srcDirs = ['../../java'] 34 | jniLibs.srcDir 'libs' 35 | res.srcDirs = ['../../res'] 36 | assets.srcDirs = ['../../assets'] 37 | } 38 | } 39 | compileOptions { 40 | sourceCompatibility = '1.8' 41 | targetCompatibility = '1.8' 42 | } 43 | compileSdkVersion = 26 44 | buildToolsVersion = '29.0.1' 45 | } 46 | 47 | dependencies { 48 | implementation "com.android.support:support-compat:26.1.0" 49 | implementation "com.android.support:support-core-utils:26.1.0" 50 | implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) 51 | } 52 | 53 | repositories { 54 | google() 55 | } 56 | buildscript { 57 | repositories { 58 | google() 59 | } 60 | } 61 | 62 | task packResources(type: Zip) { 63 | from "./z_vr_assets/" 64 | destinationDir file("../../assets/") 65 | archiveName "z_vr_assets.pk3" 66 | } 67 | 68 | tasks.matching {it.name.startsWith("assemble")}.all { Task task -> 69 | task.dependsOn(packResources) 70 | } 71 | -------------------------------------------------------------------------------- /Projects/Android/build.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | # This first bit of code is common bootstrapping code 4 | # to determine the SDK root, and to set up the import 5 | # path for additional python code. 6 | 7 | #begin bootstrap 8 | import os 9 | import sys 10 | 11 | def init(): 12 | root = os.path.realpath( os.path.dirname(os.path.realpath(__file__) ) ) 13 | os.chdir(root) # make sure we are always executing from the project directory 14 | while( os.path.isdir( os.path.join(root, 'bin/scripts/build') ) == False ): 15 | root = os.path.realpath( os.path.join(root, '..') ) 16 | if( len(root) <= 5 ): # Should catch both Posix and Windows root directories (e.g. '/' and 'C:\') 17 | print('Unable to find SDK root. Exiting.') 18 | sys.exit(1) 19 | root = os.path.abspath(root) 20 | os.environ['OCULUS_SDK_PATH'] = root 21 | sys.path.append( root + "/bin/scripts/build" ) 22 | 23 | init() 24 | import ovrbuild 25 | ovrbuild.init() 26 | #end bootstrap 27 | 28 | 29 | ovrbuild.build() 30 | -------------------------------------------------------------------------------- /Projects/Android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Projects/Android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Apr 19 19:06:14 BST 2024 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /Projects/Android/jni/Android.mk: -------------------------------------------------------------------------------- 1 | include $(GL4ES_PATH)/Android.mk 2 | include $(TOP_DIR)/rtcw/Android.mk 3 | -------------------------------------------------------------------------------- /Projects/Android/jni/Application.mk: -------------------------------------------------------------------------------- 1 | # MAKEFILE_LIST specifies the current used Makefiles, of which this is the last 2 | # one. I use that to obtain the Application.mk dir then import the root 3 | # Application.mk. 4 | ROOT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))../../../../.. 5 | NDK_MODULE_PATH := $(ROOT_DIR) 6 | 7 | APP_PLATFORM := android-19 8 | 9 | APP_CFLAGS += -Wl,--no-undefined 10 | 11 | APPLICATIONMK_PATH = $(call my-dir) 12 | 13 | TOP_DIR := $(APPLICATIONMK_PATH) 14 | SUPPORT_LIBS := $(APPLICATIONMK_PATH)/SupportLibs 15 | GL4ES_PATH := $(SUPPORT_LIBS)/gl4es 16 | 17 | APP_ALLOW_MISSING_DEPS=true 18 | 19 | APP_MODULES := gl4es qagamearm uiarm cgamearm rtcw_client 20 | APP_STL := c++_shared 21 | 22 | 23 | -------------------------------------------------------------------------------- /Projects/Android/jni/RTCWVR/VrCvars.h: -------------------------------------------------------------------------------- 1 | cvar_t *vr_turn_mode; 2 | cvar_t *vr_turn_angle; 3 | cvar_t *vr_reloadtimeoutms; 4 | cvar_t *vr_positional_factor; 5 | cvar_t *vr_walkdirection; 6 | cvar_t *vr_movement_multiplier; 7 | cvar_t *vr_weapon_pitchadjust; 8 | cvar_t *vr_lasersight; 9 | cvar_t *vr_control_scheme; 10 | cvar_t *vr_teleport; 11 | cvar_t *vr_virtual_stock; 12 | cvar_t *vr_comfort_vignette; 13 | cvar_t *vr_switch_sticks; 14 | cvar_t *vr_cinematic_stereo; 15 | cvar_t *vr_screen_dist; 16 | cvar_t *vr_gesture_triggered_use; 17 | cvar_t *vr_use_gesture_boundary; 18 | cvar_t *vr_draw_hud; 19 | cvar_t *vr_irl_crouch_enabled; 20 | cvar_t *vr_irl_crouch_to_stand_ratio; 21 | cvar_t *vr_haptic_intensity; 22 | cvar_t *vr_menu_item_touched; 23 | cvar_t *vr_refresh; 24 | cvar_t *vr_spread_reduce; 25 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/.gitignore: -------------------------------------------------------------------------------- 1 | .gdb_history 2 | .vscode/ 3 | CMakeFiles/ 4 | lib/ 5 | Makefile 6 | CMakeCache.txt 7 | cmake_install.cmake 8 | spec/yml/gles-1.1-full.yml 9 | /build/ 10 | /tests/*.png 11 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: false 3 | dist: xenial 4 | addons: 5 | apt: 6 | packages: 7 | - cmake 8 | 9 | compiler: 10 | - gcc 11 | 12 | #Build steps 13 | before_script: 14 | - mkdir build 15 | - cd build 16 | - cmake .. -DODROID=1 17 | 18 | script: 19 | - make 20 | 21 | #after_script: 22 | # - sudo apt-get install apitrace-gl-frontend=5\* imagemagick xvfb -y 23 | # - cd ../tests 24 | # - xvfb-run ./tests.sh ../lib 25 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | ########################### 4 | # 5 | # GL static library 6 | # 7 | ########################### 8 | 9 | include $(CLEAR_VARS) 10 | 11 | LOCAL_MODULE := gl4es 12 | 13 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 14 | 15 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) -DBCMHOST 16 | 17 | LOCAL_SRC_FILES := \ 18 | src/gl/array.c \ 19 | src/gl/blend.c \ 20 | src/gl/blit.c \ 21 | src/gl/buffers.c \ 22 | src/gl/build_info.c \ 23 | src/gl/debug.c \ 24 | src/gl/decompress.c \ 25 | src/gl/depth.c \ 26 | src/gl/directstate.c \ 27 | src/gl/drawing.c \ 28 | src/gl/enable.c \ 29 | src/gl/eval.c \ 30 | src/gl/face.c \ 31 | src/gl/fog.c \ 32 | src/gl/fpe.c \ 33 | src/gl/fpe_shader.c \ 34 | src/gl/framebuffers.c \ 35 | src/gl/getter.c \ 36 | src/gl/gl4es.c \ 37 | src/gl/glstate.c \ 38 | src/gl/hint.c \ 39 | src/gl/init.c \ 40 | src/gl/light.c \ 41 | src/gl/line.c \ 42 | src/gl/list.c \ 43 | src/gl/listdraw.c \ 44 | src/gl/listrl.c \ 45 | src/gl/loader.c \ 46 | src/gl/matrix.c \ 47 | src/gl/matvec.c \ 48 | src/gl/pixel.c \ 49 | src/gl/planes.c \ 50 | src/gl/pointsprite.c \ 51 | src/gl/preproc.c \ 52 | src/gl/program.c \ 53 | src/gl/queries.c \ 54 | src/gl/raster.c \ 55 | src/gl/render.c \ 56 | src/gl/shader.c \ 57 | src/gl/shaderconv.c \ 58 | src/gl/stack.c \ 59 | src/gl/stencil.c \ 60 | src/gl/string_utils.c \ 61 | src/gl/stubs.c \ 62 | src/gl/texenv.c \ 63 | src/gl/texgen.c \ 64 | src/gl/texture.c \ 65 | src/gl/uniform.c \ 66 | src/gl/vertexattrib.c \ 67 | src/gl/wrap/gl4es.c \ 68 | src/gl/wrap/gles.c \ 69 | src/gl/wrap/glstub.c \ 70 | src/gl/math/eval.c \ 71 | src/glx/hardext.c \ 72 | src/glx/glx.c \ 73 | src/glx/lookup.c \ 74 | src/glx/gbm.c \ 75 | src/glx/streaming.c \ 76 | 77 | LOCAL_CFLAGS += -g -funwind-tables -O3 -DBCMHOST -fvisibility=hidden -include include/android_debug.h 78 | LOCAL_CFLAGS += -DNOX11 79 | LOCAL_CFLAGS += -DNO_GBM 80 | LOCAL_CFLAGS += -DDEFAULT_ES=2 81 | LOCAL_CFLAGS += -DNO_INIT_CONSTRUCTOR 82 | 83 | 84 | LOCAL_LDLIBS := -ldl -llog -lEGL -lGLESv3 85 | 86 | include $(BUILD_SHARED_LIBRARY) 87 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016-2018 Sebastien Chevalier 2 | Copyright (c) 2013-2016 Ryan Hileman 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/MEDIA.md: -------------------------------------------------------------------------------- 1 | GL4ES - OpenGL for GLES Hardware 2 | ==== 3 | 4 | Many OpenGL software already works with GL4ES. 5 | 6 | ![foobillards++](refs/foobillardplus.0000014748.png) 7 | 8 | Complex OpenGL 1.5 games, like Foobillard++, that uses cascaded display list, line stipple, TexGen, works fine. Here running on the OpenPandora. It will work with both GLES1.1 and GLES2.0 backend. Most OpenGL 1.x games will runs. 9 | 10 | 11 | [![Play on Youtube](https://img.youtube.com/vi/75FYb60L7zw/0.jpg)](https://www.youtube.com/watch?v=75FYb60L7zw) 12 | 13 | The limit is an hardware one: GLES1.1 and GLES2.0 hardware do not allow reading Depth buffer, so some games that use it (like AssultCube) for game play wont run. Some FPS are using it just for cosmetics (Lens flare), the they still run fine without, Like Serious Sam (both First and Second Encouter), here on the OpenPandora again. 14 | 15 | 16 | [![Play on Youtube](https://img.youtube.com/vi/kJPb2jYiBoM/0.jpg)](https://www.youtube.com/watch?v=kJPb2jYiBoM) 17 | 18 | More complex program, like Blender, can also run. 19 | 20 | 21 | ![MineCraft](media/minecraft.png) 22 | 23 | But also Minecraft, here on an ODroid in this old video. 24 | 25 | 26 | ![OpenRA](refs/openra.0000031249.png) 27 | 28 | On the OpenGL 2.0, side using GLES2.0 backend, OpenRA can run on the Pandora. 29 | 30 | 31 | And OpenGL 2.x opens a lot of dors. Many commercial games run just fine on gl4es. 32 | 33 | [![Play on Youtube](https://img.youtube.com/vi/VUoeHWuwlMU/0.jpg)](https://www.youtube.com/watch?v=VUoeHWuwlMU) 34 | 35 | Here some FNA games, running on an ODroid XU4 (using method described [there](https://magazine.odroid.com/article/playing-modern-fna-games-on-the-odroid-platform/)). That video show just a few, and even more can be make to run. 36 | 37 | 38 | 39 | [![Play on Youtube](https://img.youtube.com/vi/B4YN37z3-ws/0.jpg)](https://www.youtube.com/watch?v=B4YN37z3-ws) 40 | 41 | And with [Box86](https://github.com/ptitSeb/box86), even more commercial games can run, like here NeverWinter Night on an ODroid XU4 42 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-hacker 2 | title: GL4ES - The OpenGL driver for GLES Hardware 3 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/GLES/egl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton egl.h to provide compatibility for early GLES 1.0 3 | * applications. Several early implementations included gl.h 4 | * in egl.h leading applications to include only egl.h 5 | * 6 | * $Revision: 6252 $ on $Date:: 2008-08-06 16:35:08 -0700 #$ 7 | */ 8 | 9 | #ifndef __legacy_egl_h_ 10 | #define __legacy_egl_h_ 11 | 12 | #include 13 | #include 14 | 15 | #endif /* __legacy_egl_h_ */ 16 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/GLES/gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/GLES/gl3ext.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl3ext_h_ 2 | #define __gl3ext_h_ 3 | 4 | /* $Revision: 17809 $ on $Date:: 2012-05-14 08:03:36 -0700 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* OpenGL ES 3 Extensions 12 | * 13 | * After an OES extension's interactions with OpenGl ES 3.0 have been documented, 14 | * its tokens and function definitions should be added to this file in a manner 15 | * that does not conflict with gl2ext.h or gl3.h. 16 | * 17 | * Tokens and function definitions for extensions that have become standard 18 | * features in OpenGL ES 3.0 will not be added to this file. 19 | * 20 | * Applications using OpenGL-ES-2-only extensions should include gl2ext.h 21 | */ 22 | 23 | #endif /* __gl3ext_h_ */ 24 | 25 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/GLES/gl3platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl3platform_h_ 2 | #define __gl3platform_h_ 3 | 4 | /* $Revision: 18437 $ on $Date:: 2012-07-08 23:31:39 -0700 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 3.X gl3.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl3platform_h_ */ 31 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/GLES/glplatform.h: -------------------------------------------------------------------------------- 1 | #ifndef __glplatform_h_ 2 | #define __glplatform_h_ 3 | 4 | /* $Revision: 10601 $ on $Date:: 2010-03-04 22:15:27 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 1.X gl.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | #include 21 | 22 | #ifndef GL_API 23 | #define GL_API KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __glplatform_h_ */ 31 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/android_debug.h: -------------------------------------------------------------------------------- 1 | #ifndef __ANDROID_DEBUG_H__ 2 | #define __ANDROID_DEBUG_H__ 3 | 4 | // Redirect printf() to Android log 5 | // Put this file into CFLAGS: "-include ../android_debug.h" 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #ifdef __cplusplus 12 | // Include everything beforehand, so we wont' get compiler errors because of our #define 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | namespace std 21 | { 22 | class android_cout: public ostringstream 23 | { 24 | public: 25 | android_cout() {} 26 | template 27 | android_cout &operator<<(const T &v) 28 | { 29 | *((ostringstream*)this) << v; 30 | if( this->str().find('\n') != ::std::string::npos ) 31 | { 32 | __android_log_print(ANDROID_LOG_INFO, "LIBGL", "%s", this->str().c_str()); 33 | this->str().clear(); 34 | } 35 | return *this; 36 | } 37 | ~android_cout() 38 | { 39 | __android_log_print(ANDROID_LOG_INFO, "LIBGL", "%s", this->str().c_str()); 40 | this->str().clear(); 41 | } 42 | }; 43 | static const char * android_endl = "\n"; 44 | } 45 | #define cout android_cout() 46 | #define cerr android_cout() 47 | #define endl android_endl 48 | 49 | #endif 50 | 51 | #define printf(...) __android_log_print(ANDROID_LOG_INFO, "LIBGL", __VA_ARGS__) 52 | /* 53 | // Override fprintf(stderr, ...) constructs 54 | static inline int __sdl_logged_fprintf(FILE *stream, const char *format, ...) 55 | { 56 | int ret = 0; 57 | va_list args; 58 | va_start(args, format); 59 | if( stream == stderr || stream == stdout ) 60 | ret = __android_log_vprint(ANDROID_LOG_INFO, "LIBGL", format, args); 61 | else 62 | ret = vfprintf(stream, format, args); 63 | va_end(args); 64 | return ret; 65 | } 66 | 67 | #define fprintf(...) __sdl_logged_fprintf(__VA_ARGS__) 68 | */ 69 | #endif 70 | 71 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/include/gl4eshint.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ESINCLUDE_HINT_H_ 2 | #define _GL4ESINCLUDE_HINT_H_ 3 | 4 | // Custom hints to handles some specifics gl4es options 5 | 6 | // same as using LIBGL_SHRINK=x 7 | #define GL_SHRINK_HINT_GL4ES 0xA101 8 | // same as using LIBGL_ALPHAHACK=x 9 | #define GL_ALPHAHACK_HINT_GL4ES 0xA102 10 | // same as using LIBGL_RECYCLEFBO=x 11 | #define GL_RECYCLEFBO_HINT_GL4ES 0xA103 12 | // same as using LIBGL_MIPMAP=x 13 | #define GL_MIPMAP_HINT_GL4ES 0xA104 14 | // same as using LIBGL_TEXDUMP=x 15 | #define GL_TEXDUMP_HINT_GL4ES 0xA105 16 | // same as using LIBGL_COPY=x 17 | #define GL_COPY_HINT_GL4ES 0xA106 18 | // same as using LIBGL_NOLUMALPHA=x 19 | #define GL_NOLUMAPHA_HINT_GL4ES 0xA107 20 | // same as using LIBGL_BLENDHACK=x 21 | #define GL_BLENDHACK_HINT_GL4ES 0xA108 22 | // REMOVED same as using LIBGL_BATCH=x 23 | #define GL_BATCH_HINT_GL4ES 0xA109 24 | // same as using LIBGL_NOERROR=x 25 | #define GL_NOERROR_HINT_GL4ES 0xA10A 26 | // same as using LIBGL_NODOWNSAMPLING=x 27 | #define GL_NODOWNSAMPLING_HINT_GL4ES 0xA10B 28 | // same as using LIBGL_NOVAOCACHE=x 29 | #define GL_NOVAOCACHE_HINT_GL4ES 0xA10C 30 | // same as using LIBGL_BEGINEND=x 31 | #define GL_BEGINEND_HINT_GL4ES 0xA10D 32 | // same as using LIBGL_AVOID16BITS=x 33 | #define GL_AVOID16BITS_HINT_GL4ES 0xA10E 34 | // same as using LIBGL_GAMMA=xx (PANDORA only) 35 | #define GL_GAMMA_HINT_GL4ES 0xA10F 36 | #endif // _GL4ESINCLUDE_HINT_H_ 37 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/media/minecraft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/media/minecraft.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/foobillardplus.0000014748.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/foobillardplus.0000014748.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/glsl_lighting.0000505393.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/glsl_lighting.0000505393.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/glxgears.0000008203.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/glxgears.0000008203.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/neverball.0000078750.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/neverball.0000078750.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/openra.0000031249.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/openra.0000031249.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/pointsprite.0000248810.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/pointsprite.0000248810.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/refs/stuntcarracer.0000118817.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/refs/stuntcarracer.0000118817.png -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ux 2 | cd "$(dirname "$0")" 3 | 4 | base=../src/ 5 | if [ -e yml/gles-1.1-full.yml ]; then rm yml/gles-1.1-full.yml ;fi 6 | touch yml/gles-1.1-full.yml 7 | cat yml/*-1.1.yml >> yml/gles-1.1-full.yml 8 | gles1=$(ls -1 yml/*-1.1-full.yml | tr '\n' ',' | sed -e 's/,$//') 9 | gles=$(ls -1 yml/*es-1.1.yml | tr '\n' ',' | sed -e 's/,$//') 10 | glext=$(ls -1 yml/*ext-1.1.yml | tr '\n' ',' | sed -e 's/,$//') 11 | 12 | #./gen.py "$gles" gleswrap.c.j2 gleswrap.c gles.h > "$base/gl/wrap/gles.c" 13 | #./gen.py "$glext" glextwrap.c.j2 glextwrap.c gles.h > "$base/gl/wrap/glesext.c" 14 | ./gen.py "$gles1" gleswrap.c.j2 gleswrap.c gles.h ../gl4es.h ../loader.h skips.h > "$base/gl/wrap/gles.c" 15 | ./gen.py "$gles1" glwrap.h.j2 gleswrap.h ../gles.h > "$base/gl/wrap/gles.h" 16 | ./gen.py "$gles1" glxfuncs.j2 glxfuncs.inc ../gl/gl4es.h > "$base/glx/glesfuncs.inc" 17 | 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/requirements.txt: -------------------------------------------------------------------------------- 1 | jinja2 2 | pyyaml 3 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/base.j2: -------------------------------------------------------------------------------- 1 | {% if ifdef %}#ifdef {{ ifdef }} 2 | {% endif %} 3 | {% if ifndef %}#ifndef {{ ifndef }} 4 | {% endif %} 5 | {% block main %}{% endblock %} 6 | {% block content %}{% endblock %} 7 | {% if ifdef %}#endif{% endif %} 8 | {% if ifndef %}#endif{% endif %} 9 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/copy_packed_call.j2: -------------------------------------------------------------------------------- 1 | packed_call_t* glCopyPackedCall(const packed_call_t *packed) { 2 | switch (packed->format) { 3 | {% for f in formats %} 4 | case FORMAT_{{ f.types }}: { 5 | int sizeofpacked = sizeof(PACKED_{{ f.types }}); 6 | PACKED_{{ f.types }} *newpacked = (PACKED_{{ f.types }}*)malloc(sizeofpacked); 7 | memcpy(newpacked, packed, sizeofpacked); 8 | return (packed_call_t*)newpacked; 9 | break; 10 | } 11 | {% endfor %} 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/fprint.j2: -------------------------------------------------------------------------------- 1 | {% if func.args %} 2 | printf("{{ func.name }}({{ func.args|printf }});\n", {{ func.args|args(0) }}); 3 | {% else %} 4 | printf("{{ func.name }}();\n"); 5 | {% endif %} 6 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/header.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/base.j2" %} 2 | {% block main %} 3 | {% include "base/headers.j2" %} 4 | 5 | {% set guard = name.upper().replace('.', '_') -%} 6 | #ifndef {{ guard }} 7 | #define {{ guard }} 8 | {% block content %}{% endblock %} 9 | #endif 10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/headers.j2: -------------------------------------------------------------------------------- 1 | {% block headers %} 2 | {% for header in headers %} 3 | {% if "<" in header %} 4 | #include {{ header }} 5 | {% else %} 6 | #include "{{ header }}" 7 | {% endif %} 8 | {% endfor %} 9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/indexed_call.j2: -------------------------------------------------------------------------------- 1 | void glIndexedCall(const indexed_call_t *packed, void *ret_v) { 2 | switch (packed->func) { 3 | {% for f in functions %} 4 | #ifndef skip_index_{{ f.name }} 5 | case {{ f.name }}_INDEX: { 6 | INDEXED_{{ f.types }} *unpacked = (INDEXED_{{ f.types }} *)packed; 7 | {% if f.args %} 8 | ARGS_{{ f.types }} args = unpacked->args; 9 | {% endif %} 10 | {% if not f.void %} 11 | {{ f.return }} *ret = ({{ f.return }} *)ret_v; 12 | *ret = 13 | {% endif %} 14 | {{ f.name }}({% for arg in f.args -%} 15 | args.a{{ loop.index }}{% if not arg.last %}, {% endif %} 16 | {% endfor %}); 17 | break; 18 | } 19 | #endif 20 | {% endfor %} 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/packed_call.j2: -------------------------------------------------------------------------------- 1 | void glPackedCall(const packed_call_t *packed) { 2 | switch (packed->format) { 3 | {% for f in formats %} 4 | case FORMAT_{{ f.types }}: { 5 | PACKED_{{ f.types }} *unpacked = (PACKED_{{ f.types }} *)packed; 6 | {% if f.args %} 7 | ARGS_{{ f.types }} args = unpacked->args; 8 | {% endif %} 9 | unpacked->func({% for arg in f.args -%} 10 | args.a{{ loop.index }}{% if not arg.last %}, {% endif %} 11 | {% endfor %}); 12 | break; 13 | } 14 | {% endfor %} 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/wrap.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/base.j2" %} 2 | {% block main %} 3 | {% include "base/headers.j2" %} 4 | {% for func in functions %} 5 | {% block definition scoped %} 6 | {{ func.return }} gl4es_{{ func.name }}({{ func.args|args }}) { 7 | {% block load scoped %}{% endblock %} 8 | {% block call scoped %} 9 | {% if not func.void %}return {% endif %}{% block prefix %}wrap{% endblock %}_{{ func.name }}({{ func.args|args(0) }}); 10 | {%- endblock %} 11 | } 12 | {{ func.return }} {{ func.name }}({{ func.args|args }}) __attribute__((alias("gl4es_{{ func.name }}"))) __attribute__((visibility("default"))); 13 | {% endblock %} 14 | {% endfor %} 15 | {% endblock %} 16 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/base/wrap.h.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/header.j2" %} 2 | {% block content %} 3 | 4 | typedef struct { 5 | int format; 6 | void *func; 7 | void *args; 8 | } packed_call_t; 9 | 10 | typedef struct { 11 | int func; 12 | void *args; 13 | } indexed_call_t; 14 | 15 | enum FORMAT { 16 | {% for f in formats %} 17 | FORMAT_{{ f.types }}, 18 | {% endfor %} 19 | }; 20 | 21 | {% for f in formats %} 22 | typedef {{ f.return }} (*FUNC_{{ f.types }})({{ f.args|args }}); 23 | {% if f.args %} 24 | typedef struct { 25 | {% for arg in f.args %} 26 | {{ arg.type|unconst }} a{{ loop.index }}{% if arg.type == 'GLdouble' %} __attribute__ ((aligned(8))){% endif %}; 27 | {% endfor %} 28 | } ARGS_{{ f.types }}; 29 | {% endif %} 30 | typedef struct { 31 | int format; 32 | FUNC_{{ f.types }} func; 33 | {% if f.args %} 34 | ARGS_{{ f.types }} args; 35 | {% endif %} 36 | } PACKED_{{ f.types }}; 37 | typedef struct { 38 | int func; 39 | {% if f.args %} 40 | ARGS_{{ f.types }} args; 41 | {% endif %} 42 | } INDEXED_{{ f.types }}; 43 | {% endfor %} 44 | 45 | extern void glPushCall(void *data); 46 | void glPackedCall(const packed_call_t *packed); 47 | void glIndexedCall(const indexed_call_t *packed, void *ret_v); 48 | packed_call_t* glCopyPackedCall(const packed_call_t *packed); 49 | 50 | {% for func in functions %} 51 | #define {{ func.name }}_INDEX {{ loop.index }} 52 | #define {{ func.name }}_RETURN {{ func.return }} 53 | #define {{ func.name }}_ARG_NAMES {{ func.args|args(0) }} 54 | #define {{ func.name }}_ARG_EXPAND {{ func.args|args }} 55 | #define {{ func.name }}_PACKED PACKED_{{ func.types }} 56 | #define {{ func.name }}_INDEXED INDEXED_{{ func.types }} 57 | #define {{ func.name }}_FORMAT FORMAT_{{ func.types }} 58 | {% endfor %} 59 | 60 | {% for func in functions %} 61 | {{ func.return }} gl4es_{{ func.name }}({{ func.name }}_ARG_EXPAND); 62 | typedef {{ func.return }} (*{{ func.name }}_PTR)({{ func.name }}_ARG_EXPAND); 63 | {% endfor %} 64 | 65 | {% endblock %} 66 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/client.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.c.j2" %} 2 | {% block headers %} 3 | #include 4 | #include 5 | #include 6 | #include 7 | {{ super() }} 8 | 9 | {% endblock %} 10 | 11 | {% block main %} 12 | {{ super() }} 13 | 14 | snd_config_t *snd_config = NULL; 15 | 16 | __GLXextFuncPtr glXGetProcAddressARB(const GLubyte *name) { 17 | {% for func in functions %} 18 | {% if not func.name.startswith('snd_') %} 19 | if (strcmp(name, "{{ func.name }}") == 0) { 20 | return (void *){{ func.name }}; 21 | } 22 | {% endif %} 23 | {% endfor %} 24 | printf("glXGetProcAddress(%s) not found\n", name); 25 | return NULL; 26 | } 27 | 28 | __GLXextFuncPtr glXGetProcAddress(const GLubyte *name) { 29 | return glXGetProcAddressARB(name); 30 | } 31 | {% endblock %} 32 | 33 | {% block definition %} 34 | #if !defined(skip_client_{{ func.name }}) && !defined(skip_index_{{ func.name }}) 35 | {{ super() -}} 36 | #endif 37 | {% endblock %} 38 | 39 | {% block call %} 40 | {{ func.name }}_INDEXED packed_data; 41 | packed_data.func = {{ func.name }}_INDEX; 42 | {% for arg in func.args %} 43 | packed_data.args.a{{ loop.index }} = ({{ arg.type|unconst }}){{ arg.name }}; 44 | {% endfor %} 45 | {% if not func.void %} 46 | {{ func.return }} ret; 47 | syscall(SYS_proxy, (void *)&packed_data, &ret); 48 | return ret; 49 | {% else %} 50 | syscall(SYS_proxy, (void *)&packed_data, NULL); 51 | {% endif %} 52 | {% endblock %} 53 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/eglwrap.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.c.j2" %} 2 | {% block headers %} 3 | {{ super() }} 4 | void *egl_lib; 5 | #define WARN_NULL(name) if (name == NULL) printf("LIBGL: warning, " #name " is NULL\n"); 6 | #define LOAD_EGL(type, name, args...) \ 7 | typedef type (*eglptr_##name)(args); \ 8 | static eglptr_##name egl_##name; \ 9 | if (egl##name == NULL) { \ 10 | if (egl_lib == NULL) { \ 11 | egl_lib = dlopen("libEGL.so", RTLD_LOCAL | RTLD_LAZY); \ 12 | WARN_NULL(egl_lib); \ 13 | } \ 14 | egl_##name = (eglptr_##name)dlsym(egl_lib, #name); \ 15 | WARN_NULL(egl_lib_##name); \ 16 | } \ 17 | {% endblock %} 18 | 19 | {% block load %} 20 | LOAD_EGL({{ func.return }}, {{ func.name }} 21 | {%- if func.args %}, {{ func.args|args }}{% endif %}); 22 | {% endblock %} 23 | {% block prefix %}egl{% endblock %} 24 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/gleswrap.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.c.j2" %} 2 | {% block headers %} 3 | {{ super() }} 4 | 5 | {% endblock %} 6 | {% block content %} 7 | {% include "base/packed_call.j2" %} 8 | 9 | /* 10 | {% include "base/copy_packed_call.j2" %} 11 | */ 12 | 13 | {% endblock %} 14 | 15 | {% block definition %} 16 | #ifndef skip_{{ func.name }} 17 | {{ super() -}} 18 | #endif 19 | {% endblock %} 20 | {% block load %} 21 | {{ func.loadlib }}({{ func.name }}); 22 | {% endblock %} 23 | {% block call %} 24 | #ifndef direct_{{ func.name }} 25 | PUSH_IF_COMPILING({{ func.name }}) 26 | #endif 27 | {{ super() }} 28 | {% endblock %} 29 | {% block prefix %}gles{% endblock %} 30 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/glextwrap.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.c.j2" %} 2 | {% block headers %} 3 | {{ super() }} 4 | 5 | {% endblock %} 6 | {% block definition %} 7 | #ifndef skip_{{ func.name }} 8 | {{ super() -}} 9 | #endif 10 | {% endblock %} 11 | {% block load %} 12 | {{ func.loadlib }}({{ func.name }}); 13 | {% endblock %} 14 | {% block call %} 15 | #ifndef direct_{{ func.name }} 16 | PUSH_IF_COMPILING({{ func.name }}) 17 | #endif 18 | {{ super() }} 19 | {% endblock %} 20 | {% block prefix %}gles{% endblock %} 21 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/glwrap.h.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.h.j2" %} 2 | {% block content %} 3 | {{ super() }} 4 | 5 | {% for func in functions %} 6 | #ifndef direct_{{ func.name }} 7 | #define push_{{ func.name }}({{ func.args|args(0) }}) { \ 8 | {{ func.name }}_PACKED *packed_data = malloc(sizeof({{ func.name }}_PACKED)); \ 9 | packed_data->format = {{ func.name }}_FORMAT; \ 10 | packed_data->func = gl4es_{{ func.name }}; \ 11 | {% if func.args %} 12 | {% for arg in func.args %} 13 | packed_data->args.a{{ loop.index }} = ({{ arg.type|unconst }}){{ arg.name }}; \ 14 | {% endfor %} 15 | {% endif %} 16 | glPushCall((void *)packed_data); \ 17 | } 18 | #endif 19 | {% endfor %} 20 | {% endblock %} -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/glxfuncs.j2: -------------------------------------------------------------------------------- 1 | {% for func in functions %} 2 | _EX({{ func.name }}); 3 | {% endfor %} 4 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/host.c.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/header.j2" %} 2 | 3 | {% block content %} 4 | {% include "base/indexed_call.j2" %} 5 | 6 | {% endblock %} 7 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/spec/template/proxy.h.j2: -------------------------------------------------------------------------------- 1 | {% extends "base/wrap.h.j2" %} 2 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/agl/agl.h: -------------------------------------------------------------------------------- 1 | #ifndef _AGL_H_ 2 | #define _AGL_H_ 3 | 4 | #ifndef EXEC_TYPES_H 5 | #include 6 | #endif 7 | #ifndef EXEC_EXEC_H 8 | #include 9 | #endif 10 | #ifndef EXEC_INTERFACES_H 11 | #include 12 | #endif 13 | 14 | #ifndef GRAPHICS_GFX_H 15 | #include 16 | #endif 17 | 18 | #ifndef OGLES2_OGLES2_DEFS_H 19 | // it would be better to have an include with only the CreateContextTags enum difed, to avoid conflict 20 | // of other typedef with full OpenGL header file... 21 | #include 22 | #endif 23 | 24 | void* aglCreateContext(ULONG * errcode, struct TagItem * tags); 25 | void* aglCreateContext2(ULONG * errcode, struct TagItem * tags); 26 | //void* aglCreateContextTags(ULONG * errcode, ...); 27 | void aglDestroyContext(void* context); 28 | void aglMakeCurrent(void* context); 29 | void aglSwapBuffers(); 30 | void aglSetParams2(struct TagItem * tags); 31 | void aglSetBitmap(struct BitMap *bitmap); 32 | void* aglGetProcAddress(const char* name); 33 | 34 | #endif //_AGL_H_ -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/agl/amigaos.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMIGAOS_H_ 2 | #define _AMIGAOS_H_ 3 | 4 | void* os4GetProcAddress(const char* name); 5 | 6 | void os4OpenLib(void** lib); 7 | void os4CloseLib(); 8 | 9 | #endif //_AMIGAOS_H_ -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/config.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_MAIN_CONFIG_H 2 | #define _GL4ES_MAIN_CONFIG_H 3 | 4 | #define SYS_proxy 9999 5 | #define MAX_EVAL_ORDER 30 6 | #define MAX_TEX 8 7 | #define MAX_LIGHT 8 8 | #define MAX_STACK_PROJECTION 16 9 | #define MAX_STACK_TEXTURE 16 10 | #define MAX_STACK_MODELVIEW 64 11 | #define MAX_STACK_COLOR 16 12 | #define MAX_CLIP_PLANES 6 13 | #define MAX_VATTRIB 32 14 | #define MAX_MAP_SIZE 256 15 | 16 | #endif // _GL4ES_MAIN_CONFIG_H 17 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/array.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_ARRAY_H_ 2 | #define _GL4ES_ARRAY_H_ 3 | 4 | #include "buffers.h" 5 | #include "gles.h" 6 | 7 | GLvoid *copy_gl_array(const GLvoid *src, 8 | GLenum from, GLsizei width, GLsizei stride, 9 | GLenum to, GLsizei to_width, GLsizei skip, GLsizei count); 10 | 11 | GLvoid *copy_gl_array_convert(const GLvoid *src, 12 | GLenum from, GLsizei width, GLsizei stride, 13 | GLenum to, GLsizei to_width, GLsizei skip, GLsizei count, GLvoid* filler); 14 | 15 | GLvoid *copy_gl_pointer(pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 16 | GLvoid *copy_gl_pointer_color(pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 17 | GLvoid *copy_gl_pointer_color_bgra(const void *ptr, GLint stride, GLsizei width, GLsizei skip, GLsizei count); 18 | GLvoid *copy_gl_pointer_bytecolor(pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 19 | GLvoid *copy_gl_pointer_raw(pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 20 | GLvoid *copy_gl_pointer_tex(pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 21 | void copy_gl_pointer_tex_noalloc(void* dest, pointer_state_t *ptr, GLsizei width, GLsizei skip, GLsizei count); 22 | GLfloat *gl_pointer_index(pointer_state_t *ptr, GLint index); 23 | void normalize_indices_us(GLushort *indices, GLsizei *max, GLsizei *min, GLsizei count); 24 | void getminmax_indices_us(const GLushort *indices, GLsizei *max, GLsizei *min, GLsizei count); 25 | void normalize_indices_ui(GLuint *indices, GLsizei *max, GLsizei *min, GLsizei count); 26 | void getminmax_indices_ui(const GLuint *indices, GLsizei *max, GLsizei *min, GLsizei count); 27 | 28 | GLfloat *copy_eval_double1(GLenum target, GLint ustride, GLint uorder, const GLdouble *points); 29 | GLfloat *copy_eval_float1(GLenum target, GLint ustride, GLint uorder, const GLfloat *points); 30 | GLfloat *copy_eval_double2(GLenum target, GLint ustride, GLint uorder, GLint vstride, GLint vorder, const GLdouble *points); 31 | GLfloat *copy_eval_float2(GLenum target, GLint ustride, GLint uorder, GLint vstride, GLint vorder, const GLfloat *points); 32 | 33 | #endif // _GL4ES_ARRAY_H_ 34 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/attributes.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_ATTRIBUTES_H_ 2 | #define _GL4ES_ATTRIBUTES_H_ 3 | 4 | #ifndef AliasExport 5 | #ifdef __EMSCRIPTEN__ 6 | #define AliasExport(name) 7 | #else 8 | #define AliasExport(name) __attribute__((alias(name))) __attribute__((visibility("default"))) 9 | #endif 10 | #endif // AliasExport 11 | 12 | #ifndef FASTMATH 13 | #ifdef __GNUC__ 14 | #ifdef __arm__ 15 | #ifdef __ARM_PCS_VFP 16 | //#warning Arm Hardfloat detected 17 | #define FASTMATH 18 | #else // __ARM_PCS_VFP 19 | #if defined(__ARM_FP) && defined(PANDORA) 20 | //#warning Arm SoftFP detected 21 | #define FASTMATH __attribute__((pcs("aapcs-vfp"))) 22 | #else // defined(__ARM_FP) && defined(PANDORA) 23 | //#warning Arm no FP detected 24 | #define FASTMATH 25 | #endif // defined(__ARM_FP) && defined(PANDORA) 26 | #endif // __ARM_PCS_VFP 27 | #else // __arm__ 28 | #define FASTMATH 29 | #endif // __arm__ 30 | #else // __GNUC__ 31 | #define FASTMATH 32 | #endif // __GNUC__ 33 | #endif // FASTMATH 34 | 35 | #endif // _GL4ES_ATTRIBUTES_H_ 36 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/blend.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_BLEND_H_ 2 | #define _GL4ES_BLEND_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 7 | void gl4es_glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); 8 | void gl4es_glBlendEquationSeparate(GLenum modeRGB, GLenum modeA); 9 | void gl4es_glBlendFunc(GLenum sfactor, GLenum dfactor); 10 | void gl4es_glBlendEquation(GLenum mode); 11 | 12 | #endif //_GL4ES_BLEND_H_ 13 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/blit.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_BLIT_H_ 2 | #define _GL4ES_BLIT_H_ 3 | 4 | #include "gles.h" 5 | 6 | #define BLIT_ALPHA 0 7 | #define BLIT_OPAQUE 1 8 | #define BLIT_COLOR 2 9 | 10 | void gl4es_blitTexture(GLuint texture, 11 | GLfloat sx, GLfloat sy, 12 | GLfloat width, GLfloat height, 13 | GLfloat nwidth, GLfloat nheight, 14 | GLfloat zoomx, GLfloat zoomy, 15 | GLfloat vpwidth, GLfloat vpheight, 16 | GLfloat x, GLfloat y, GLint mode); 17 | 18 | #endif // _GL4ES_BLIT_H_ 19 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/build_info.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "build_info.h" 3 | #include "logs.h" 4 | #include "../../version.h" 5 | 6 | void print_build_infos() 7 | { 8 | LOGD("LIBGL: v%d.%d.%d built on %s %s\n", MAJOR, MINOR, REVISION, __DATE__, __TIME__); 9 | } 10 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/build_info.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_BUILD_INFO_H_ 2 | #define _GL4ES_BUILD_INFO_H_ 3 | 4 | void print_build_infos(); 5 | 6 | #endif // _GL4ES_BUILD_INFO_H_ 7 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/debug.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_DEBUG_H_ 2 | #define _GL4ES_DEBUG_H_ 3 | 4 | #include "gles.h" 5 | 6 | const char* PrintEnum(GLenum what); 7 | 8 | const char* PrintEGLError(int onlyerror); 9 | 10 | void CheckGLError(int fwd); 11 | 12 | #endif // _GL4ES_DEBUG_H_ 13 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/decompress.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/src/gl/decompress.c -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/decompress.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_DECOMPRESS_H_ 2 | #define _GL4ES_DECOMPRESS_H_ 3 | 4 | void DecompressBlockDXT1(uint32_t x, uint32_t y, uint32_t width, 5 | const uint8_t* blockStorage, 6 | uint32_t* image); 7 | 8 | void DecompressBlockDXT3(uint32_t x, uint32_t y, uint32_t width, 9 | const uint8_t* blockStorage, 10 | uint32_t* image); 11 | 12 | void DecompressBlockDXT5(uint32_t x, uint32_t y, uint32_t width, 13 | const uint8_t* blockStorage, uint32_t* image); 14 | 15 | #endif // _GL4ES_DECOMPRESS_H_ 16 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/depth.c: -------------------------------------------------------------------------------- 1 | #include "depth.h" 2 | 3 | #include "gl4es.h" 4 | #include "glstate.h" 5 | #include "loader.h" 6 | 7 | void gl4es_glDepthFunc(GLenum func) { 8 | if(glstate->list.compiling) { 9 | PUSH_IF_COMPILING(glDepthFunc); 10 | } 11 | noerrorShim(); 12 | if (glstate->depth.func == func) 13 | return; 14 | if(glstate->list.pending) 15 | flush(); 16 | glstate->depth.func = func; 17 | LOAD_GLES(glDepthFunc); 18 | errorGL(); 19 | gles_glDepthFunc(func); 20 | } 21 | 22 | void gl4es_glDepthMask(GLboolean flag) { 23 | if(glstate->list.compiling) { 24 | PUSH_IF_COMPILING(glDepthMask); 25 | } 26 | noerrorShim(); 27 | if (glstate->depth.mask == flag) 28 | return; 29 | if(glstate->list.pending) 30 | flush(); 31 | glstate->depth.mask = flag; 32 | LOAD_GLES(glDepthMask); 33 | errorGL(); 34 | gles_glDepthMask(flag); 35 | } 36 | 37 | GLfloat clamp(GLfloat a) { 38 | return (a<0.f)?0.f:((a>1.f)?1.f:a); 39 | } 40 | 41 | void gl4es_glDepthRangef(GLclampf near, GLclampf far) { 42 | near = clamp(near); 43 | far = clamp(far); 44 | if(glstate->list.compiling) { 45 | PUSH_IF_COMPILING(glDepthRangef); 46 | } 47 | noerrorShim(); 48 | if ((glstate->depth.near == near) && (glstate->depth.far == far)) 49 | return; 50 | if(glstate->list.pending) 51 | flush(); 52 | glstate->depth.near = near; 53 | glstate->depth.far = far; 54 | LOAD_GLES(glDepthRangef); 55 | errorGL(); 56 | gles_glDepthRangef(near, far); 57 | } 58 | 59 | void gl4es_glClearDepthf(GLclampf depth) { 60 | depth = clamp(depth); 61 | if(glstate->list.compiling) { 62 | PUSH_IF_COMPILING(glClearDepthf); 63 | } 64 | noerrorShim(); 65 | glstate->depth.clear = depth; 66 | LOAD_GLES(glClearDepthf); 67 | errorGL(); 68 | gles_glClearDepthf(depth); 69 | } 70 | 71 | void glDepthFunc(GLenum func) AliasExport("gl4es_glDepthFunc"); 72 | void glDepthMask(GLboolean flag) AliasExport("gl4es_glDepthMask"); 73 | void glDepthRangef(GLclampf nearVal, GLclampf farVal) AliasExport("gl4es_glDepthRangef"); 74 | 75 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/depth.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_DEPTH_H_ 2 | #define _GL4ES_DEPTH_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glDepthFunc(GLenum func); 7 | void gl4es_glDepthMask(GLboolean flag); 8 | void gl4es_glDepthRangef(GLclampf nearVal, GLclampf farVal); 9 | void gl4es_glClearDepthf(GLclampf depth); 10 | 11 | #endif // _GL4ES_DEPTH_H_ 12 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/face.c: -------------------------------------------------------------------------------- 1 | #include "face.h" 2 | 3 | #include "loader.h" 4 | #include "gl4es.h" 5 | #include "glstate.h" 6 | 7 | void gl4es_glCullFace(GLenum mode) { 8 | if(!glstate->list.pending) 9 | PUSH_IF_COMPILING(glCullFace); 10 | if(mode!=GL_FRONT && mode!=GL_BACK && mode!=GL_FRONT_AND_BACK) { 11 | errorShim(GL_INVALID_ENUM); 12 | return; 13 | } 14 | if(glstate->face.cull == mode) { 15 | noerrorShim(); 16 | return; 17 | } 18 | if(glstate->list.pending) 19 | flush(); 20 | 21 | glstate->face.cull = mode; 22 | LOAD_GLES(glCullFace); 23 | gles_glCullFace(mode); 24 | } 25 | 26 | void gl4es_glFrontFace(GLenum mode) { 27 | if(!glstate->list.pending) 28 | PUSH_IF_COMPILING(glFrontFace); 29 | if(mode!=GL_CW && mode!=GL_CCW) { 30 | errorShim(GL_INVALID_ENUM); 31 | return; 32 | } 33 | if(glstate->face.front == mode) { 34 | noerrorShim(); 35 | return; 36 | } 37 | if(glstate->list.pending) 38 | flush(); 39 | 40 | glstate->face.front = mode; 41 | LOAD_GLES(glFrontFace); 42 | gles_glFrontFace(mode); 43 | } 44 | 45 | 46 | void glCullFace(GLenum mode) AliasExport("gl4es_glCullFace"); 47 | void glFrontFace(GLenum mode) AliasExport("gl4es_glFrontFace"); 48 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/face.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_FACE_H_ 2 | #define _GL4ES_FACE_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glCullFace(GLenum mode); 7 | void gl4es_glFrontFace(GLenum mode); 8 | 9 | #endif // _GL4ES_FACE_H_ 10 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/fog.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_FOG_H_ 2 | #define _GL4ES_FOG_H_ 3 | 4 | #include "gles.h" 5 | 6 | typedef struct { 7 | GLenum mode; 8 | GLfloat density; 9 | GLfloat start; 10 | GLfloat end; 11 | GLfloat index; 12 | GLfloat color[4]; 13 | GLenum coord_src; 14 | } fog_t; 15 | 16 | void gl4es_glFogfv(GLenum pname, const GLfloat* params); 17 | void gl4es_glFogf(GLenum pname, GLfloat param); 18 | 19 | void gl4es_glFogCoordf(GLfloat coord); 20 | void gl4es_glFogCoordfv(const GLfloat *coord); 21 | 22 | #endif // _GL4ES_FOG_H_ 23 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/fpe_shader.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_FPE_SHADER_H_ 2 | #define _GL4ES_FPE_SHADER_H_ 3 | 4 | #include "fpe.h" 5 | 6 | const char* fpeshader_signature; 7 | 8 | const char* const* fpe_VertexShader(fpe_state_t *state); 9 | const char* const* fpe_FragmentShader(fpe_state_t *state); 10 | 11 | const char* const* fpe_CustomVertexShader(const char* initial, fpe_state_t* state); 12 | const char* const* fpe_CustomFragmentShader(const char* initial, fpe_state_t* state); 13 | 14 | #endif // _GL4ES_FPE_SHADER_H_ 15 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/hint.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_HINT_H_ 2 | #define _GL4ES_HINT_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glHint(GLenum pname, GLenum mode); 7 | 8 | #endif // _GL4ES_HINT_H_ 9 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/init.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_INIT_H_ 2 | #define _GL4ES_INIT_H_ 3 | 4 | #if defined(PANDORA) 5 | #define USE_FBIO 1 6 | #endif 7 | 8 | typedef struct _globals4es { 9 | int nobanner; 10 | int mergelist; 11 | int xrefresh; 12 | int stacktrace; 13 | int usefb; 14 | int usegbm; 15 | int usefbo; 16 | int recyclefbo; 17 | int usepbuffer; 18 | int showfps; 19 | int vsync; 20 | int automipmap; 21 | int texcopydata; 22 | int tested_env; 23 | int texshrink; 24 | int texdump; 25 | int alphahack; 26 | int texstream; 27 | int nolumalpha; 28 | int blendhack; 29 | int blendcolor; 30 | int noerror; 31 | int npot; 32 | int defaultwrap; 33 | int queries; 34 | int silentstub; 35 | int glx_surface_srgb; 36 | int nodownsampling; 37 | int vabgra; 38 | int nobgra; 39 | int potframebuffer; 40 | float gamma; 41 | int texmat; 42 | int novaocache; 43 | int beginend; 44 | int avoid16bits; 45 | int avoid24bits; 46 | int force16bits; 47 | int nohighp; 48 | int batch; 49 | int es; 50 | int gl; 51 | int usevbo; 52 | int comments; 53 | int forcenpot; 54 | int fbomakecurrent; // hack to bind/unbind FBO when doing glXMakeCurrent 55 | int fbounbind; // hack to bind/unbind fbo if a bind texture is used for drawing 56 | int fboforcetex; // force texture attachment for Color0 57 | int notexarray; 58 | int nodepthtex; 59 | int logshader; 60 | int shadernogles; 61 | int floattex; 62 | int glxrecycle; 63 | int noclean; 64 | int arb_program; 65 | int dbgshaderconv; 66 | #ifndef NO_GBM 67 | char drmcard[50]; 68 | #endif 69 | char version[50]; 70 | } globals4es_t; 71 | 72 | extern globals4es_t globals4es; 73 | 74 | #endif // _GL4ES_INIT_H_ 75 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/light.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_LIGHT_H_ 2 | #define _GL4ES_LIGHT_H_ 3 | 4 | #include "gles.h" 5 | #include "../config.h" 6 | 7 | typedef struct { 8 | GLfloat ambient[4]; 9 | GLfloat diffuse[4]; 10 | GLfloat specular[4]; 11 | GLfloat constantAttenuation, linearAttenuation, quadraticAttenuation; 12 | GLfloat position[4]; 13 | GLfloat spotDirection[3]; // It's only 3 in fact, because it's a direction 14 | GLfloat spotExponent; 15 | GLfloat spotCutoff; 16 | } light_t; 17 | 18 | typedef struct { 19 | light_t lights[MAX_LIGHT]; 20 | GLfloat ambient[4]; 21 | GLboolean two_side; 22 | GLboolean separate_specular; 23 | GLboolean local_viewer; 24 | } light_state_t; 25 | 26 | typedef struct { 27 | GLfloat ambient[4]; 28 | GLfloat diffuse[4]; 29 | GLfloat specular[4]; 30 | GLfloat emission[4]; 31 | GLfloat shininess; 32 | int indexes[3]; 33 | GLenum colormat; 34 | } material_t; 35 | 36 | typedef struct { 37 | material_t front; 38 | material_t back; 39 | } material_state_t; 40 | 41 | void gl4es_glLightModelf(GLenum pname, GLfloat param); 42 | void gl4es_glLightModelfv(GLenum pname, const GLfloat* params); 43 | void gl4es_glLightfv(GLenum light, GLenum pname, const GLfloat* params); 44 | void gl4es_glLightf(GLenum light, GLenum pname, const GLfloat params); 45 | 46 | void gl4es_glGetLightfv(GLenum light, GLenum pname, GLfloat * params); 47 | void gl4es_glGetLightiv(GLenum light, GLenum pname, GLint * params); 48 | 49 | void gl4es_glMaterialfv(GLenum face, GLenum pname, const GLfloat *params) ; 50 | void gl4es_glMaterialf(GLenum face, GLenum pname, const GLfloat param); 51 | void gl4es_glColorMaterial(GLenum face, GLenum mode); 52 | 53 | #endif // _GL4ES_LIGHT_H_ 54 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/line.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_LINE_H 2 | #define _GL4ES_LINE_H 3 | 4 | #include "gles.h" 5 | #include "list.h" 6 | 7 | void gl4es_glLineStipple(GLuint factor, GLushort pattern); 8 | GLfloat *gen_stipple_tex_coords(GLfloat *vert, GLushort *sindices, modeinit_t *modes, int stride, int length, GLfloat* noalloctex); 9 | void bind_stipple_tex(); 10 | 11 | #endif // _GL4ES_LINE_H 12 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/logs.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_LOGS_H_ 2 | #define _GL4ES_LOGS_H_ 3 | 4 | #include 5 | 6 | #define LOGD(...) printf(__VA_ARGS__) 7 | #define LOGE(...) fprintf(stderr, __VA_ARGS__) 8 | 9 | #endif // _GL4ES_LOGS_H_ 10 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/matrix.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_MATRIX_H_ 2 | #define _GL4ES_MATRIX_H_ 3 | 4 | #include "gl4es.h" 5 | #include "gles.h" 6 | #include "glstate.h" 7 | #include "list.h" 8 | #include "matvec.h" 9 | 10 | void gl4es_glMatrixMode(GLenum mode); 11 | void gl4es_glPushMatrix(); 12 | void gl4es_glPopMatrix(); 13 | void gl4es_glLoadMatrixf(const GLfloat * m); 14 | void gl4es_glMultMatrixf(const GLfloat * m); 15 | void gl4es_glLoadIdentity(); 16 | void gl4es_glTranslatef(GLfloat x, GLfloat y, GLfloat z); 17 | void gl4es_glScalef(GLfloat x, GLfloat y, GLfloat z); 18 | void gl4es_glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); 19 | void gl4es_glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearVal, GLfloat farVal); 20 | void gl4es_glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat nearVal, GLfloat farVal); 21 | 22 | static inline GLfloat* getTexMat(int tmu) { 23 | return glstate->texture_matrix[tmu]->stack+glstate->texture_matrix[tmu]->top*16; 24 | } 25 | 26 | static inline GLfloat* getMVMat() { 27 | return glstate->modelview_matrix->stack+glstate->modelview_matrix->top*16; 28 | } 29 | 30 | static inline GLfloat* getInvMVMat() { 31 | if(glstate->inv_mv_matrix_dirty) { 32 | matrix_inverse(glstate->modelview_matrix->stack+glstate->modelview_matrix->top*16, glstate->inv_mv_matrix); 33 | glstate->inv_mv_matrix_dirty = 0; 34 | } 35 | return glstate->inv_mv_matrix; 36 | } 37 | static inline GLfloat* getNormalMat() { 38 | if(glstate->normal_matrix_dirty) { 39 | matrix_inverse3_transpose(glstate->modelview_matrix->stack+glstate->modelview_matrix->top*16, glstate->normal_matrix); 40 | glstate->normal_matrix_dirty = 0; 41 | } 42 | return glstate->normal_matrix; 43 | } 44 | 45 | static inline GLfloat* getPMat() { 46 | return glstate->projection_matrix->stack+glstate->projection_matrix->top*16; 47 | } 48 | 49 | static inline GLfloat* getMVPMat() 50 | { 51 | if(glstate->mvp_matrix_dirty) { 52 | matrix_mul(getPMat(), getMVMat(), glstate->mvp_matrix); 53 | glstate->mvp_matrix_dirty = 0; 54 | } 55 | return glstate->mvp_matrix; 56 | } 57 | 58 | 59 | #endif // _GL4ES_MATRIX_H_ 60 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/matvec.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_MATVEC_H_ 2 | #define _GL4ES_MATVEC_H_ 3 | 4 | #include 5 | #include "attributes.h" 6 | 7 | float dot(const float *a, const float *b) FASTMATH; 8 | float dot4(const float *a, const float *b) FASTMATH; 9 | float cross3(const float *a, const float *b, float* c) FASTMATH; 10 | void matrix_vector(const float *a, const float *b, float *c); 11 | void vector_matrix(const float *a, const float *b, float *c); 12 | void vector3_matrix(const float *a, const float *b, float *c); 13 | void vector3_matrix3(const float *a, const float *b, float *c); 14 | void vector3_matrix4(const float *a, const float *b, float *c); 15 | void vector_normalize(float *a); 16 | void vector4_normalize(float *a); 17 | void vector4_mult(const float *a, const float *b, float *c); 18 | void vector4_add(const float *a, const float *b, float *c); 19 | void matrix_transpose(const float *a, float *b); 20 | void matrix_inverse(const float *m, float *r); 21 | void matrix_inverse3_transpose(const float *m, float *r); // upper3x3 of matrix4 -> inverse -> transposed mat3 22 | void matrix_mul(const float *a, const float *b, float *c); 23 | void set_identity(float* mat); 24 | int is_identity(const float* mat); 25 | 26 | #endif // _GL4ES_MATVEC_H_ 27 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/pixel.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_PIXEL_H_ 2 | #define _GL4ES_PIXEL_H_ 3 | 4 | #include 5 | #include "gles.h" 6 | 7 | typedef struct { 8 | GLenum type; 9 | GLint red, green, blue, alpha; 10 | } colorlayout_t; 11 | 12 | typedef struct { 13 | GLfloat r, g, b, a; 14 | } pixel_t; 15 | 16 | #define widthalign(width, align) ((((uintptr_t)(width))+((uintptr_t)(align)-1))&(~((uintptr_t)(align)-1))) 17 | 18 | bool pixel_convert(const GLvoid *src, GLvoid **dst, 19 | GLuint width, GLuint height, 20 | GLenum src_format, GLenum src_type, 21 | GLenum dst_format, GLenum dst_type, GLuint stride, GLuint align); 22 | 23 | bool pixel_transform(const GLvoid *src, GLvoid **dst, 24 | GLuint width, GLuint height, 25 | GLenum src_format, GLenum src_type, 26 | const GLfloat *scale, const GLfloat *bias); 27 | 28 | bool pixel_scale(const GLvoid *src, GLvoid **dst, 29 | GLuint width, GLuint height, 30 | GLuint new_width, GLuint new_height, 31 | GLenum format, GLenum type); 32 | 33 | bool pixel_halfscale(const GLvoid *src, GLvoid **dst, 34 | GLuint width, GLuint height, 35 | GLenum format, GLenum type); 36 | 37 | bool pixel_thirdscale(const GLvoid *src, GLvoid **dst, 38 | GLuint width, GLuint height, 39 | GLenum format, GLenum type); 40 | 41 | bool pixel_quarterscale(const GLvoid *src, GLvoid **dst, 42 | GLuint width, GLuint height, 43 | GLenum format, GLenum type); 44 | 45 | bool pixel_doublescale(const GLvoid *src, GLvoid **dst, 46 | GLuint width, GLuint height, 47 | GLenum format, GLenum type); 48 | 49 | bool pixel_to_ppm(const GLvoid *pixels, 50 | GLuint width, GLuint height, 51 | GLenum format, GLenum type, GLuint name, GLuint align); 52 | 53 | #endif // _GL4ES_PIXEL_H_ 54 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/planes.c: -------------------------------------------------------------------------------- 1 | #include "planes.h" 2 | 3 | #include "../glx/hardext.h" 4 | #include "loader.h" 5 | #include "matrix.h" 6 | #include "matvec.h" 7 | 8 | void gl4es_glClipPlanef(GLenum plane, const GLfloat *equation) 9 | { 10 | /* 11 | When glClipPlane is called, 12 | equation is transformed by the inverse of the modelview matrix and stored in the resulting eye coordinates. 13 | Subsequent changes to the modelview matrix have no effect on the stored plane-equation components. 14 | If the dot product of the eye coordinates of a vertex with the stored plane equation components is positive or zero, 15 | the vertex is in with respect to that clipping plane. Otherwise, it is out. 16 | */ 17 | PUSH_IF_COMPILING(glClipPlanef); //TODO: fix that, equation is an array and should be copied before beeing put in the stack 18 | if(plane=GL_CLIP_PLANE0+hardext.maxplanes) { 19 | errorShim(GL_INVALID_ENUM); 20 | return; 21 | } 22 | if(hardext.esversion==1) { 23 | LOAD_GLES2(glClipPlanef); 24 | errorGL(); 25 | gles_glClipPlanef(plane, equation); 26 | } else { // TODO: should fist compute the clipplane and compare to stored one before sending to hardware 27 | int p = plane-GL_CLIP_PLANE0; 28 | matrix_vector(getInvMVMat(), equation, glstate->planes[p]); //Tested, seems ok 29 | noerrorShim(); 30 | } 31 | } 32 | 33 | void glClipPlanef(GLenum pname, const GLfloat* params) AliasExport("gl4es_glClipPlanef"); -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/planes.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_PLANES_H_ 2 | #define _GL4ES_PLANES_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glClipPlanef(GLenum plane, const GLfloat *equation); 7 | 8 | #endif // _GL4ES_PLANES_H_ 9 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/pointsprite.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_POINTSPRITE_H_ 2 | #define _GL4ES_POINTSPRITE_H_ 3 | 4 | #include "gles.h" 5 | 6 | typedef struct { 7 | GLfloat size; 8 | GLfloat sizeMin; 9 | GLfloat sizeMax; 10 | GLfloat fadeThresholdSize; 11 | GLfloat distance[3]; 12 | GLenum coordOrigin; 13 | } pointsprite_t; 14 | 15 | void gl4es_glPointParameteri(GLenum pname, GLint param); 16 | void gl4es_glPointParameteriv(GLenum pname, const GLint * params); 17 | void gl4es_glPointParameterf(GLenum pname, GLfloat param); 18 | void gl4es_glPointParameterfv(GLenum pname, const GLfloat * params); 19 | 20 | void gl4es_glPointSize(GLfloat size); 21 | 22 | #endif // _GL4ES_POINTSPRITE_H_ 23 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/preproc.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_PREPROC_H_ 2 | #define _GL4ES_PREPROC_H_ 3 | 4 | typedef struct { 5 | char name[50]; 6 | int state; //0:disable, 1:warn, 1:enable, 2:require 7 | } extension_t; 8 | 9 | typedef struct { 10 | extension_t *ext; 11 | int size; 12 | int cap; 13 | } extensions_t; 14 | 15 | char* preproc(const char* code, int keepcomments, int gl_es, extensions_t* exts); 16 | 17 | #endif // _GL4ES_PREPROC_H_ 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/queries.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_QUERIES_H_ 2 | #define _GL4ES_QUERIES_H_ 3 | 4 | #include 5 | #include "gles.h" 6 | 7 | void gl4es_glBeginQuery(GLenum target, GLuint id); 8 | void gl4es_glEndQuery(GLenum target); 9 | void gl4es_glGenQueries(GLsizei n, GLuint * ids); 10 | void gl4es_glDeleteQueries(GLsizei n, const GLuint* ids); 11 | GLboolean gl4es_glIsQuery(GLuint id); 12 | void gl4es_glGetQueryiv(GLenum target, GLenum pname, GLint* params); 13 | void gl4es_glGetQueryObjectiv(GLuint id, GLenum pname, GLint* params); 14 | void gl4es_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params); 15 | 16 | typedef struct { 17 | GLuint id; 18 | GLenum target; 19 | int num; 20 | } glquery_t; 21 | 22 | KHASH_MAP_DECLARE_INT(queries, glquery_t *) 23 | 24 | #endif // _GL4ES_QUERIES_H_ 25 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/raster.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_RASTER_H_ 2 | #define _GL4ES_RASTER_H_ 3 | 4 | #include "gles.h" 5 | #include "list.h" 6 | 7 | #ifndef GL_STENCIL_INDEX 8 | #define GL_STENCIL_INDEX 0x1901 9 | #endif // GL_STENCIL_INDEX 10 | #ifndef GL_DEPTH_COMPONENT 11 | #define GL_DEPTH_COMPONENT 0x1902 12 | #endif // GL_DEPTH_COMPONENT 13 | 14 | typedef struct { 15 | GLfloat x; 16 | GLfloat y; 17 | GLfloat z; 18 | } rasterpos_t; 19 | 20 | typedef struct { 21 | GLint x; 22 | GLint y; 23 | GLsizei width; 24 | GLsizei height; 25 | } viewport_t; 26 | 27 | int raster_need_transform(); 28 | 29 | void gl4es_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, 30 | GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); 31 | void gl4es_glDrawPixels(GLsizei width, GLsizei height, GLenum format, 32 | GLenum type, const GLvoid *data); 33 | void gl4es_glRasterPos3f(GLfloat x, GLfloat y, GLfloat z); 34 | void gl4es_glWindowPos3f(GLfloat x, GLfloat y, GLfloat z); 35 | void gl4es_glViewport(GLint x, GLint y, GLsizei width, GLsizei height); 36 | void render_raster(); 37 | 38 | void gl4es_glPixelZoom(GLfloat xfactor, GLfloat yfactor); 39 | 40 | void gl4es_glPixelTransferf(GLenum pname, GLfloat param); 41 | 42 | void gl4es_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values); 43 | void gl4es_glPixelMapuiv(GLenum map,GLsizei mapsize, const GLuint *values); 44 | void gl4es_glPixelMapusv(GLenum map,GLsizei mapsize, const GLushort *values); 45 | void gl4es_glGetPixelMapfv(GLenum map, GLfloat *data); 46 | void gl4es_glGetPixelMapuiv(GLenum map, GLuint *data); 47 | void gl4es_glGetPixelMapusv(GLenum map, GLushort *data); 48 | 49 | void render_raster_list(rasterlist_t* raster); 50 | 51 | void bitmap_flush(); 52 | 53 | #endif // _GL4ES_RASTER_H_ 54 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/render.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_RENDER_H_ 2 | #define _GL4ES_RENDER_H_ 3 | 4 | #include "buffers.h" 5 | #include "gles.h" 6 | 7 | GLint gl4es_glRenderMode(GLenum mode); 8 | void gl4es_glInitNames(); 9 | void gl4es_glPopName(); 10 | void gl4es_glPushName(GLuint name); 11 | void gl4es_glLoadName(GLuint name); 12 | void gl4es_glSelectBuffer(GLsizei size, GLuint *buffer); 13 | 14 | void select_glDrawElements(const pointer_state_t* vtx, GLenum mode, GLuint count, GLenum type, GLvoid * indices); 15 | void select_glDrawArrays(const pointer_state_t* vtx, GLenum mode, GLuint first, GLuint count); 16 | 17 | #endif // _GL4ES_RENDER_H_ 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/shaderconv.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_SHADERCONV_H_ 2 | #define _GL4ES_SHADERCONV_H_ 3 | 4 | #include "gles.h" 5 | #include "program.h" 6 | 7 | char* ConvertShader(const char* pBuffer, int isVertex, shaderconv_need_t *need); 8 | 9 | int isBuiltinAttrib(const char* name); 10 | int isBuiltinMatrix(const char* name); 11 | 12 | #endif // _GL4ES_SHADERCONV_H_ 13 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/stencil.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_STENCIL_H_ 2 | #define _GL4ES_STENCIL_H_ 3 | 4 | #include "gles.h" 5 | 6 | typedef struct { 7 | GLenum func[2]; 8 | GLint f_ref[2]; 9 | GLuint f_mask[2]; 10 | GLuint mask[2]; 11 | GLenum sfail[2]; 12 | GLenum dpfail[2]; 13 | GLenum dppass[2]; 14 | GLint clear; 15 | } stencil_t; 16 | 17 | #endif // _GL4ES_STENCIL_H_ 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/string_utils.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_STRING_UTILS_H_ 2 | #define _GL4ES_STRING_UTILS_H_ 3 | 4 | const char* AllSeparators; 5 | 6 | int CountString(char* pBuffer, const char* S); 7 | char* ResizeIfNeeded(char* pBuffer, int *size, int addsize); 8 | char* InplaceReplace(char* pBuffer, int* size, const char* S, const char* D); 9 | char* Append(char* pBuffer, int* size, const char* S); 10 | void InplaceInsert(char* pBuffer, const char* S); 11 | char* GetLine(char* pBuffer, int num); 12 | int CountLine(const char* pBuffer); 13 | int CountString(char* pBuffer, const char* S); 14 | char* StrNext(char *pBuffer, const char* S); // mostly as strstr, but go after the substring if found 15 | //"blank" (space, tab, cr, lf,":", ",", ";", ".", "/") 16 | char* NextStr(char* pBuffer); // go to next non "blank" 17 | char* NextBlank(char* pBuffer); // go to next "blank" 18 | char* NextLine(char* pBuffer); // go to next new line (crlf not included) 19 | 20 | const char* GetNextStr(char* pBuffer); // get a (static) copy of next str (until next separator), can be a simple number or separator also 21 | 22 | #endif // _GL4ES_STRING_UTILS_H_ 23 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/stubs.c: -------------------------------------------------------------------------------- 1 | #include "gl4es.h" 2 | 3 | #define GLAPI __attribute__((visibility("default"))) 4 | #define APIENTRY 5 | #define STUB errorShim(GL_INVALID_VALUE); 6 | 7 | GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp){STUB} 8 | 9 | GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const GLvoid *string){STUB} 10 | GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program){STUB} 11 | GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs){STUB} 12 | GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs){STUB} 13 | GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w){STUB} 14 | GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params){STUB} 15 | GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w){STUB} 16 | GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params){STUB} 17 | GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w){STUB} 18 | GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params){STUB} 19 | GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w){STUB} 20 | GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params){STUB} 21 | GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params){STUB} 22 | GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params){STUB} 23 | GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params){STUB} 24 | GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params){STUB} 25 | GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params){STUB} 26 | GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, GLvoid *string){STUB} 27 | GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program){STUB return 0;} 28 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/texenv.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_TEXENV_H_ 2 | #define _GL4ES_TEXENV_H_ 3 | 4 | #include "gles.h" 5 | 6 | typedef struct { 7 | GLenum mode; 8 | GLfloat color[4]; 9 | GLenum combine_rgb; 10 | GLenum combine_alpha; 11 | GLfloat rgb_scale; 12 | GLfloat alpha_scale; 13 | GLenum src0_rgb; 14 | GLenum src1_rgb; 15 | GLenum src2_rgb; 16 | GLenum src3_rgb; 17 | GLenum src0_alpha; 18 | GLenum src1_alpha; 19 | GLenum src2_alpha; 20 | GLenum src3_alpha; 21 | GLenum op0_rgb; 22 | GLenum op1_rgb; 23 | GLenum op2_rgb; 24 | GLenum op3_rgb; 25 | GLenum op0_alpha; 26 | GLenum op1_alpha; 27 | GLenum op2_alpha; 28 | GLenum op3_alpha; 29 | } texenv_t; 30 | 31 | typedef struct { 32 | GLenum lod_bias; 33 | } texfilter_t; 34 | 35 | void gl4es_glTexEnvf(GLenum target, GLenum pname, GLfloat param); 36 | void gl4es_glTexEnvi(GLenum target, GLenum pname, GLint param); 37 | void gl4es_glTexEnvfv(GLenum target, GLenum pname, const GLfloat *param); 38 | void gl4es_glTexEnviv(GLenum target, GLenum pname, const GLint *param); 39 | void gl4es_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat * params); 40 | void gl4es_glGetTexEnviv(GLenum target, GLenum pname, GLint * params); 41 | 42 | #endif // _GL4ES_TEXENV_H_ 43 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/texgen.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_TEXGEN_H_ 2 | #define _GL4ES_TEXGEN_H_ 3 | 4 | #include "gles.h" 5 | 6 | void gl4es_glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params); 7 | void gl4es_glTexGeni(GLenum coord, GLenum pname, GLint param); 8 | void gen_tex_coords(GLfloat *verts, GLfloat *norm, GLfloat **coords, GLint count, GLint *needclean, int texture, GLushort* indices, GLuint ilen); 9 | void gen_tex_clean(GLint cleancode, int texture); 10 | void gl4es_glGetTexGenfv(GLenum coord,GLenum pname,GLfloat *params); 11 | 12 | void gl4es_glLoadTransposeMatrixf(const GLfloat *m); 13 | void gl4es_glLoadTransposeMatrixd(const GLdouble *m); 14 | void gl4es_glMultTransposeMatrixd(const GLdouble *m); 15 | void gl4es_glMultTransposeMatrixf(const GLfloat *m); 16 | 17 | #endif // _GL4ES_TEXGEN_H_ 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/gl/vertexattrib.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_VERTEXATTRIB_H_ 2 | #define _GL4ES_VERTEXATTRIB_H_ 3 | 4 | #include "gles.h" 5 | 6 | // actual definition of vertexattrib_t is in buffer.h, as they are part of VAO... 7 | 8 | void gl4es_glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer); 9 | void gl4es_glEnableVertexAttribArray(GLuint index); 10 | void gl4es_glDisableVertexAttribArray(GLuint index); 11 | 12 | // other variant are defined in wrap... 13 | void gl4es_glVertexAttrib4f(GLuint index, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); 14 | void gl4es_glVertexAttrib4fv(GLuint index, const GLfloat *v); 15 | 16 | 17 | void gl4es_glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params); 18 | void gl4es_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); 19 | void gl4es_glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params); 20 | void gl4es_glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid **pointer); 21 | 22 | // GL_ARB_instanced_arrays 23 | void gl4es_glVertexAttribDivisor(GLuint index, GLuint divisor); 24 | 25 | #endif // _GL4ES_VERTEXATTRIB_H_ 26 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/glx/gbmfunc.h: -------------------------------------------------------------------------------- 1 | #ifdef GBMFUNC 2 | 3 | GBMFUNC(int,gbm_device_get_fd,(struct gbm_device *gbm)) 4 | GBMFUNC(int,gbm_device_is_format_supported,(struct gbm_device *gbm, 5 | uint32_t format, uint32_t usage)) 6 | GBMFUNC(void,gbm_device_destroy,(struct gbm_device *gbm)) 7 | GBMFUNC(struct gbm_device *,gbm_create_device,(int fd)) 8 | GBMFUNC(unsigned int,gbm_bo_get_width,(struct gbm_bo *bo)) 9 | GBMFUNC(unsigned int,gbm_bo_get_height,(struct gbm_bo *bo)) 10 | GBMFUNC(uint32_t,gbm_bo_get_stride,(struct gbm_bo *bo)) 11 | GBMFUNC(union gbm_bo_handle,gbm_bo_get_handle,(struct gbm_bo *bo)) 12 | GBMFUNC(int,gbm_bo_write,(struct gbm_bo *bo, const void *buf, size_t count)) 13 | GBMFUNC(struct gbm_device *,gbm_bo_get_device,(struct gbm_bo *bo)) 14 | GBMFUNC(void,gbm_bo_set_user_data,(struct gbm_bo *bo, void *data, 15 | void (*destroy_user_data)(struct gbm_bo *, void *))) 16 | GBMFUNC(void *,gbm_bo_get_user_data,(struct gbm_bo *bo)) 17 | GBMFUNC(void,gbm_bo_destroy,(struct gbm_bo *bo)) 18 | GBMFUNC(struct gbm_bo *,gbm_bo_create,(struct gbm_device *gbm, 19 | uint32_t width, uint32_t height, 20 | uint32_t format, uint32_t usage)) 21 | GBMFUNC(struct gbm_surface *,gbm_surface_create,(struct gbm_device *gbm, 22 | uint32_t width, uint32_t height, 23 | uint32_t format, uint32_t flags)) 24 | GBMFUNC(void,gbm_surface_destroy,(struct gbm_surface *surf)) 25 | GBMFUNC(struct gbm_bo *,gbm_surface_lock_front_buffer,(struct gbm_surface *surf)) 26 | GBMFUNC(void,gbm_surface_release_buffer,(struct gbm_surface *surf, struct gbm_bo *bo)) 27 | 28 | #endif -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/glx/glx_gbm.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLX_GBM_H_ 2 | #define _GLX_GBM_H_ 3 | 4 | #ifndef NOEGL 5 | #include 6 | #endif 7 | 8 | void LoadGBMFunctions(); 9 | void CloseGBMFunctions(); 10 | 11 | void* OpenGBMDisplay(void* display); 12 | 13 | void* CreateGBMWindow(int w, int h); 14 | void DeleteGBMWindow(void* win); 15 | 16 | #if !defined(NOEGL) && !defined(ANDROID) 17 | int FindGBMConfig(EGLConfig *configs, int numFounds); 18 | #endif 19 | 20 | #endif // _GLX_GBM_H_ 21 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/glx/rpi.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLX_RPI_H_ 2 | #define _GLX_RPI_H_ 3 | 4 | // Code specific to RPI 5 | 6 | void rpi_init(); 7 | void rpi_fini(); 8 | void* create_rpi_window(int w, int h); 9 | void delete_rpi_window(void* win); 10 | 11 | #endif // _GLX_RPI_H_ 12 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/src/glx/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLX_UTILS_H_ 2 | #define _GLX_UTILS_H_ 3 | 4 | #ifndef NOX11 5 | #include 6 | #include 7 | #endif // NOX11 8 | #include 9 | #include 10 | 11 | #include "../gl/gl4es.h" 12 | #ifndef NOX11 13 | void 14 | fill_bitmap(Display * dpy, Window win, GC gc, 15 | unsigned int width, unsigned int height, 16 | int x0, int y0, unsigned int c, GLubyte * bitmap); 17 | 18 | XCharStruct * 19 | isvalid(XFontStruct * fs, int which); 20 | #endif // NOX11 21 | #endif // _GLX_UTILS_H_ 22 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/test.cmake: -------------------------------------------------------------------------------- 1 | # Check if all required arguments are provided 2 | macro(argument_required argument failstring) 3 | if (NOT ${argument}) 4 | message(FATAL_ERROR ${failstring}) 5 | endif (NOT ${argument}) 6 | endmacro(argument_required) 7 | 8 | argument_required(LIBRARY_FOLDER "All tests require to have a library output folder.") 9 | argument_required(TESTS_DIRECTORY "All tests require to have a test folder.") 10 | argument_required(TEST_FILENAME "All tests require a trace filename to be reprinted.") 11 | argument_required(CALLS "All tests require a call count.") 12 | 13 | # Enable different GLES version tests 14 | if (GLES_FORCED) 15 | set(GLES${GLES_FORCED}_ENABLED ON) 16 | else (GLES_FORCED) 17 | set(GLES1_ENABLED ON) 18 | set(GLES2_ENABLED ON) 19 | endif (GLES_FORCED) 20 | 21 | # Special case fo pixels tolerance 22 | if (TOLERANCE) 23 | set(TOLERANCE_GLES1 ${TOLERANCE}) 24 | set(TOLERANCE_GLES2 ${TOLERANCE}) 25 | endif (TOLERANCE) 26 | 27 | # Use the built library 28 | set(ENV{LD_LIBRARY_PATH} ${LIBRARY_FOLDER}:$ENV{LD_LIBRARY_PATH}) 29 | 30 | macro(run_test GLES) 31 | if (GLES${GLES}_ENABLED) 32 | argument_required(TOLERANCE_GLES${GLES} "All tests require a pixel tolerance for GLES ${GLES}.") 33 | 34 | set(ENV{LIBGL_ES} ${GLES}) 35 | 36 | message(STATUS "Starting test in GLES ${GLES}...") 37 | execute_process( 38 | COMMAND ${TESTS_DIRECTORY}/test.sh 39 | ${TEST_FILENAME} 40 | ${CALLS} 41 | ${TOLERANCE_GLES${GLES}} 42 | ${EXTRACT_RANGE} 43 | ERROR_VARIABLE TEST_ERROR 44 | OUTPUT_VARIABLE TEST_OUTPUT 45 | WORKING_DIRECTORY ${TESTS_DIRECTORY} 46 | ) 47 | message(STATUS "Ran test.\nError: ${TEST_ERROR}\nOutput: ${TEST_OUTPUT}") 48 | 49 | if (TEST_OUTPUT) 50 | set(ERROR ${ERROR} ${GLES}) 51 | endif (TEST_OUTPUT) 52 | endif (GLES${GLES}_ENABLED) 53 | endmacro(run_test) 54 | 55 | run_test(1) 56 | run_test(2) 57 | 58 | if (ERROR) 59 | message(FATAL_ERROR "Test(s) failed while using GLES ${ERROR}") 60 | endif (ERROR) 61 | 62 | message(STATUS "Success.") 63 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/tests/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # WARNING: do not execute this file unless you are aware of what you're doing. 4 | # This file is meant to be executed by ctest. 5 | 6 | export LIBGL_FB=3 7 | export LIBGL_SILENTSTUB=1 8 | export LIBGL_NOBANNER=1 9 | 10 | tar xf ../traces/$1.tgz 11 | apitrace dump-images --calls="$2" $1.trace >/dev/null 12 | rm $1.trace 13 | 14 | if [[ -f $1.$2.png ]] 15 | then 16 | mv $1.$2.png $1.$2.$LIBGL_ES.png 17 | 18 | EXTRACT="" 19 | if [[ ! -z "$4" ]] 20 | then 21 | EXTRACT="-extract $4" 22 | fi 23 | result=$(compare -metric AE -fuzz 20% $EXTRACT ../refs/$1.$2.png $1.$2.$LIBGL_ES.png diff_$1_GLES$LIBGL_ES.png 2>&1) 24 | 25 | if [[ ! "$result" -lt "$3" ]] 26 | then 27 | echo -n "$result pixels of difference" 28 | exit 1 29 | fi 30 | 31 | [[ -e diff_$1_GLES$LIBGL_ES.png ]] && rm diff_$1_GLES$LIBGL_ES.png 32 | [[ -e $1.$2.$LIBGL_ES.png ]] && rm $1.$2.$LIBGL_ES.png 33 | fi 34 | 35 | exit 0 36 | -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/foobillardplus.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/foobillardplus.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/glsl_lighting.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/glsl_lighting.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/glxgears.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/glxgears.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/neverball.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/neverball.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/openra.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/openra.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/pointsprite.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/pointsprite.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/traces/stuntcarracer.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/SupportLibs/gl4es/traces/stuntcarracer.tgz -------------------------------------------------------------------------------- /Projects/Android/jni/SupportLibs/gl4es/version.h: -------------------------------------------------------------------------------- 1 | #ifndef _GL4ES_VERSION_H 2 | #define _GL4ES_VERSION_H 3 | 4 | #define MAJOR 1 5 | #define MINOR 1 6 | #define REVISION 1 7 | 8 | #endif //_GL4ES_VERSION_H 9 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/Android.mk: -------------------------------------------------------------------------------- 1 | 2 | 3 | RTCW_BASE_CFLAGS = \ 4 | -fsigned-char -O0 \ 5 | -Ofast -ffast-math -fno-strict-aliasing -fstrength-reduce -ftree-vectorize -fsingle-precision-constant \ 6 | -pipe -DPANDORA -DHAVE_GLES -DARM -DC_ONLY 7 | 8 | #-DNEON -mfpu=neon 9 | 10 | RTCW_BASE_LDFLAGS = \ 11 | -Wl,--fix-cortex-a8 -llog 12 | 13 | include $(TOP_DIR)/rtcw/Android_game.mk 14 | include $(TOP_DIR)/rtcw/Android_ui.mk 15 | include $(TOP_DIR)/rtcw/Android_cgame.mk 16 | include $(TOP_DIR)/rtcw/Android_client.mk 17 | 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/Android_cgame.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | 4 | 5 | include $(CLEAR_VARS) 6 | 7 | 8 | LOCAL_MODULE := cgamearm 9 | 10 | LOCAL_CFLAGS = $(RTCW_BASE_CFLAGS) 11 | 12 | 13 | LOCAL_CFLAGS += -fPIC -DCGAMEDLL 14 | 15 | LOCAL_LDFLAGS += $(RTCW_BASE_LDFLAGS) 16 | 17 | LOCAL_C_INCLUDES = $(LOCAL_PATH) 18 | 19 | 20 | 21 | GAME_FILES = \ 22 | src/game/bg_animation.c\ 23 | src/game/bg_misc.c\ 24 | src/game/bg_pmove.c\ 25 | src/game/bg_slidemove.c\ 26 | src/cgame/cg_consolecmds.c\ 27 | src/cgame/cg_draw.c\ 28 | src/cgame/cg_drawtools.c\ 29 | src/cgame/cg_effects.c\ 30 | src/cgame/cg_ents.c\ 31 | src/cgame/cg_event.c\ 32 | src/cgame/cg_flamethrower.c\ 33 | src/cgame/cg_info.c\ 34 | src/cgame/cg_localents.c\ 35 | src/cgame/cg_main.c\ 36 | src/cgame/cg_marks.c\ 37 | src/cgame/cg_newDraw.c\ 38 | src/cgame/cg_particles.c\ 39 | src/cgame/cg_players.c\ 40 | src/cgame/cg_playerstate.c\ 41 | src/cgame/cg_predict.c\ 42 | src/cgame/cg_scoreboard.c\ 43 | src/cgame/cg_servercmds.c\ 44 | src/cgame/cg_snapshot.c\ 45 | src/cgame/cg_sound.c\ 46 | src/cgame/cg_syscalls.c\ 47 | src/cgame/cg_trails.c\ 48 | src/cgame/cg_view.c\ 49 | src/cgame/cg_weapons.c\ 50 | src/game/q_math.c\ 51 | src/game/q_shared.c\ 52 | src/ui/ui_shared.c\ 53 | 54 | 55 | 56 | LOCAL_SRC_FILES = $(GAME_FILES) 57 | 58 | include $(BUILD_SHARED_LIBRARY) 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/Android_game.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | 4 | 5 | include $(CLEAR_VARS) 6 | 7 | 8 | LOCAL_MODULE := qagamearm 9 | 10 | LOCAL_CFLAGS = $(RTCW_BASE_CFLAGS) 11 | 12 | 13 | LOCAL_CFLAGS += -fPIC -DGAMEDLL 14 | LOCAL_LDFLAGS += $(RTCW_BASE_LDFLAGS) #-shared -ldl -lm -rdynamic 15 | 16 | LOCAL_C_INCLUDES = $(LOCAL_PATH) 17 | 18 | 19 | 20 | GAME_FILES = \ 21 | src/game/ai_cast.c \ 22 | src/game/ai_cast_characters.c \ 23 | src/game/ai_cast_debug.c \ 24 | src/game/ai_cast_events.c \ 25 | src/game/ai_cast_fight.c \ 26 | src/game/ai_cast_func_attack.c \ 27 | src/game/ai_cast_func_boss1.c \ 28 | src/game/ai_cast_funcs.c \ 29 | src/game/ai_cast_script.c \ 30 | src/game/ai_cast_script_actions.c \ 31 | src/game/ai_cast_script_ents.c \ 32 | src/game/ai_cast_sight.c \ 33 | src/game/ai_cast_think.c \ 34 | src/botai/ai_chat.c \ 35 | src/botai/ai_cmd.c \ 36 | src/botai/ai_dmnet.c \ 37 | src/botai/ai_dmq3.c \ 38 | src/botai/ai_main.c \ 39 | src/botai/ai_team.c \ 40 | src/game/bg_animation.c \ 41 | src/game/bg_misc.c \ 42 | src/game/bg_pmove.c \ 43 | src/game/bg_slidemove.c \ 44 | src/game/g_active.c \ 45 | src/game/g_alarm.c \ 46 | src/game/g_bot.c \ 47 | src/game/g_client.c \ 48 | src/game/g_cmds.c \ 49 | src/game/g_combat.c \ 50 | src/game/g_items.c \ 51 | src/game/g_main.c \ 52 | src/game/g_mem.c \ 53 | src/game/g_misc.c \ 54 | src/game/g_missile.c \ 55 | src/game/g_mover.c \ 56 | src/game/g_props.c \ 57 | src/game/g_save.c \ 58 | src/game/g_script.c \ 59 | src/game/g_script_actions.c \ 60 | src/game/g_session.c \ 61 | src/game/g_spawn.c \ 62 | src/game/g_svcmds.c \ 63 | src/game/g_syscalls.c \ 64 | src/game/g_target.c \ 65 | src/game/g_team.c \ 66 | src/game/g_tramcar.c \ 67 | src/game/g_trigger.c \ 68 | src/game/g_utils.c \ 69 | src/game/g_weapon.c \ 70 | src/game/q_math.c \ 71 | src/game/q_shared.c \ 72 | 73 | 74 | 75 | LOCAL_SRC_FILES = $(GAME_FILES) 76 | 77 | include $(BUILD_SHARED_LIBRARY) 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/Android_ui.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | 4 | 5 | include $(CLEAR_VARS) 6 | 7 | 8 | LOCAL_MODULE := uiarm 9 | 10 | LOCAL_CFLAGS = $(RTCW_BASE_CFLAGS) 11 | 12 | 13 | LOCAL_CFLAGS += -fPIC 14 | 15 | LOCAL_LDFLAGS += $(RTCW_BASE_LDFLAGS) 16 | 17 | LOCAL_C_INCLUDES = $(LOCAL_PATH) 18 | 19 | 20 | UI_FILES= \ 21 | src/game/bg_misc.c \ 22 | src/game/q_math.c\ 23 | src/game/q_shared.c\ 24 | src/ui/ui_atoms.c\ 25 | src/ui/ui_gameinfo.c\ 26 | src/ui/ui_main.c\ 27 | src/ui/ui_players.c\ 28 | src/ui/ui_shared.c\ 29 | src/ui/ui_syscalls.c\ 30 | src/ui/ui_util.c\ 31 | 32 | 33 | LOCAL_SRC_FILES = $(UI_FILES) 34 | 35 | 36 | include $(BUILD_SHARED_LIBRARY) 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/COPYING.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/COPYING.txt -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/android/in_android.h: -------------------------------------------------------------------------------- 1 | //#include "beloko_common/port_act_defs.h" 2 | 3 | 4 | 5 | #ifdef __cplusplus 6 | extern "C" 7 | { 8 | #endif 9 | int PortableKeyEvent(int state, int code ,int unitcode); 10 | void PortableAction(int state, int action); 11 | 12 | void PortableMove(float fwd, float strafe); 13 | void PortableMoveFwd(float fwd); 14 | void PortableMoveSide(float strafe); 15 | void PortableLookPitch(int mode, float pitch); 16 | void PortableLookYaw(int mode, float pitch); 17 | void PortableCommand(const char * cmd); 18 | 19 | void PortableMouse(float dx,float dy); 20 | 21 | void PortableMouseAbs(float x,float y); 22 | 23 | void PortableInit(int argc,const char ** argv); 24 | void PortableFrame(void); 25 | 26 | int PortableInMenu(void); 27 | int PortableShowKeyboard(void); 28 | int PortableInAutomap(void); 29 | 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif 34 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botai/ai_cmd.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: ai_cmd.h 32 | * 33 | * desc: Quake3 bot AI 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | int BotMatchMessage( bot_state_t *bs, char *message ); 39 | void BotPrintTeamGoal( bot_state_t *bs ); 40 | 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botai/ai_team.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: ai_team.h 32 | * 33 | * desc: Quake3 bot AI 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | void BotTeamAI( bot_state_t *bs ); 39 | 40 | 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botlib/be_aas_cluster.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: be_aas_cluster.h 32 | * 33 | * desc: AAS 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | #ifdef AASINTERN 39 | //initialize the AAS clustering 40 | void AAS_InitClustering( void ); 41 | void AAS_SetViewPortalsAsClusterPortals( void ); 42 | #endif //AASINTERN 43 | 44 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botlib/be_aas_optimize.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: be_aas_optimize.h 32 | * 33 | * desc: AAS 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | void AAS_Optimize( void ); 39 | 40 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botlib/be_aas_routealt.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: be_aas_routealt.h 32 | * 33 | * desc: AAS 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | #ifdef AASINTERN 39 | void AAS_InitAlternativeRouting( void ); 40 | void AAS_ShutdownAlternativeRouting( void ); 41 | #endif //AASINTERN 42 | 43 | 44 | int AAS_AlternativeRouteGoals( vec3_t start, vec3_t goal, int travelflags, 45 | aas_altroutegoal_t *altroutegoals, int maxaltroutegoals, 46 | int color ); 47 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/botlib/l_utils.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: l_util.h 32 | * 33 | * desc: utils 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | #define Vector2Angles( v,a ) vectoangles( v,a ) 39 | #define MAX_PATH MAX_QPATH 40 | #define Maximum( x,y ) ( x > y ? x : y ) 41 | #define Minimum( x,y ) ( x < y ? x : y ) 42 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_areamerging.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_areamerging.h 32 | // Function: Merging of Areas 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | 39 | void AAS_MergeAreas( void ); 40 | 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_edgemelting.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_edgemelting.h 32 | // Function: Melting of Edges 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | 39 | void AAS_MeltAreaFaceWindings( void ); 40 | 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_facemerging.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_facemerging.h 32 | // Function: Merging of Faces 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | void AAS_MergeAreaFaces( void ); 39 | void AAS_MergeAreaPlaneFaces( void ); 40 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_file.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_write.h 32 | // Function: 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | qboolean AAS_WriteAASFile( char *filename ); 39 | qboolean AAS_LoadAASFile( char *filename, int fpoffset, int fplength ); 40 | 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_gsubdiv.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_gsubdiv.h 32 | // Function: Gravitational subdivision 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | //works with the global tmpaasworld 39 | void AAS_GravitationalSubdivision( void ); 40 | void AAS_LadderSubdivision( void ); 41 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_map.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_map.h 32 | // Function: 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | void AAS_CreateMapBrushes( mapbrush_t *brush, entity_t *mapent, int addbevels ); 39 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/aas_prunenodes.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: aas_prunenodes.h 32 | // Function: Prune Nodes 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1997-12-04 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | void AAS_PruneNodes( void ); 39 | 40 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/be_aas_bspc.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: b_aas_bspc.h 32 | // Function: Area Awareness System 33 | // Programmer: Mr Elusive (MrElusive@demigod.demon.nl) 34 | // Last update: 1999-02-28 35 | // Tab Size: 3 36 | //=========================================================================== 37 | 38 | void AAS_CalcReachAndClusters( struct quakefile_s *qf ); 39 | 40 | // Ridah 41 | void AAS_SetWorldPointer( aas_t *newaasworld ); 42 | // done. 43 | 44 | 45 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/bspc/nodraw.c: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | #include "qbsp.h" 31 | 32 | vec3_t draw_mins, draw_maxs; 33 | qboolean drawflag; 34 | 35 | void Draw_ClearWindow( void ) { 36 | } 37 | 38 | //============================================================ 39 | 40 | #define GLSERV_PORT 25001 41 | 42 | 43 | void GLS_BeginScene( void ) { 44 | } 45 | 46 | void GLS_Winding( winding_t *w, int code ) { 47 | } 48 | 49 | void GLS_EndScene( void ) { 50 | } 51 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/cgame/cgame.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | vmMain 3 | dllEntry 4 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/client/cl_keys.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/client/cl_keys.c -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/extractfuncs/ChangeLog: -------------------------------------------------------------------------------- 1 | 2001-12-07 Timothee Besset 2 | 3 | Imported from the Wolf MP version, Mac/Linux friendly version 4 | Fixed argbase bug in *nix main 5 | Escape BoxOnPlaneSide on linux (taken out by preprocessing) 6 | 7 | 2001-11-02 Timothee Besset 8 | 9 | Modified extractfuncs to works on linux 10 | Would still need to integrate it correctly with the build system 11 | Changed the command line syntax of the linux ver: 12 | screwup [-o ] [ ..] 13 | 14 | if none specified, is "g_funcs" 15 | 16 | on linux at least, those header files need to be tweaked by hand 17 | because unresolved externs are not ignored by gcc (otherwise harmless on win32) 18 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/extractfuncs/Conscript: -------------------------------------------------------------------------------- 1 | # extractfuncs building 2 | 3 | $env = new cons( 4 | CC => 'gcc', 5 | CFLAGS => '-g -DSCREWUP ' 6 | ); 7 | 8 | Program $env 'extractfuncs', 'extractfuncs.c', 'l_log.c', 'l_memory.c', 'l_precomp.c', 'l_script.c'; 9 | Install $env '#', 'extractfuncs'; 10 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/extractfuncs/out/src/extractfuncs/.consign: -------------------------------------------------------------------------------- 1 | l_memory.o:1375636567 0a1228068c14c9174bba2b83addbb992 2 | l_log.o:1373264700 38d94a29ed5b1d108f647e5cca4983d6 3 | l_precomp.o:1375636569 57cc9189b07b9f48cb277f323fc09e86 4 | extractfuncs.o:1373264699 5821769ec4cb1694dcdba42fcb332da6 5 | extractfuncs:1375636570 b395d3518fdcc92b32dd2b45b8f7c812 6 | l_script.o:1375636570 9667d7aeb55533e4d2d5f73d95343db0 7 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/extractfuncs/out/src/extractfuncs/extractfuncs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/extractfuncs/out/src/extractfuncs/extractfuncs -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ahglobal.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ahglobal.h */ 4 | /* */ 5 | /* Routines used to compute global metrics automatically */ 6 | /* (specification). */ 7 | /* */ 8 | /* Copyright 2000 Catharon Productions Inc. */ 9 | /* Author: David Turner */ 10 | /* */ 11 | /* This file is part of the Catharon Typography Project and shall only */ 12 | /* be used, modified, and distributed under the terms of the Catharon */ 13 | /* Open Source License that should come with this file under the name */ 14 | /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */ 15 | /* this file you indicate that you have read the license and */ 16 | /* understand and accept it fully. */ 17 | /* */ 18 | /* Note that this license is compatible with the FreeType license. */ 19 | /* */ 20 | /***************************************************************************/ 21 | 22 | 23 | #ifndef AHGLOBAL_H 24 | #define AHGLOBAL_H 25 | 26 | #include "ahtypes.h" 27 | 28 | #include "ftobjs.h" 29 | 30 | #define AH_IS_TOP_BLUE( b ) ( ( b ) == ah_blue_capital_top || \ 31 | ( b ) == ah_blue_small_top ) 32 | 33 | 34 | /* compute global metrics automatically */ 35 | LOCAL_DEF 36 | FT_Error ah_hinter_compute_globals( AH_Hinter* hinter ); 37 | 38 | 39 | #endif /* AHGLOBAL_H */ 40 | 41 | 42 | /* END */ 43 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ahmodule.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ahmodule.h */ 4 | /* */ 5 | /* Auto-hinting module (declaration). */ 6 | /* */ 7 | /* Copyright 2000 Catharon Productions Inc. */ 8 | /* Author: David Turner */ 9 | /* */ 10 | /* This file is part of the Catharon Typography Project and shall only */ 11 | /* be used, modified, and distributed under the terms of the Catharon */ 12 | /* Open Source License that should come with this file under the name */ 13 | /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */ 14 | /* this file you indicate that you have read the license and */ 15 | /* understand and accept it fully. */ 16 | /* */ 17 | /* Note that this license is compatible with the FreeType license. */ 18 | /* */ 19 | /***************************************************************************/ 20 | 21 | 22 | #ifndef AHMODULE_H 23 | #define AHMODULE_H 24 | 25 | #include "ftmodule.h" 26 | 27 | FT_EXPORT_VAR( const FT_Module_Class ) autohint_module_class; 28 | 29 | #endif /* AHMODULE_H */ 30 | 31 | 32 | /* END */ 33 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ftnames.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftnames.h */ 4 | /* */ 5 | /* Simple interface to access SFNT name tables (which are used */ 6 | /* to hold font names, copyright info, notices, etc.). */ 7 | /* */ 8 | /* This is _not_ used to retrieve glyph names! */ 9 | /* */ 10 | /* Copyright 1996-2000 by */ 11 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 12 | /* */ 13 | /* This file is part of the FreeType project, and may only be used, */ 14 | /* modified, and distributed under the terms of the FreeType project */ 15 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 16 | /* this file you indicate that you have read the license and */ 17 | /* understand and accept it fully. */ 18 | /* */ 19 | /***************************************************************************/ 20 | 21 | 22 | #ifndef FTNAMES_H 23 | #define FTNAMES_H 24 | 25 | 26 | #include "freetype.h" 27 | 28 | 29 | typedef struct FT_SfntName_ 30 | { 31 | FT_UShort platform_id; 32 | FT_UShort encoding_id; 33 | FT_UShort language_id; 34 | FT_UShort name_id; 35 | 36 | FT_Byte* string; 37 | FT_UInt string_len; /* in bytes */ 38 | 39 | } FT_SfntName; 40 | 41 | 42 | FT_EXPORT_DEF( FT_UInt ) FT_Get_Sfnt_Name_Count( FT_Face face ); 43 | 44 | FT_EXPORT_DEF( FT_Error ) FT_Get_Sfnt_Name( FT_Face face, 45 | FT_UInt index, 46 | FT_SfntName * aname ); 47 | 48 | 49 | #endif /* FTNAMES_H */ 50 | 51 | 52 | /* END */ 53 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ftraster.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftraster.h */ 4 | /* */ 5 | /* The FreeType glyph rasterizer (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used */ 11 | /* modified and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef FTRASTER_H 20 | #define FTRASTER_H 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | #include "ftimage.h" 27 | 28 | 29 | /*************************************************************************/ 30 | /* */ 31 | /* Uncomment the following line if you are using ftraster.c as a */ 32 | /* standalone module, fully independent of FreeType. */ 33 | /* */ 34 | /* #define _STANDALONE_ */ 35 | 36 | #ifndef FT_EXPORT_VAR 37 | #define FT_EXPORT_VAR( x ) extern x 38 | #endif 39 | 40 | FT_EXPORT_VAR( FT_Raster_Funcs ) ft_standard_raster; 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | 47 | #endif /* FTRASTER_H */ 48 | 49 | 50 | /* END */ 51 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ftrend1.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftrend1.h */ 4 | /* */ 5 | /* The FreeType glyph rasterizer interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef FTREND1_H 20 | #define FTREND1_H 21 | 22 | #include "ftrender.h" 23 | 24 | 25 | FT_EXPORT_VAR( const FT_Renderer_Class ) ft_raster1_renderer_class; 26 | 27 | /* this renderer is _NOT_ part of the default modules, you'll need */ 28 | /* to register it by hand in your application. It should only be */ 29 | /* used for backwards-compatibility with FT 1.x anyway. */ 30 | /* */ 31 | FT_EXPORT_VAR( const FT_Renderer_Class ) ft_raster5_renderer_class; 32 | 33 | 34 | #endif /* FTREND1_H */ 35 | 36 | 37 | /* END */ 38 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ftsmooth.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ftsmooth.h */ 4 | /* */ 5 | /* Anti-aliasing renderer interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef FTSMOOTH_H 20 | #define FTSMOOTH_H 21 | 22 | #include "ftrender.h" 23 | 24 | #ifndef FT_CONFIG_OPTION_NO_STD_RASTER 25 | FT_EXPORT_VAR( const FT_Renderer_Class ) ft_std_renderer_class; 26 | #endif 27 | 28 | #ifndef FT_CONFIG_OPTION_NO_SMOOTH_RASTER 29 | FT_EXPORT_VAR( const FT_Renderer_Class ) ft_smooth_renderer_class; 30 | #endif 31 | 32 | #endif /* FTSMOOTH_H */ 33 | 34 | 35 | /* END */ 36 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/sfdriver.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* sfdriver.h */ 4 | /* */ 5 | /* High-level SFNT driver interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef SFDRIVER_H 20 | #define SFDRIVER_H 21 | 22 | #include "ftmodule.h" 23 | 24 | FT_EXPORT_VAR( const FT_Module_Class ) sfnt_module_class; 25 | 26 | #endif /* SFDRIVER_H */ 27 | 28 | 29 | /* END */ 30 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/sfobjs.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* sfobjs.h */ 4 | /* */ 5 | /* SFNT object management (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef SFOBJS_H 20 | #define SFOBJS_H 21 | 22 | #include "sfnt.h" 23 | #include "ftobjs.h" 24 | 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | 31 | LOCAL_DEF 32 | FT_Error SFNT_Init_Face( FT_Stream stream, 33 | TT_Face face, 34 | FT_Int face_index, 35 | FT_Int num_params, 36 | FT_Parameter* params ); 37 | 38 | LOCAL_DEF 39 | FT_Error SFNT_Load_Face( FT_Stream stream, 40 | TT_Face face, 41 | FT_Int face_index, 42 | FT_Int num_params, 43 | FT_Parameter* params ); 44 | 45 | LOCAL_DEF 46 | void SFNT_Done_Face( TT_Face face ); 47 | 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | 54 | #endif /* SFDRIVER_H */ 55 | 56 | 57 | /* END */ 58 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttcmap.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttcmap.h */ 4 | /* */ 5 | /* TrueType character mapping table (cmap) support (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef TTCMAP_H 20 | #define TTCMAP_H 21 | 22 | #include "tttypes.h" 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | 29 | LOCAL_DEF 30 | FT_Error TT_CharMap_Load( TT_Face face, 31 | TT_CMapTable* cmap, 32 | FT_Stream input ); 33 | 34 | LOCAL_DEF 35 | FT_Error TT_CharMap_Free( TT_Face face, 36 | TT_CMapTable* cmap ); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* TTCMAP_H */ 43 | 44 | 45 | /* END */ 46 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttdriver.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttdriver.h */ 4 | /* */ 5 | /* High-level TrueType driver interface (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef TTDRIVER_H 20 | #define TTDRIVER_H 21 | 22 | #include "ftdriver.h" 23 | 24 | 25 | FT_EXPORT_VAR( const FT_Driver_Class ) tt_driver_class; 26 | 27 | 28 | #endif /* TTDRIVER_H */ 29 | 30 | 31 | /* END */ 32 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttgload.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttgload.h */ 4 | /* */ 5 | /* TrueType Glyph Loader (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef TTGLOAD_H 20 | #define TTGLOAD_H 21 | 22 | 23 | #include "ttobjs.h" 24 | 25 | #ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER 26 | #include "ttinterp.h" 27 | #endif 28 | 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | 35 | LOCAL_DEF 36 | void TT_Get_Metrics( TT_HoriHeader* header, 37 | FT_UInt index, 38 | FT_Short* bearing, 39 | FT_UShort* advance ); 40 | 41 | LOCAL_DEF 42 | void TT_Init_Glyph_Loading( TT_Face face ); 43 | 44 | LOCAL_DEF 45 | FT_Error TT_Load_Glyph( TT_Size size, 46 | TT_GlyphSlot glyph, 47 | FT_UShort glyph_index, 48 | FT_UInt load_flags ); 49 | 50 | #ifdef __cplusplus 51 | } 52 | #endif 53 | 54 | #endif /* TTGLOAD_H */ 55 | 56 | 57 | /* END */ 58 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttpload.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttpload.h */ 4 | /* */ 5 | /* TrueType glyph data/program tables loader (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef TTPLOAD_H 20 | #define TTPLOAD_H 21 | 22 | #include "tttypes.h" 23 | 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | 30 | LOCAL_DEF 31 | FT_Error TT_Load_Locations( TT_Face face, 32 | FT_Stream stream ); 33 | 34 | LOCAL_DEF 35 | FT_Error TT_Load_CVT( TT_Face face, 36 | FT_Stream stream ); 37 | 38 | LOCAL_DEF 39 | FT_Error TT_Load_Programs( TT_Face face, 40 | FT_Stream stream ); 41 | 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | 48 | #endif /* TTPLOAD_H */ 49 | 50 | 51 | /* END */ 52 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttpost.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttpost.h */ 4 | /* */ 5 | /* Postcript name table processing for TrueType and OpenType fonts */ 6 | /* (specification). */ 7 | /* */ 8 | /* Copyright 1996-2000 by */ 9 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 | /* */ 11 | /* This file is part of the FreeType project, and may only be used, */ 12 | /* modified, and distributed under the terms of the FreeType project */ 13 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 14 | /* this file you indicate that you have read the license and */ 15 | /* understand and accept it fully. */ 16 | /* */ 17 | /***************************************************************************/ 18 | 19 | 20 | #ifndef TTPOST_H 21 | #define TTPOST_H 22 | 23 | #include "ftconfig.h" 24 | #include "tttypes.h" 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | 31 | #define TT_Err_Invalid_Post_Table_Format 0x0B00 32 | #define TT_Err_Invalid_Post_Table 0x0B01 33 | 34 | 35 | LOCAL_DEF 36 | FT_Error TT_Get_PS_Name( TT_Face face, 37 | FT_UInt index, 38 | FT_String** PSname ); 39 | 40 | LOCAL_DEF 41 | void TT_Free_Post_Names( TT_Face face ); 42 | 43 | 44 | #ifdef __cplusplus 45 | } 46 | #endif 47 | 48 | 49 | #endif /* TTPOST_H */ 50 | 51 | 52 | /* END */ 53 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ft2/ttsbit.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************/ 2 | /* */ 3 | /* ttsbit.h */ 4 | /* */ 5 | /* TrueType and OpenType embedded bitmap support (specification). */ 6 | /* */ 7 | /* Copyright 1996-2000 by */ 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 | /* */ 10 | /* This file is part of the FreeType project, and may only be used, */ 11 | /* modified, and distributed under the terms of the FreeType project */ 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 | /* this file you indicate that you have read the license and */ 14 | /* understand and accept it fully. */ 15 | /* */ 16 | /***************************************************************************/ 17 | 18 | 19 | #ifndef TTSBIT_H 20 | #define TTSBIT_H 21 | 22 | 23 | #include "ttload.h" 24 | 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | 31 | LOCAL_DEF 32 | FT_Error TT_Load_SBit_Strikes( TT_Face face, 33 | FT_Stream stream ); 34 | 35 | LOCAL_DEF 36 | void TT_Free_SBit_Strikes( TT_Face face ); 37 | 38 | LOCAL_DEF 39 | FT_Error TT_Load_SBit_Image( TT_Face face, 40 | FT_Int x_ppem, 41 | FT_Int y_ppem, 42 | FT_UInt glyph_index, 43 | FT_UInt load_flags, 44 | FT_Stream stream, 45 | FT_Bitmap* map, 46 | TT_SBit_Metrics* metrics ); 47 | 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | 54 | #endif /* TTSBIT_H */ 55 | 56 | 57 | /* END */ 58 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/game/ai_cast_fight.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | //=========================================================================== 30 | // 31 | // Name: ai_cast_fight.h 32 | // Function: Wolfenstein AI Fighting Values 33 | // Programmer: Ridah 34 | // Tab Size: 4 (real tabs) 35 | //=========================================================================== 36 | 37 | // This is where all constants should reside, which decide when or if a character 38 | // can attack it's enemy. 39 | 40 | #define LOPER_GROUND_RANGE 200 41 | #define BLACKGUARD_MELEE_RANGE 48 42 | #define REJECT_MELEE_RANGE 90 //----(SA) added 43 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/game/be_ai_gen.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | /***************************************************************************** 31 | * name: be_ai_gen.h 32 | * 33 | * desc: genetic selection 34 | * 35 | * 36 | *****************************************************************************/ 37 | 38 | int GeneticParentsAndChildSelection( int numranks, float *ranks, int *parent1, int *parent2, int *child ); 39 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/game/game.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | dllEntry 3 | vmMain 4 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/idLib/sys/win32/eaxguid.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/idLib/sys/win32/eaxguid.lib -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/jpeg-6/jchuff.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jchuff.h 3 | * 4 | * Copyright (C) 1991-1995, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains declarations for Huffman entropy encoding routines 9 | * that are shared between the sequential encoder (jchuff.c) and the 10 | * progressive encoder (jcphuff.c). No other modules need to see these. 11 | */ 12 | 13 | /* Derived data constructed for each Huffman table */ 14 | 15 | typedef struct { 16 | unsigned int ehufco[256]; /* code for each symbol */ 17 | char ehufsi[256]; /* length of code for each symbol */ 18 | /* If no code has been allocated for a symbol S, ehufsi[S] contains 0 */ 19 | } c_derived_tbl; 20 | 21 | /* Short forms of external names for systems with brain-damaged linkers. */ 22 | 23 | #ifdef NEED_SHORT_EXTERNAL_NAMES 24 | #define jpeg_make_c_derived_tbl jMkCDerived 25 | #define jpeg_gen_optimal_table jGenOptTbl 26 | #endif /* NEED_SHORT_EXTERNAL_NAMES */ 27 | 28 | /* Expand a Huffman table definition into the derived format */ 29 | EXTERN void jpeg_make_c_derived_tbl JPP( ( j_compress_ptr cinfo, 30 | JHUFF_TBL * htbl, c_derived_tbl * *pdtbl ) ); 31 | 32 | /* Generate an optimal table definition given the specified counts */ 33 | EXTERN void jpeg_gen_optimal_table JPP( ( j_compress_ptr cinfo, 34 | JHUFF_TBL * htbl, long freq[] ) ); 35 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/jpeg-6/jconfig.h: -------------------------------------------------------------------------------- 1 | /* jconfig.wat --- jconfig.h for Watcom C/C++ on MS-DOS or OS/2. */ 2 | /* see jconfig.doc for explanations */ 3 | 4 | #define HAVE_PROTOTYPES 5 | #define HAVE_UNSIGNED_CHAR 6 | #define HAVE_UNSIGNED_SHORT 7 | /* #define void char */ 8 | /* #define const */ 9 | #define CHAR_IS_UNSIGNED 10 | #define HAVE_STDDEF_H 11 | #define HAVE_STDLIB_H 12 | #undef NEED_BSD_STRINGS 13 | #undef NEED_SYS_TYPES_H 14 | #undef NEED_FAR_POINTERS /* Watcom uses flat 32-bit addressing */ 15 | #undef NEED_SHORT_EXTERNAL_NAMES 16 | #undef INCOMPLETE_TYPES_BROKEN 17 | 18 | #define JDCT_DEFAULT JDCT_FLOAT 19 | #define JDCT_FASTEST JDCT_FLOAT 20 | 21 | #ifdef JPEG_INTERNALS 22 | 23 | #undef RIGHT_SHIFT_IS_UNSIGNED 24 | 25 | #endif /* JPEG_INTERNALS */ 26 | 27 | #ifdef JPEG_CJPEG_DJPEG 28 | 29 | #define BMP_SUPPORTED /* BMP image file format */ 30 | #define GIF_SUPPORTED /* GIF image file format */ 31 | #define PPM_SUPPORTED /* PBMPLUS PPM/PGM image file format */ 32 | #undef RLE_SUPPORTED /* Utah RLE image file format */ 33 | #define TARGA_SUPPORTED /* Targa image file format */ 34 | 35 | #undef TWO_FILE_COMMANDLINE /* optional */ 36 | #define USE_SETMODE /* Needed to make one-file style work in Watcom */ 37 | #undef NEED_SIGNAL_CATCHER /* Define this if you use jmemname.c */ 38 | #undef DONT_USE_B_MODE 39 | #undef PROGRESS_REPORT /* optional */ 40 | 41 | #endif /* JPEG_CJPEG_DJPEG */ 42 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/jpeg-6/jversion.h: -------------------------------------------------------------------------------- 1 | /* 2 | * jversion.h 3 | * 4 | * Copyright (C) 1991-1995, Thomas G. Lane. 5 | * This file is part of the Independent JPEG Group's software. 6 | * For conditions of distribution and use, see the accompanying README file. 7 | * 8 | * This file contains software version identification. 9 | */ 10 | 11 | 12 | #define JVERSION "6 2-Aug-95" 13 | 14 | #define JCOPYRIGHT "Copyright (C) 1995, Thomas G. Lane" 15 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/BuildRelease: -------------------------------------------------------------------------------- 1 | #!/bin/zsh 2 | 3 | 4 | 5 | APPNAME="Quake3" 6 | 7 | PACKAGENAME= Quake3 8 | 9 | 10 | 11 | (cd $OMNI_SOURCE_ROOT; ./Build Quake3 install) 12 | 13 | 14 | 15 | rm -rf "/tmp/$APPNAME" 16 | 17 | mkdir "/tmp/$APPNAME" 18 | 19 | cp "Read Me.rtf" "/tmp/$APPNAME" 20 | 21 | 22 | 23 | cd /Users/Shared/$USER/InstalledProducts 24 | 25 | gnutar cf - FAKK2.app | (cd "/tmp/$APPNAME"; gnutar xf -) 26 | 27 | 28 | 29 | cd "/tmp/$APPNAME" 30 | 31 | sudo ~bungi/Unix/bin/files2image $PACKAGENAME ./* 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/CGMouseDeltaFix.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | #import 30 | 31 | extern void CGFix_Initialize(); 32 | 33 | extern void CGFix_GetLastMouseDelta( CGMouseDelta *dx, CGMouseDelta *dy ); 34 | 35 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/Q3Controller.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | #import 31 | 32 | @interface Q3Controller : NSObject 33 | { 34 | IBOutlet NSPanel *bannerPanel; 35 | } 36 | 37 | #ifndef DEDICATED 38 | -(IBAction)paste : (id)sender; 39 | -(IBAction)requestTerminate : (id)sender; 40 | 41 | -(void) showBanner; 42 | #endif 43 | 44 | -(void)quakeMain; 45 | 46 | @end 47 | 48 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/Quake3.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/macosx/Quake3.icns -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/Quake3.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | 3 | IBClasses = ( 4 | 5 | { 6 | 7 | ACTIONS = {showHelp = id; }; 8 | 9 | CLASS = FirstResponder; 10 | 11 | LANGUAGE = ObjC; 12 | 13 | SUPERCLASS = NSObject; 14 | 15 | }, 16 | 17 | { 18 | 19 | ACTIONS = {paste = id; requestTerminate = id; }; 20 | 21 | CLASS = Q3Controller; 22 | 23 | LANGUAGE = ObjC; 24 | 25 | OUTLETS = {bannerPanel = id; }; 26 | 27 | SUPERCLASS = NSObject; 28 | 29 | } 30 | 31 | ); 32 | 33 | IBVersion = 1; 34 | 35 | } -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/Quake3.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | IBMainMenuLocation 10 | 11 | 15 329 121 44 0 47 1152 801 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/Quake3.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/macosx/Quake3.nib/objects.nib -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/RecordDemo.zsh: -------------------------------------------------------------------------------- 1 | #!/bin/zsh -x 2 | 3 | 4 | 5 | /Local/Public/bungi/BuildOutput/Quake3.app/Contents/MacOS/Quake3 \ 6 | 7 | +set sv_pure 0 \ 8 | 9 | +set g_syncronousClients 1 \ 10 | 11 | +map q3dm6 \ 12 | 13 | +record foo 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/macosx/banner.jpg -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/macosx_glimp.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | #include 30 | #include 31 | #include 32 | #ifndef GL_EXT_abgr 33 | #include 34 | #endif 35 | 36 | // This can be defined to use the CGLMacro.h support which avoids looking up 37 | // the current context. 38 | //#define USE_CGLMACROS 39 | 40 | #ifdef USE_CGLMACROS 41 | #include "macosx_local.h" 42 | #define cgl_ctx glw_state._cgl_ctx 43 | #include 44 | #endif 45 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/macosx_glsmp_null.m: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | #import "macosx_glimp.h" 30 | 31 | #include "tr_local.h" 32 | #import "macosx_local.h" 33 | 34 | qboolean GLimp_SpawnRenderThread( void ( *function )( void ) ) { 35 | return qfalse; 36 | } 37 | 38 | void *GLimp_RendererSleep( void ) { 39 | return NULL; 40 | } 41 | 42 | void GLimp_FrontEndSleep( void ) { 43 | 44 | } 45 | 46 | void GLimp_WakeRenderer( void *data ) { 47 | 48 | } 49 | 50 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/macosx/timedemo.zsh: -------------------------------------------------------------------------------- 1 | #!/bin/zsh 2 | 3 | 4 | 5 | buildRoot=./build 6 | 7 | executable=$buildRoot/Quake3.app/Contents/MacOS/Quake3 8 | 9 | ls -l $executable 10 | 11 | 12 | 13 | flags="$flags +set timedemo 1" 14 | 15 | flags="$flags +set s_initsound 0" 16 | 17 | flags="$flags +set vm_cgame 1" 18 | 19 | flags="$flags +set vm_game 1" 20 | 21 | flags="$flags +set r_texturebits 16" 22 | 23 | flags="$flags +set r_depthbits 16" 24 | 25 | flags="$flags +set r_colorbits 16" 26 | 27 | flags="$flags +set stencilbits 8" 28 | 29 | 30 | 31 | flags="$flags +set r_appleTransformHint 1" 32 | 33 | 34 | 35 | echo flags=$flags 36 | 37 | 38 | 39 | function demo { 40 | 41 | echo Demo $* 42 | 43 | $executable $flags +demo $* |& egrep "(seconds|VM)" 44 | 45 | } 46 | 47 | 48 | 49 | demo foo 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/qcommon/md4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/qcommon/md4.c -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/qcommon/vm_none.c: -------------------------------------------------------------------------------- 1 | #include "vm_local.h" 2 | 3 | int VM_CallCompiled( vm_t *vm, int *args ) { 4 | exit(99); 5 | return 0; 6 | } 7 | 8 | void VM_Compile( vm_t *vm, vmHeader_t *header ) { 9 | exit(99); 10 | } 11 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/renderer/ref_trin.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | GetRefAPI 3 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ui/ui.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | vmMain 3 | dllEntry 4 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/ui/ui_util.c: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | // ui_util.c 30 | // 31 | // origin: rad 32 | // new ui support stuff 33 | // 34 | // memory, string alloc 35 | 36 | 37 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/.consign: -------------------------------------------------------------------------------- 1 | extractfuncs:1375636570 f9575bda84274cff7e321906355873bb 2 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/Conscript-bspc: -------------------------------------------------------------------------------- 1 | # bspc build script 2 | 3 | Import qw( BASE_CFLAGS CONFIG_DIR BUILD_DIR CC CXX LINK ); 4 | 5 | @BSPC_FILES = qw( 6 | ../bspc/aas_areamerging.c 7 | ../bspc/aas_cfg.c 8 | ../bspc/aas_create.c 9 | ../bspc/aas_edgemelting.c 10 | ../bspc/aas_facemerging.c 11 | ../bspc/aas_file.c 12 | ../bspc/aas_gsubdiv.c 13 | ../bspc/aas_map.c 14 | ../bspc/aas_prunenodes.c 15 | ../bspc/aas_store.c 16 | ../bspc/be_aas_bspc.c 17 | ../botlib/be_aas_bspq3.c 18 | ../botlib/be_aas_cluster.c 19 | ../botlib/be_aas_move.c 20 | ../botlib/be_aas_optimize.c 21 | ../botlib/be_aas_reach.c 22 | ../botlib/be_aas_sample.c 23 | ../bspc/brushbsp.c 24 | ../bspc/bspc.c 25 | ../qcommon/cm_load.c 26 | ../qcommon/cm_patch.c 27 | ../qcommon/cm_test.c 28 | ../qcommon/cm_trace.c 29 | ../bspc/csg.c 30 | ../bspc/faces.c 31 | ../bspc/glfile.c 32 | ../bspc/l_bsp_ent.c 33 | ../bspc/l_bsp_hl.c 34 | ../bspc/l_bsp_q1.c 35 | ../bspc/l_bsp_q2.c 36 | ../bspc/l_bsp_q3.c 37 | ../bspc/l_bsp_sin.c 38 | ../bspc/l_cmd.c 39 | ../botlib/l_libvar.c 40 | ../bspc/l_log.c 41 | ../bspc/l_math.c 42 | ../bspc/l_mem.c 43 | ../bspc/l_poly.c 44 | ../botlib/l_precomp.c 45 | ../bspc/l_qfiles.c 46 | ../botlib/l_script.c 47 | ../botlib/l_struct.c 48 | ../bspc/l_threads.c 49 | ../bspc/l_utils.c 50 | ../bspc/leakfile.c 51 | ../bspc/map.c 52 | ../bspc/map_hl.c 53 | ../bspc/map_q1.c 54 | ../bspc/map_q2.c 55 | ../bspc/map_q3.c 56 | ../bspc/map_sin.c 57 | ../qcommon/md4.c 58 | ../bspc/nodraw.c 59 | ../bspc/portals.c 60 | ../bspc/prtfile.c 61 | ../bspc/textures.c 62 | ../bspc/tree.c 63 | ../qcommon/unzip.c 64 | ../bspc/writebsp.c 65 | ); 66 | $BSPC_FILES_REF = \@BSPC_FILES; 67 | 68 | $env = new cons( 69 | CC => $CC, 70 | CXX => $CXX, 71 | LINK => $LINK, 72 | CFLAGS => $BASE_CFLAGS . '-DBSPC -DGTKRADIANT -I../../../../GtkRadiant', 73 | LDFLAGS => '-lm' 74 | ); 75 | 76 | Program $env 'bspc', @$BSPC_FILES_REF; 77 | Install $env '#' . $CONFIG_DIR . '/out', 'bspc' 78 | 79 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/Conscript-cgame: -------------------------------------------------------------------------------- 1 | # cgame 2 | 3 | Import qw( BASE_CFLAGS CONFIG_DIR BUILD_DIR BASEGAME CC CXX LINK ); 4 | 5 | $env = new cons( 6 | CC => $CC, 7 | CXX => $CXX, 8 | LINK => $LINK, 9 | CFLAGS => $BASE_CFLAGS . '-fPIC -DCGAMEDLL', 10 | LDFLAGS => '-shared -ldl -lm' 11 | ); 12 | 13 | @FILES = qw( 14 | ../game/bg_animation.c 15 | ../game/bg_misc.c 16 | ../game/bg_pmove.c 17 | ../game/bg_slidemove.c 18 | ../cgame/cg_consolecmds.c 19 | ../cgame/cg_draw.c 20 | ../cgame/cg_drawtools.c 21 | ../cgame/cg_effects.c 22 | ../cgame/cg_ents.c 23 | ../cgame/cg_event.c 24 | ../cgame/cg_flamethrower.c 25 | ../cgame/cg_info.c 26 | ../cgame/cg_localents.c 27 | ../cgame/cg_main.c 28 | ../cgame/cg_marks.c 29 | ../cgame/cg_newDraw.c 30 | ../cgame/cg_particles.c 31 | ../cgame/cg_players.c 32 | ../cgame/cg_playerstate.c 33 | ../cgame/cg_predict.c 34 | ../cgame/cg_scoreboard.c 35 | ../cgame/cg_servercmds.c 36 | ../cgame/cg_snapshot.c 37 | ../cgame/cg_sound.c 38 | ../cgame/cg_syscalls.c 39 | ../cgame/cg_trails.c 40 | ../cgame/cg_view.c 41 | ../cgame/cg_weapons.c 42 | ../game/q_math.c 43 | ../game/q_shared.c 44 | ../ui/ui_shared.c 45 | ); 46 | $FILESREF = \@FILES; 47 | 48 | # FIXME CPU string 49 | Program $env 'cgamearm.so', @$FILESREF; 50 | Install $env '#' . $CONFIG_DIR . '/out/' . $BASEGAME, 'cgamearm.so'; 51 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/Conscript-setup: -------------------------------------------------------------------------------- 1 | # setup 2 | 3 | Import qw( CONFIG_DIR WOLF_VER BASEGAME do_demo ); 4 | 5 | $env = new cons(); 6 | 7 | sub launch { 8 | if ($do_demo eq 1) 9 | { 10 | # for the SP demo, we build locally 11 | system("sh ./build_setup.sh $CONFIG_DIR/out $WOLF_VER"); 12 | } 13 | else 14 | { 15 | # the master code for the full setup sits in MP tree 16 | print "Please run ./cons -- release setup in MP tree instead\n"; 17 | } 18 | # what we used prior to setup functionality 19 | #system("./build_tarball.sh $CONFIG_DIR/out $WOLF_VER"); 20 | return 1; 21 | } 22 | 23 | Depends $env 'foo', 24 | 'out/wolfsp.arm', 25 | 'out/' . $BASEGAME . '/cgamearm.so', 26 | 'out/' . $BASEGAME . '/qagamearm.so', 27 | 'out/' . $BASEGAME . '/uiarm.so'; 28 | Command $env 'foo', "[perl] &launch()"; 29 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/Conscript-ui: -------------------------------------------------------------------------------- 1 | # ui 2 | 3 | Import qw( BASE_CFLAGS CONFIG_DIR BUILD_DIR BASEGAME CC CXX LINK ); 4 | 5 | $env = new cons( 6 | CC => $CC, 7 | CXX => $CXX, 8 | LINK => $LINK, 9 | CFLAGS => $BASE_CFLAGS . '-fPIC', 10 | LDFLAGS => '-shared -ldl -lm' 11 | ); 12 | 13 | @FILES = qw( 14 | ../game/bg_misc.c 15 | ../game/q_math.c 16 | ../game/q_shared.c 17 | ../ui/ui_atoms.c 18 | ../ui/ui_gameinfo.c 19 | ../ui/ui_main.c 20 | ../ui/ui_players.c 21 | ../ui/ui_shared.c 22 | ../ui/ui_syscalls.c 23 | ../ui/ui_util.c 24 | ); 25 | $FILESREF = \@FILES; 26 | 27 | # FIXME CPU string 28 | Program $env 'uiarm.so', @$FILESREF; 29 | Install $env '#' . $CONFIG_DIR . '/out/' . $BASEGAME, 'uiarm.so'; 30 | 31 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/build_tarball.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # temporary script to build a tarball out of a build tree 3 | 4 | IN_DIR=$1 5 | VERSION=$2 6 | 7 | TMP_DIR=wolf-$VERSION 8 | rm -rf $TMP_DIR 9 | mkdir $TMP_DIR 10 | 11 | echo "Building tarball from $IN_DIR" 12 | echo "Version $VERSION" 13 | 14 | cp -R $IN_DIR/* $TMP_DIR 15 | find $TMP_DIR -name '*.so' -exec strip {} \; 16 | strip $TMP_DIR/wolf.x86 17 | 18 | rm wolf-linux-$VERSION.tar.gz 19 | tar cvzf wolf-linux-$VERSION.tar.gz $TMP_DIR 20 | 21 | echo "done: wolf-linux-$VERSION.tar.gz" 22 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/cgame.vpj: -------------------------------------------------------------------------------- 1 | [GLOBAL] 2 | workingdir=. 3 | version=6.0 4 | packname=GNU gcc or g++ 5 | MACRO=\n 6 | [CONFIGURATIONS] 7 | activeconfig=,Release 8 | config=,Release 9 | [COMPILER.Release] 10 | compile=copts: concur|capture|menu: Compile:&Compilecmd: make %n.ootheropts: 11 | make=copts: concur|capture|savemodified|menu: Build:&Buildcmd: consotheropts: 12 | rebuild=copts: concur|capture|menu: Rebuild:&Rebuildcmd: otheropts: 13 | debug=copts: |menu: Debug:&Debugcmd: xxgdb [exename-here]otheropts: 14 | execute=copts: |menu: Execute:E&xecutecmd: cgameotheropts: 15 | includedirs=%(INCLUDE) 16 | reffile= 17 | [FILES] 18 | Conscript-cgame 19 | ../cgame/cg_consolecmds.c 20 | ../cgame/cg_draw.c 21 | ../cgame/cg_drawtools.c 22 | ../cgame/cg_effects.c 23 | ../cgame/cg_ents.c 24 | ../cgame/cg_event.c 25 | ../cgame/cg_flamethrower.c 26 | ../cgame/cg_info.c 27 | ../cgame/cg_local.h 28 | ../cgame/cg_localents.c 29 | ../cgame/cg_main.c 30 | ../cgame/cg_marks.c 31 | ../cgame/cg_newDraw.c 32 | ../cgame/cg_particles.c 33 | ../cgame/cg_players.c 34 | ../cgame/cg_playerstate.c 35 | ../cgame/cg_predict.c 36 | ../cgame/cg_public.h 37 | ../cgame/cg_scoreboard.c 38 | ../cgame/cg_servercmds.c 39 | ../cgame/cg_snapshot.c 40 | ../cgame/cg_sound.c 41 | ../cgame/cg_syscalls.c 42 | ../cgame/cg_trails.c 43 | ../cgame/cg_view.c 44 | ../cgame/cg_weapons.c 45 | ../cgame/tr_types.h 46 | ../game/bg_animation.c 47 | [ASSOCIATION] 48 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/extractfuncs.vpj: -------------------------------------------------------------------------------- 1 | [GLOBAL] 2 | workingdir=. 3 | version=6.0 4 | packname=GNU gcc or g++ 5 | MACRO=\n 6 | [CONFIGURATIONS] 7 | activeconfig=,Release 8 | config=,Release 9 | [COMPILER.Release] 10 | compile=copts: concur|capture|menu: Compile:&Compilecmd: make %n.ootheropts: 11 | make=copts: concur|capture|savemodified|menu: Build:&Buildcmd: consotheropts: 12 | rebuild=copts: concur|capture|menu: Rebuild:&Rebuildcmd: otheropts: 13 | debug=copts: |menu: Debug:&Debugcmd: xxgdb [exename-here]otheropts: 14 | execute=copts: |menu: Execute:E&xecutecmd: extractfuncsotheropts: 15 | includedirs=%(INCLUDE) 16 | reffile= 17 | [FILES] 18 | ../extractfuncs/Conscript 19 | ../extractfuncs/extractfuncs.c 20 | ../extractfuncs/l_log.c 21 | ../extractfuncs/l_log.h 22 | ../extractfuncs/l_memory.c 23 | ../extractfuncs/l_memory.h 24 | ../extractfuncs/l_precomp.c 25 | ../extractfuncs/l_precomp.h 26 | ../extractfuncs/l_script.c 27 | ../extractfuncs/l_script.h 28 | [ASSOCIATION] 29 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/snapvector.nasm: -------------------------------------------------------------------------------- 1 | ; 2 | ; Sys_SnapVector NASM code (Andrew Henderson) 3 | ; See win32/win_shared.c for the Win32 equivalent 4 | ; This code is provided to ensure that the 5 | ; rounding behavior (and, if necessary, the 6 | ; precision) of DLL and QVM code are identical 7 | ; e.g. for network-visible operations. 8 | ; See ftol.nasm for operations on a single float, 9 | ; as used in compiled VM and DLL code that does 10 | ; not use this system trap. 11 | ; 12 | 13 | 14 | segment .data 15 | 16 | fpucw dd 0 17 | cw037F dd 0x037F ; Rounding to nearest (even). 18 | 19 | segment .text 20 | 21 | ; void Sys_SnapVector( float *v ) 22 | global Sys_SnapVector 23 | Sys_SnapVector: 24 | push eax 25 | push ebp 26 | mov ebp, esp 27 | 28 | fnstcw [fpucw] 29 | mov eax, dword [ebp + 12] 30 | fldcw [cw037F] 31 | fld dword [eax] 32 | fistp dword [eax] 33 | fild dword [eax] 34 | fstp dword [eax] 35 | fld dword [eax + 4] 36 | fistp dword [eax + 4] 37 | fild dword [eax + 4] 38 | fstp dword [eax + 4] 39 | fld dword [eax + 8] 40 | fistp dword [eax + 8] 41 | fild dword [eax + 8] 42 | fstp dword [eax + 8] 43 | fldcw [fpucw] 44 | 45 | pop ebp 46 | pop eax 47 | ret 48 | 49 | ; void Sys_SnapVectorCW( float *v, unsigned short int cw ) 50 | global Sys_SnapVectorCW 51 | Sys_SnapVector_cw: 52 | push eax 53 | push ebp 54 | mov ebp, esp 55 | 56 | fnstcw [fpucw] 57 | mov eax, dword [ebp + 12] 58 | fldcw [ebp + 16] 59 | fld dword [eax] 60 | fistp dword [eax] 61 | fild dword [eax] 62 | fstp dword [eax] 63 | fld dword [eax + 4] 64 | fistp dword [eax + 4] 65 | fild dword [eax + 4] 66 | fstp dword [eax + 4] 67 | fld dword [eax + 8] 68 | fistp dword [eax + 8] 69 | fild dword [eax + 8] 70 | fstp dword [eax + 8] 71 | fldcw [fpucw] 72 | 73 | pop ebp 74 | pop eax 75 | ret -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/sys_dosa.s: -------------------------------------------------------------------------------- 1 | // 2 | // sys_dosa.s 3 | // x86 assembly-language DOS-dependent routines. 4 | 5 | #include "qasm.h" 6 | 7 | 8 | .data 9 | 10 | .align 4 11 | fpenv: 12 | .long 0, 0, 0, 0, 0, 0, 0, 0 13 | 14 | .text 15 | 16 | .globl C(MaskExceptions) 17 | C(MaskExceptions): 18 | fnstenv fpenv 19 | orl $0x3F,fpenv 20 | fldenv fpenv 21 | 22 | ret 23 | 24 | #if 0 25 | .globl C(unmaskexceptions) 26 | C(unmaskexceptions): 27 | fnstenv fpenv 28 | andl $0xFFFFFFE0,fpenv 29 | fldenv fpenv 30 | 31 | ret 32 | #endif 33 | 34 | .data 35 | 36 | .align 4 37 | .globl ceil_cw, single_cw, full_cw, cw, pushed_cw 38 | ceil_cw: .long 0 39 | single_cw: .long 0 40 | full_cw: .long 0 41 | cw: .long 0 42 | pushed_cw: .long 0 43 | 44 | .text 45 | 46 | .globl C(Sys_LowFPPrecision) 47 | C(Sys_LowFPPrecision): 48 | fldcw single_cw 49 | 50 | ret 51 | 52 | .globl C(Sys_HighFPPrecision) 53 | C(Sys_HighFPPrecision): 54 | fldcw full_cw 55 | 56 | ret 57 | 58 | .globl C(Sys_PushFPCW_SetHigh) 59 | C(Sys_PushFPCW_SetHigh): 60 | fnstcw pushed_cw 61 | fldcw full_cw 62 | 63 | ret 64 | 65 | .globl C(Sys_PopFPCW) 66 | C(Sys_PopFPCW): 67 | fldcw pushed_cw 68 | 69 | ret 70 | 71 | .globl C(Sys_SetFPCW) 72 | C(Sys_SetFPCW): 73 | fnstcw cw 74 | movl cw,%eax 75 | #if id386 76 | andb $0xF0,%ah 77 | orb $0x03,%ah // round mode, 64-bit precision 78 | #endif 79 | movl %eax,full_cw 80 | 81 | #if id386 82 | andb $0xF0,%ah 83 | orb $0x0C,%ah // chop mode, single precision 84 | #endif 85 | movl %eax,single_cw 86 | 87 | #if id386 88 | andb $0xF0,%ah 89 | orb $0x08,%ah // ceil mode, single precision 90 | #endif 91 | movl %eax,ceil_cw 92 | 93 | ret 94 | 95 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/ui.vpj: -------------------------------------------------------------------------------- 1 | [GLOBAL] 2 | workingdir=. 3 | version=6.0 4 | packname=GNU gcc or g++ 5 | MACRO=\n 6 | [CONFIGURATIONS] 7 | activeconfig=,Release 8 | config=,Release 9 | [COMPILER.Release] 10 | compile=copts: concur|capture|menu: Compile:&Compilecmd: make %n.ootheropts: 11 | make=copts: concur|capture|savemodified|menu: Build:&Buildcmd: consotheropts: 12 | rebuild=copts: concur|capture|menu: Rebuild:&Rebuildcmd: otheropts: 13 | debug=copts: |menu: Debug:&Debugcmd: xxgdb [exename-here]otheropts: 14 | execute=copts: |menu: Execute:E&xecutecmd: uiotheropts: 15 | includedirs=%(INCLUDE) 16 | reffile= 17 | [FILES] 18 | Conscript-ui 19 | Construct 20 | ../ui/keycodes.h 21 | ../ui/ui_atoms.c 22 | ../ui/ui_gameinfo.c 23 | ../ui/ui_local.h 24 | ../ui/ui_main.c 25 | ../ui/ui_players.c 26 | ../ui/ui_public.h 27 | ../ui/ui_shared.c 28 | ../ui/ui_shared.h 29 | ../ui/ui_syscalls.c 30 | ../ui/ui_util.c 31 | [ASSOCIATION] 32 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/unix_glw.h: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | #if !( defined __linux__ || defined __FreeBSD__ ) 30 | #error You should include this file only on Linux/FreeBSD platforms 31 | #endif 32 | 33 | #ifndef __GLW_LINUX_H__ 34 | #define __GLW_LINUX_H__ 35 | 36 | typedef struct 37 | { 38 | void *OpenGLLib; // instance of OpenGL library 39 | 40 | FILE *log_fp; 41 | } glwstate_t; 42 | 43 | extern glwstate_t glw_state; 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/unix_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/jni/rtcw/src/unix/unix_main.c -------------------------------------------------------------------------------- /Projects/Android/jni/rtcw/src/unix/vm_x86.c: -------------------------------------------------------------------------------- 1 | /* 2 | =========================================================================== 3 | 4 | Return to Castle Wolfenstein single player GPL Source Code 5 | Copyright (C) 1999-2010 id Software LLC, a ZeniMax Media company. 6 | 7 | This file is part of the Return to Castle Wolfenstein single player GPL Source Code (“RTCW SP Source Code”). 8 | 9 | RTCW SP Source Code is free software: you can redistribute it and/or modify 10 | it under the terms of the GNU General Public License as published by 11 | the Free Software Foundation, either version 3 of the License, or 12 | (at your option) any later version. 13 | 14 | RTCW SP Source Code is distributed in the hope that it will be useful, 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | GNU General Public License for more details. 18 | 19 | You should have received a copy of the GNU General Public License 20 | along with RTCW SP Source Code. If not, see . 21 | 22 | In addition, the RTCW SP Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the RTCW SP Source Code. If not, please request a copy in writing from id Software at the address below. 23 | 24 | If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA. 25 | 26 | =========================================================================== 27 | */ 28 | 29 | 30 | #include "../qcommon/vm_local.h" 31 | 32 | void VM_Compile( vm_t *vm, vmHeader_t *header ) {} 33 | int VM_CallCompiled( vm_t *vm, int *args ) {} 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Projects/Android/libs/haptic_service.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/libs/haptic_service.aar -------------------------------------------------------------------------------- /Projects/Android/local.properties: -------------------------------------------------------------------------------- 1 | ## This file must *NOT* be checked into Version Control Systems, 2 | # as it contains information specific to your local configuration. 3 | # 4 | # Location of the SDK. This is only used by Gradle. 5 | # For customization when using a Version Control System, please read the 6 | # header note. 7 | #Thu Dec 12 20:21:11 GMT 2019 8 | ndk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk\\ndk-bundle 9 | sdk.dir=C\:\\Users\\Simon\\AppData\\Local\\Android\\Sdk 10 | -------------------------------------------------------------------------------- /Projects/Android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.projectDir = new File(settingsDir, '../../../..') 2 | rootProject.name = "RTCWQuest" 3 | 4 | include ':', ':VrSamples:RTCWQuest:Projects:Android' 5 | -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/gfx/menus/background_dim.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/gfx/menus/background_dim.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/gfx/menus/control_scheme.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/gfx/menus/control_scheme.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/gfx/vignette.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/gfx/vignette.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/arrow.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/arrow.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/binoculars.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/binoculars.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/binoculars_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/binoculars_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/exit.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/exit.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/exit_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/exit_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/icon_pbook_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/icon_pbook_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/icon_vbook_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/icon_vbook_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/icon_zbook_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/icon_zbook_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_acolt_1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_acolt_1.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_acolt_1_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_acolt_1_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_amp40_1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_amp40_1.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_amp40_1_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_amp40_1_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_athompson_1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_athompson_1.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_athompson_1_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_athompson_1_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_sluger_1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_sluger_1.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/iconw_sluger_1_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/iconw_sluger_1_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/item_select_cursor.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/item_select_cursor.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/load.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/load.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/load_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/load_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/noammo2.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/noammo2.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/save.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/save.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/save_select.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/save_select.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/stamina_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/stamina_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/wine2_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/wine2_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/wine3_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/wine3_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/icons/wine_notselect.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/icons/wine_notselect.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/models/players/bj/hand.mdc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/models/players/bj/hand.mdc -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/models/powerups/binoc.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/models/powerups/binoc.jpg -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/models/powerups/v_binocs.mdc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/models/powerups/v_binocs.mdc -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/models_vr.cfg: -------------------------------------------------------------------------------- 1 | // Offes for other VR models 2 | // Values are: scale,right,up,forward,pitch,yaw,roll 3 | 4 | seta vr_offhand_adjustment "1,-1,-1,-1,0,0,0" 5 | seta vr_binoculars_adjustment "0.7,0,0,0,0,65,0" 6 | -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/text/pickupnames.txt: -------------------------------------------------------------------------------- 1 | "---" 2 | "---" 3 | "Treasure Item" 4 | "Small Health" 5 | "Med Health" 6 | "Large Health" 7 | "Hot Meal" 8 | "Cold Meal" 9 | "---" 10 | "Health" // hanging kit 11 | "Stamina" // stein 12 | "Stamina" // brandy 13 | "Flak Jacket" 14 | "Flak Jacket" // hanging on hook 15 | "Armored Helmet" 16 | "---" 17 | "Knife" 18 | "Luger" 19 | "Mauser Rifle" 20 | "Dual Thompsons" 21 | "Thompson" 22 | "Sten" 23 | "Dual Colts" 24 | "Colt" 25 | "---" 26 | "Dual MP40s" 27 | "MP40" 28 | "FG42 Paratroop Rifle" 29 | "Silencer" 30 | "Panzerfaust" 31 | "Grenade" 32 | "Pineapple" 33 | "---" 34 | "Venom" 35 | "Flamethrower" 36 | "Tesla Gun" 37 | "Sniper Scope" 38 | "Snooper Rifle" 39 | "---" 40 | "---" 41 | "---" 42 | "---" 43 | "---" 44 | "9mm Rounds" 45 | "9mm" 46 | "9mm Box" 47 | ".45cal Rounds" 48 | ".45cal" 49 | ".45cal Box" 50 | "7.92mm Rounds" 51 | "7.92mm" 52 | "7.92mm Box" 53 | ".30cal Rounds" 54 | ".30cal" 55 | ".30cal Box" 56 | "12.7mm" 57 | "Grenades" 58 | "Pineapples" 59 | "Dynamite" 60 | "Cell" 61 | "Fuel" 62 | "Rockets" 63 | "---" 64 | "1938 Latour" 65 | "Endurance" 66 | "Venom Tech Manual" 67 | "Project Book" 68 | "Dr. Zemph's Journal" 69 | "Red Flag" 70 | "Blue Flag" 71 | "Binoculars" 72 | -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/ui/assets/cheats_sketch.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/ui/assets/cheats_sketch.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/ui/assets/pageturn3.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/Projects/Android/z_vr_assets/ui/assets/pageturn3.tga -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/ui/help_popup.menu: -------------------------------------------------------------------------------- 1 | #include "ui/menudef.h" 2 | 3 | { 4 | menuDef 5 | { 6 | name helpPopupMenu 7 | visible 0 8 | fullScreen 0 9 | rect 0 0 640 480 10 | focusColor 1 1 1 1 11 | style WINDOW_STYLE_FILLED 12 | outOfBoundsClick 13 | popup 14 | onEsc { open foo } 15 | 16 | itemDef 17 | { 18 | group none 19 | name background 20 | rect 0 0 640 480 21 | style WINDOW_STYLE_SHADER 22 | type ITEM_TYPE_BUTTON 23 | background "gfx/menus/background_dim.tga" 24 | forecolor 1 1 1 1 25 | visible 1 26 | action { open foo } 27 | } 28 | 29 | itemDef 30 | { 31 | group none 32 | name scheme 33 | rect 20 15 600 450 34 | style WINDOW_STYLE_SHADER 35 | background "gfx/menus/control_scheme.tga" 36 | forecolor 1 1 1 1 37 | visible 1 38 | } 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/ui/ingame.txt: -------------------------------------------------------------------------------- 1 | // menu defs 2 | // 3 | { 4 | loadMenu { "ui/ingame.menu" } 5 | // loadMenu { "ui/ingame_about.menu" } 6 | loadMenu { "ui/ingame_controls.menu" } 7 | loadMenu { "ui/ingame_options.menu" } 8 | loadMenu { "ui/ingame_system.menu" } 9 | loadMenu { "ui/ingame_leave.menu" } 10 | loadMenu { "ui/ingame_player.menu" } 11 | 12 | loadMenu { "ui/ingame_load.menu" } 13 | loadMenu { "ui/ingame_save.menu" } 14 | 15 | loadMenu { "ui/in_vid_restart.menu" } 16 | loadMenu { "ui/in_snd_restart.menu" } 17 | loadMenu { "ui/in_rec_restart.menu" } 18 | 19 | loadMenu { "ui/notebook.menu" } 20 | loadMenu { "ui/clipboard.menu" } 21 | loadMenu { "ui/bookz.menu" } 22 | loadMenu { "ui/bookv.menu" } 23 | loadMenu { "ui/bookp.menu" } 24 | loadMenu { "ui/pregame.menu" } 25 | loadMenu { "ui/test.menu" } 26 | 27 | loadMenu { "ui/ingame_help.menu" } 28 | loadMenu { "ui/cheats.menu" } 29 | 30 | loadMenu { "ui/credits.menu" } 31 | loadMenu { "ui/help_popup.menu"} 32 | } 33 | -------------------------------------------------------------------------------- /Projects/Android/z_vr_assets/ui/menus.txt: -------------------------------------------------------------------------------- 1 | // menu defs 2 | // 3 | { 4 | loadMenu { "ui/main.menu" } 5 | // loadMenu { "ui/joinserver.menu" } // NERVE - SMF - commented in for multiplayer 6 | loadMenu { "ui/setup.menu" } 7 | loadMenu { "ui/controls.menu" } 8 | loadMenu { "ui/cdkey.menu" } 9 | loadMenu { "ui/system.menu" } 10 | loadMenu { "ui/options.menu" } 11 | // loadMenu { "ui/cinematicmenu.menu" } 12 | loadMenu { "ui/credit.menu" } 13 | loadMenu { "ui/connect.menu" } 14 | loadMenu { "ui/quit.menu" } 15 | loadMenu { "ui/vid_restart.menu" } 16 | loadMenu { "ui/snd_restart.menu" } 17 | loadMenu { "ui/rec_restart.menu" } 18 | loadMenu { "ui/default.menu" } 19 | loadMenu { "ui/error.menu" } 20 | loadMenu { "ui/serverinfo.menu" } 21 | loadMenu { "ui/quitcredit.menu" } 22 | loadMenu { "ui/resetscore.menu" } 23 | loadMenu { "ui/multiplayer_pop.menu" } 24 | 25 | loadMenu { "ui/play.menu" } // (mx) added 26 | loadMenu { "ui/load.menu" } // (mx) added 27 | // loadMenu { "ui/multiplayer.menu" } // (mx) added 28 | 29 | loadMenu { "ui/briefing.menu" } //----(SA) added 30 | 31 | 32 | 33 | // (SA) removed old q3a stuff so we don't get so many yellow startup warnings 34 | // loadMenu { "ui/player.menu" } 35 | // loadMenu { "ui/fight.menu" } 36 | // loadMenu { "ui/skirmish.menu" } 37 | // loadMenu { "ui/createserver.menu" } 38 | // loadMenu { "ui/help.menu" } 39 | // loadMenu { "ui/ordershelp.menu" } 40 | // loadMenu { "ui/mod.menu" } 41 | // loadMenu { "ui/demo.menu" } 42 | // loadMenu { "ui/demo_quit.menu" } 43 | // loadMenu { "ui/powerup.menu" } 44 | // loadMenu { "ui/password.menu" } 45 | // loadMenu { "ui/quake3.menu" } 46 | // loadMenu { "ui/addfilter.menu" } 47 | // loadMenu { "ui/findplayer.menu" } 48 | // loadMenu { "ui/endofgame.menu" } 49 | // loadMenu { "ui/createfavorite.menu" } 50 | 51 | loadMenu { "ui/credits.menu" } 52 | loadMenu { "ui/help_popup.menu"} 53 | } 54 | -------------------------------------------------------------------------------- /VrSamples-RTCWQuest.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /assets/Controller_diagram_alt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/assets/Controller_diagram_alt.jpg -------------------------------------------------------------------------------- /assets/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/assets/banner.jpg -------------------------------------------------------------------------------- /assets/commandline.txt: -------------------------------------------------------------------------------- 1 | rtcw -------------------------------------------------------------------------------- /java/com/drbeef/rtcwquest/GLES3JNILib.java: -------------------------------------------------------------------------------- 1 | 2 | package com.drbeef.rtcwquest; 3 | 4 | import android.app.Activity; 5 | import android.view.Surface; 6 | 7 | import java.nio.ByteBuffer; 8 | 9 | // Wrapper for native library 10 | 11 | public class GLES3JNILib 12 | { 13 | // Activity lifecycle 14 | public static native long onCreate( Activity obj, String commandLineParams ); 15 | public static native void onStart( long handle, Object obj ); 16 | public static native void onResume( long handle ); 17 | public static native void onPause( long handle ); 18 | public static native void onStop( long handle ); 19 | public static native void onDestroy( long handle ); 20 | 21 | // Surface lifecycle 22 | public static native void onSurfaceCreated( long handle, Surface s ); 23 | public static native void onSurfaceChanged( long handle, Surface s ); 24 | public static native void onSurfaceDestroyed( long handle ); 25 | } 26 | -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_rtcwquest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/res/drawable-hdpi/ic_rtcwquest.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_rtcwquest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/res/drawable-mdpi/ic_rtcwquest.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_rtcwquest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/res/drawable-xhdpi/ic_rtcwquest.png -------------------------------------------------------------------------------- /res/drawable-xxhdpi/ic_rtcwquest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DrBeef/RTCWQuest/687cdf081119f7d09b991e8689fd4c141e8cc188/res/drawable-xxhdpi/ic_rtcwquest.png -------------------------------------------------------------------------------- /res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | RTCWQuest 9 | 10 | 11 | --------------------------------------------------------------------------------