Kp
8c24eaa721
Pass color to g3_draw_line
2016-02-12 04:02:28 +00:00
Kp
6b9a03cf2d
Pass color to gr_upoly_tmap
2016-02-12 04:02:28 +00:00
Kp
61821d0b42
Pass color to gr_upoly_tmap_ylr
2016-02-12 04:02:28 +00:00
Kp
36bd39babe
Pass color to gr_line
2016-02-12 04:02:28 +00:00
Kp
3c73d44771
Pass color to gr_disk
2016-02-12 04:02:28 +00:00
Kp
ecb71ba22e
Pass color to gr_ucircle
2016-02-12 04:02:28 +00:00
Kp
edd2acc86b
Pass color to gr_box
2016-02-12 04:02:28 +00:00
Kp
8135577315
Pass color to gr_ubox12
2016-02-12 04:02:28 +00:00
Kp
de08a67321
Pass color to gr_ubox
2016-02-12 04:02:28 +00:00
Kp
23047b1165
Pass color to gr_rect
2016-02-12 04:02:28 +00:00
Kp
35a4736df0
Pass color to gr_urect
2016-02-12 04:02:28 +00:00
Kp
f235d6b12b
Pass color to gr_pixel
2016-02-12 04:02:28 +00:00
Kp
053901b62b
Pass color to gr_uline
2016-02-12 04:02:28 +00:00
Kp
5aeb7559fb
Pass color to 2d/line.cpp workers
2016-02-12 04:02:28 +00:00
Kp
659f0fb3ab
Pass color to gr_upixel
2016-02-12 04:02:28 +00:00
Kp
0dcfa6fba5
Pass color to ogl_urect
2016-02-12 04:02:28 +00:00
Kp
fabe774291
Pass color to gr_scanline
2016-02-12 04:02:28 +00:00
Kp
8e186e93e2
Unify g3_draw_sphere must_clip_line paths
2016-02-12 04:02:28 +00:00
Kp
1c04cb70d9
Change ogl_ubitmapm_cs constant -1 to const white
2016-02-12 04:02:28 +00:00
Kp
2a50243a07
Separate out ogl_ubitmapm_cs color setup
2016-02-12 04:02:28 +00:00
Kp
553b313099
Use vwallptr
2016-02-12 04:02:28 +00:00
Kp
2fd6a425b0
Remove highest_valid
2016-02-12 04:02:28 +00:00
Kp
e07c9a5f87
Combine ft_chars, ft_allocdata into one allocation
2016-02-12 04:02:28 +00:00
Kp
230f2dbb19
Make cv_blend_func OGL-specific
2016-02-12 04:02:28 +00:00
Kp
b57f08c798
Use partial_const_range
2016-02-12 04:02:28 +00:00
Kp
0f700eec0b
Unify g3_draw_sphere calls to gr_disk
2016-02-11 03:25:52 +00:00
Kp
455ab60c4a
Switch OGL extension include to <SDL.h>
...
The new OGL extension code included <SDL/SDL.h>, which works when the
SDL headers are installed in a directory named SDL and that directory is
in a system search directory. Those conditions usually hold on Linux,
both for /usr/include and /usr/local/include. However, non-Linux users
sometimes install SDL in other places. Kreator reports that the OGL
build on OS X failed because his SDL headers were on the search path,
but not in a directory named SDL on the search path. Switch the
include directive to an unqualified name to match other SDL includes.
Reported-by: kreatordxx <private mail>
Fixes: db267af6f2
("add basic OpenGL extension handling")
2016-02-11 03:25:52 +00:00
Kp
8a324f8492
Simplify gr_scanline
2016-02-10 03:58:05 +00:00
Kp
443b021db8
Precompute fade_table first level index
2016-02-10 03:58:05 +00:00
Kp
e6d5b6f041
Move valptridx get_count/set_count to untyped base
2016-02-10 03:58:05 +00:00
Kp
c5f4daa11b
Remove write-only trigger field time
2016-02-06 22:12:55 +00:00
Kp
6e20d86941
Move OF_PLAYER_DROPPED into drop_powerup
...
This fixes an issue where calling drop_powerup with num > 1 only tagged
one powerup as player-dropped.
This also changes powerups dropped by the thief to be "player-dropped",
since, aside from the initial shields/energy, they came from the player
originally.
2016-02-06 22:12:55 +00:00
Kp
1f9e69b0b7
Replace highest_valid(V,offset) with partial_range
2016-02-06 22:12:55 +00:00
Kp
96a183e3d2
Move partial_range __builtin_object_size out of line
2016-02-06 22:12:55 +00:00
Kp
69b7693720
Propagate partial_range size up
2016-02-06 22:12:55 +00:00
Kp
92e6987c2c
Improve exact_type comparison operators
2016-02-06 22:12:54 +00:00
Kp
198540d080
Use range_for in bm.cpp
2016-02-06 22:12:54 +00:00
Kp
ec025d4e88
Pass common highest_valid to vptr factory
2016-02-06 22:12:54 +00:00
Kp
0101f98905
Use wallnum_t in more places
2016-02-06 22:12:54 +00:00
Kp
bb5d1bb7e5
Use valptridx array type for Walls
2016-02-06 22:12:54 +00:00
Kp
72d2844070
Use enum for trigger flags
2016-02-06 22:12:54 +00:00
Kp
74dfa29d31
Convert most Trigger references to valptridx
2016-02-06 22:12:54 +00:00
Kp
4f0cbcffa9
Use valptridx array type for Triggers
2016-02-06 22:12:53 +00:00
Kp
5f33054161
Hide vm_distance safety net from clang
...
When the safety net is present, clang becomes confused. Run without a
net and hope that gcc users catch any erroneous conversions.
2016-02-02 03:10:53 +00:00
Kp
e283a22709
Use enum class for check_volatile_wall
2016-01-29 04:05:47 +00:00
Kp
bc488a8f57
Improve check_volatile_wall
2016-01-29 04:05:47 +00:00
Kp
386a58e3f6
Simplify make_range
2016-01-29 04:05:47 +00:00
Kp
905d935a6b
Remove write-only cv_drawmode
2016-01-29 04:05:47 +00:00
Kp
ff67afd440
Propagate partial_range up into PHYSFSX_findFiles family
2016-01-29 04:05:47 +00:00
Kp
4abbc28d0f
Switch to non-template operator> for vm_distance
...
clang considers the template form to be ambiguous
2016-01-27 04:01:55 +00:00
Kp
5a1791f7c3
Fix valptridx pch build
2016-01-26 03:45:08 +00:00
Kp
bad07b668e
Fix misplaced preprocessor directive
2016-01-26 03:45:06 +00:00
Kp
4e29e2625d
Move multi_endlevel_poll* lookups to menu creation
2016-01-26 03:45:06 +00:00
Kp
124a2ee09c
Move net_udp.cpp specific defines out of header
2016-01-26 03:45:06 +00:00
Kp
8f7d323ec6
Fix clang cvar build
...
Add format(printf,...) annotation to varargs functions to move format
string checking up one level.
2016-01-26 03:45:06 +00:00
Kp
9e174a0e0e
Factor out primary/secondary search/reorder
2016-01-17 17:36:48 +00:00
Kp
677c70c64e
Move font filename into grs_font
2016-01-10 21:18:09 +00:00
Kp
5d4fff1534
Combine gr_printf/gr_uprintf into template
2016-01-10 21:18:08 +00:00
Kp
7386094bc3
Rename menu macros to reduce token pasting
2016-01-09 16:38:17 +00:00
Kp
eb3fe7acdb
Remove sprintf from menubar.cpp
2016-01-09 16:38:16 +00:00
Kp
110d62a748
Remove sprintf from autosave.cpp
2016-01-09 16:38:16 +00:00
Kp
dd877f52c2
Remove unused weapon defines
2016-01-09 16:38:15 +00:00
Kp
8e86a3586d
Use #ifdef dsx to guard dsx namespace
2016-01-09 16:38:15 +00:00
Kp
86709f547b
Fix capitalization of PHYSFS_File
...
Per comment in physfs.h, the spelling PHYSFS_file is deprecated.
Replace all instances with PHYSFS_File.
2016-01-09 16:38:14 +00:00
Kp
a3ae630829
Remove default argument for basic_ptridx(index)
2016-01-09 16:38:14 +00:00
Kp
9ceedc96a8
Propagate valptridx requirement up
2016-01-09 16:38:14 +00:00
Kp
0be0475309
Move valptridx array highest to base class
2016-01-09 16:38:14 +00:00
Kp
6489c64598
Use type_traits to manage valptridx const
2016-01-09 16:38:13 +00:00
Kp
d6359d0eb7
Use template for object rotation functions
2016-01-09 16:38:13 +00:00
Kp
a32d9f01a1
Remove return value truncation in find_object_seg
2016-01-09 16:38:13 +00:00
Kp
98f5afa9f8
Remove default argument for basic_ptr(pointer,array &)
2016-01-09 16:38:13 +00:00
Kp
d17b12da31
Remove default argument for basic_ptr(index,array &)
2016-01-09 16:38:12 +00:00
Kp
1cef946a90
Remove default argument for basic_idx(index,array &)
2016-01-09 16:38:12 +00:00
Kp
96898bab0a
Block direct changes to Highest_segment_index
...
Route updates through helper functions.
2016-01-09 16:38:12 +00:00
Kp
f48eddeece
Block direct changes to Highest_object_index
...
Route updates through helper functions.
2016-01-09 16:38:12 +00:00
Kp
5a94f8bf4f
Fix check_header_includes build
2016-01-09 16:38:12 +00:00
Kp
1f91897f5d
Move some game symbols to namespaces
2016-01-09 16:38:12 +00:00
Kp
568f165c28
Shrink sincos_table
...
For all valid i, sincos_table[i] == sincos_table[i % 256]. Remove
elements [256:] and modify callers to truncate the index.
2016-01-09 16:38:11 +00:00
Kp
0a68a6439e
Use ={} to clear rle cache
2016-01-09 16:38:11 +00:00
Kp
fe1c0ee59b
Remove unnecessary free_text
...
The text is stored in a global unique_ptr, so running global destructors
will free the text.
2016-01-09 16:38:11 +00:00
Kp
0635dbf108
Pass trigger &
2016-01-09 16:38:11 +00:00
Kp
16c754f3a2
Split key_toggle_repeat paths at compile time
...
Every caller passes a literal truth value. Split the implementation by
the truth value. This saves loading the value before the call and
testing it inside the call.
2016-01-09 16:38:10 +00:00
Kp
410b09a330
Expand macro Player_exploded
2016-01-09 16:38:10 +00:00
Kp
47190be8e9
Fold Player_exploded into Player_dead_state
2016-01-09 16:38:10 +00:00
Kp
608cfdbf07
Combine Mission::enhanced with Mission::descent_version
2016-01-09 16:38:09 +00:00
Kp
24e902d4cf
Simplify find_connect_side
2016-01-03 20:21:35 +00:00
Kp
3428ea6392
Remove Show_only_curside
...
Show_only_curside was locked to 0 in EDITOR builds, but only EDITOR
builds could render the current side.
2016-01-03 20:21:35 +00:00
Kp
823ff63126
Move MplTrackerAddr to CArg
2015-12-24 04:01:29 +00:00
Kp
0b87ff267f
Move MplTrackerPort to CArg
2015-12-24 04:01:29 +00:00
Kp
3f9f1f2b49
Move MplUdpMyPort to CArg
2015-12-24 04:01:29 +00:00
Kp
56e77d4fec
Move MplUdpHostPort to CArg
2015-12-24 04:01:28 +00:00
Kp
0fb84b883f
Move DbgAltTex to CArg
2015-12-24 04:01:28 +00:00
Kp
b0e0f48058
Move DbgTexMap to CArg
2015-12-24 04:01:28 +00:00
Kp
a91ef00a86
Move DbgNoCompressPigBitmap to CArg
2015-12-24 04:01:28 +00:00
Kp
96b9f606d7
Invert game_render_frame_mono argument
2015-12-24 04:01:28 +00:00
Kp
834258fffa
Move DbgNoDoubleBuffer to CArg
2015-12-24 04:01:28 +00:00
Kp
048615f95e
Move DbgRenderStats to CArg
2015-12-24 04:01:28 +00:00
Kp
45a287f44b
Move DbgNoRun to CArg
2015-12-24 04:01:28 +00:00
Kp
ee98ef18f3
Move DbgSdlASyncBlit to CArg
2015-12-24 04:01:28 +00:00
Kp
94616f5e1c
Move DbgSdlHWSurface to CArg
2015-12-24 04:01:27 +00:00
Kp
4f14be6056
Move MplUdpHostAddr to CArg
2015-12-24 04:01:27 +00:00
Kp
2c3f64478d
Move OglSyncWait to CArg
2015-12-24 04:01:27 +00:00
Kp
9ec7e766cf
Move OglSyncMethod to CArg
2015-12-24 04:01:27 +00:00
Kp
d7c694b126
Move OglFixedFont to CArg
2015-12-24 04:01:27 +00:00
Kp
679e0adf3d
Move SysAutoDemo to CArg
2015-12-24 04:01:27 +00:00
Kp
cbd2cd7c54
Move SysNoTitles to CArg
2015-12-24 04:01:27 +00:00
Kp
948fa32f9c
Move SysNoBorders to CArg
2015-12-24 04:01:27 +00:00
Kp
4ac7055928
Move SysWindow to CArg
2015-12-24 04:01:27 +00:00
Kp
2629b5b3d9
Move SysAutoRecordDemo to CArg
2015-12-24 04:01:27 +00:00
Kp
93f3162a41
Move SysLowMem to CArg
2015-12-24 04:01:26 +00:00
Kp
2b4447f927
Move SysUsePlayersDir to CArg
2015-12-24 04:01:26 +00:00
Kp
2cea05d0a7
Move SysRecordDemoNameTemplate to CArg
2015-12-24 04:01:26 +00:00
Kp
63cd2dbb6b
Move SysPilot to CArg
2015-12-24 04:01:26 +00:00
Kp
584e2ce408
Move SysHogDir to CArg
2015-12-24 04:01:26 +00:00
Kp
9f1abe1910
Move SndNoMusic to CArg
2015-12-24 04:01:26 +00:00
Kp
bb3a386b47
Move GfxSkipHiresFNT to CArg
2015-12-24 04:01:26 +00:00
Kp
23bb4c5826
Move SysNoNiceFPS to CArg
2015-12-24 04:01:26 +00:00
Kp
63369b4dec
Shrink DbgVerbose to int8_t
...
Valid values are in [-3, 2].
2015-12-24 04:01:26 +00:00
Kp
fd53bb3738
Move #include <signal.h> out of namespace dcx
...
Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/issues/170 >
2015-12-23 03:28:17 +00:00
Kp
be04d3a4f9
Rewrite CLI
...
Remove artificial length limit on input.
Enable multi-line display of input.
2015-12-22 04:18:52 +00:00
Kp
287a74f88b
Multiplex do_laser_firing_player flags
2015-12-22 04:18:52 +00:00
Kp
f4a5040a60
Remove write-only Last_laser_fired_time
2015-12-22 04:18:52 +00:00
Kp
e8c34be843
Use v*ptr* factories with highest_valid
2015-12-22 04:18:51 +00:00
Kp
d479819931
Use absolute_sibling to reduce global references for ptridx
2015-12-22 04:18:51 +00:00
Kp
5d4bcddd4f
Move common object fields to dcx::object_base
2015-12-22 04:18:50 +00:00
Kp
af8876efe1
Make array optional for valptridx check_index_range
2015-12-22 04:18:50 +00:00
Kp
db9fb0ed42
Move more symbols into namespace dcx/dsx
2015-12-22 04:18:50 +00:00
Kp
132367ce27
Fix SDL-only build after namespace changes
2015-12-18 04:08:24 +00:00
Kp
e59fde57e7
Enable gr_remap_color_fonts in D1
...
This looks like a useful fix that was developed after Descent 1 was
released. Backport it. This reduces differences between the engines.
2015-12-18 04:08:24 +00:00
Kp
28ee4c1804
Move DbgUseOldTextureMerge to CArg
2015-12-18 04:08:24 +00:00
Kp
900bebe799
Move DbgGlRGBA2Ok to CArg
2015-12-18 04:08:24 +00:00
Kp
fa17246b7b
Move DbgGlLuminance4Alpha4Ok to CArg
2015-12-18 04:08:24 +00:00
Kp
7022d20b1e
Move DbgGlGetTexLevelParamOk to CArg
2015-12-18 04:08:24 +00:00
Kp
4a280e4556
Move DbgGlReadPixelsOk to CArg
2015-12-18 04:08:24 +00:00
Kp
b3e6dd3eb5
Move DbgGlIntensity4Ok to CArg
2015-12-18 04:08:23 +00:00
Kp
cdae6cad4d
Move DbgBpp to CArg
2015-12-18 04:08:23 +00:00
Kp
e0a88f4b7b
Move TexFilt to CCfg
2015-12-18 04:08:23 +00:00
Kp
22901a6636
Move WindowMode to CCfg
2015-12-18 04:08:23 +00:00
Kp
2b51578ba6
Use enum class for Player_dead_state (formerly Player_is_dead)
2015-12-15 04:09:35 +00:00
Kp
26e948d5f1
Uninline namespace dsx
2015-12-13 18:00:49 +00:00
Kp
dc8c0323d8
Uninline namespace dcx
2015-12-13 18:00:49 +00:00
Kp
32051298ae
Use inline namespace dcx/dsx for more symbols
2015-12-13 18:00:48 +00:00
Kp
8109379fdd
Use inline namespace dsx for similar/misc/
2015-12-13 18:00:48 +00:00
Kp
232cc324f9
Use inline namespace dsx for similar/arch/sdl/
2015-12-13 18:00:48 +00:00
Kp
09eba7f48a
Use inline namespace dsx for similar/arch/ogl/
2015-12-13 18:00:48 +00:00
Kp
d4857f4257
Use inline namespace dsx for similar/3d
2015-12-13 18:00:48 +00:00
Kp
85d7c495e8
Use inline namespace dsx for similar/2d
2015-12-13 18:00:48 +00:00
Kp
00e52d382e
Fix Win32 build
2015-12-11 03:39:40 +00:00
Kp
45f1a71420
Move valptridx get_global_array to DXX_VALPTRIDX_DECLARE_GLOBAL_SUBTYPE
...
This removes the need to repeat the array name when invoking
DEFINE_VALPTRIDX_SUBTYPE.
2015-12-08 04:20:24 +00:00
Kp
34d89d5139
Use inline namespace dsx for segment.h
2015-12-05 22:57:25 +00:00