Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
build: bump libtrx version
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Sep 17, 2024
1 parent 6d3deb1 commit da5502e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion data/ship/cfg/TR2X_gameflow.json5
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
"O_ROLLING_BALL_1": "Boulder 1",
"O_DARTS": "Disc",
"O_DART_EMITTER": "Disc Emitter",
"O_DRAW_BRIDGE": "Drawbridge",
"O_DRAWBRIDGE": "Drawbridge",
"O_TEETH_TRAP": "Teeth Trap",
"O_LIFT": "Lift",
"O_GENERAL": "Minisub",
Expand Down
2 changes: 1 addition & 1 deletion docs/progress.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ typedef enum { // decompiled
O_ROLLING_BALL_1 = 60,
O_DARTS = 61,
O_DART_EMITTER = 62,
O_DRAW_BRIDGE = 63,
O_DRAWBRIDGE = 63,
O_TEETH_TRAP = 64,
O_LIFT = 65,
O_GENERAL = 66,
Expand Down
11 changes: 10 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ project('TR2X', ['c'],
],
)

trx = subproject('libtrx', default_options: {'tr_version': '2'})
if host_machine.system() == 'darwin'
gfx_gl_default_backend = 'GFX_GL_33C'
else
gfx_gl_default_backend = 'GFX_GL_21'
endif

trx = subproject('libtrx', default_options: {
'tr_version': '2',
'gfx_gl_default_backend': gfx_gl_default_backend,
})
c_compiler = meson.get_compiler('c')

build_opts = [
Expand Down
2 changes: 1 addition & 1 deletion src/game/objects/names.def
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ OBJ_NAME_DEFINE(O_SPIKES, "Spikes")
OBJ_NAME_DEFINE(O_ROLLING_BALL_1, "Boulder 1")
OBJ_NAME_DEFINE(O_DARTS, "Disc")
OBJ_NAME_DEFINE(O_DART_EMITTER, "Disc Emitter")
OBJ_NAME_DEFINE(O_DRAW_BRIDGE, "Drawbridge")
OBJ_NAME_DEFINE(O_DRAWBRIDGE, "Drawbridge")
OBJ_NAME_DEFINE(O_TEETH_TRAP, "Teeth Trap")
OBJ_NAME_DEFINE(O_LIFT, "Lift")
OBJ_NAME_DEFINE(O_GENERAL, "Minisub")
Expand Down
2 changes: 1 addition & 1 deletion subprojects/libtrx
Submodule libtrx updated 42 files
+1 −1 include/libtrx/engine/audio.h
+83 −83 include/libtrx/game/objects.h
+4 −0 include/libtrx/game/shell.h
+28 −0 include/libtrx/gfx/2d/2d_renderer.h
+38 −0 include/libtrx/gfx/2d/2d_surface.h
+78 −0 include/libtrx/gfx/3d/3d_renderer.h
+47 −0 include/libtrx/gfx/3d/vertex_stream.h
+19 −0 include/libtrx/gfx/common.h
+12 −0 include/libtrx/gfx/config.h
+42 −0 include/libtrx/gfx/context.h
+20 −0 include/libtrx/gfx/gl/buffer.h
+3,354 −0 include/libtrx/gfx/gl/gl_core_3_3.h
+32 −0 include/libtrx/gfx/gl/program.h
+16 −0 include/libtrx/gfx/gl/sampler.h
+19 −0 include/libtrx/gfx/gl/texture.h
+14 −0 include/libtrx/gfx/gl/utils.h
+14 −0 include/libtrx/gfx/gl/vertex_array.h
+11 −0 include/libtrx/gfx/renderer.h
+5 −0 include/libtrx/gfx/renderers/fbo_renderer.h
+3 −0 include/libtrx/gfx/renderers/legacy_renderer.h
+12 −0 include/libtrx/gfx/screenshot.h
+7 −7 include/libtrx/json.h
+26 −2 meson.build
+6 −0 meson.options
+118 −0 src/gfx/2d/2d_renderer.c
+129 −0 src/gfx/2d/2d_surface.c
+361 −0 src/gfx/3d/3d_renderer.c
+160 −0 src/gfx/3d/vertex_stream.c
+330 −0 src/gfx/context.c
+67 −0 src/gfx/gl/buffer.c
+8,745 −0 src/gfx/gl/gl_core_3_3.c
+204 −0 src/gfx/gl/program.c
+35 −0 src/gfx/gl/sampler.c
+88 −0 src/gfx/gl/texture.c
+27 −0 src/gfx/gl/utils.c
+40 −0 src/gfx/gl/vertex_array.c
+248 −0 src/gfx/renderers/fbo_renderer.c
+35 −0 src/gfx/renderers/legacy_renderer.c
+76 −0 src/gfx/screenshot.c
+1 −1 tools/additional_lint
+7 −4 tools/libtrx/cli/additional_lint.py
+2 −1 tools/libtrx/cli/game_docker_entrypoint.py

0 comments on commit da5502e

Please sign in to comment.