Kp
5e4bd5c73f
vm_vec_delta_ang: check for vm_vec_copy_normalize failure
...
derhass reports that Raspbian g++-4.8.2 rejects vecmat.cpp for
-Wmaybe-uninitialized on t0, t1. Fix it by adding code to return 0 if
vm_vec_copy_normalize leaves the temporary uninitialized.
Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/issues/55 >
2015-04-03 02:46:25 +00:00
Kp
36e1612ecb
Make undo_status array<const char *>
2015-04-02 02:36:56 +00:00
Kp
2a1df52f71
Remove unused g3_draw_bitmap return value
2015-04-02 02:36:54 +00:00
Kp
72d349b0e0
Remove unused g3_draw_sphere return value
2015-04-02 02:36:54 +00:00
Kp
1125a751db
Remove unused g3_draw_poly return value
2015-04-02 02:36:54 +00:00
Kp
916cf69e37
Remove unused gr_uline return value
2015-04-02 02:36:54 +00:00
Kp
ca123b6cde
Remove unused gr_line return value
2015-04-02 02:36:54 +00:00
Kp
c3161d08d5
Remove unused g3_draw_line return value
2015-04-02 02:36:54 +00:00
Kp
95e3ac1e5b
Use integral_constant for UI kind
2015-04-02 02:36:54 +00:00
Kp
f88eaf43ac
Make UI_GADGET_LISTBOX char* const
2015-04-02 02:36:54 +00:00
Kp
9f04c0c3d8
Make OGL_ENABLE safe for single statement blocks
2015-04-02 02:36:54 +00:00
Kp
90fbebf8fd
Convert most global arrays to array<>
2015-04-02 02:36:52 +00:00
Kp
66a70fd373
Prepare for global arrays to be array<>
2015-04-02 02:36:52 +00:00
Kp
6e96ff3e00
Fix ambiguous use of INTEL_SHORT/INTEL_INT
2015-04-02 02:36:52 +00:00
Kp
92b6cd3883
Replace ui_create_dialog specialization with helper
...
Rename ui_create_dialog<void *> specialization with free function
untyped_ui_create_dialog. GCC 4.6 incorrectly considers a
specialization to be a redundant declaration, causing a
-Wredundant-decls failure with the specialization form.
Fixes: be041a9cfc
("Add type checking for ui_create_dialog")
2015-04-02 02:36:52 +00:00
Kp
0b20dea0ad
Remove unused jukebox functions
2015-03-28 17:18:02 +00:00
Kp
c4bcbb0403
Add workaround for gcc 4.6 constructor brace initialization
...
Reported-by: btb <https://github.com/dxx-rebirth/dxx-rebirth/pull/54#issuecomment-86252358 >
2015-03-27 02:50:23 +00:00
Kp
7045b44386
Move operator*(vm_distance,vm_distance) into class scope
...
clang -Wunused-function warns about a 'static constexpr' function
defined in a header if the header is ever included in a file which does
not call the function. Move the function into class scope to silence
the warning and prevent the compiler from considering it when resolving
operator*(T1,T2).
Reported-by: btb <https://github.com/dxx-rebirth/dxx-rebirth/pull/54#issuecomment-86252750 >
2015-03-26 02:42:26 +00:00
Kp
ff83ba95b6
Remove unused ogl_extensions_init return value
2015-03-25 01:59:21 +00:00
derhass
639b569496
Merge branch 'unification/master' into unification/syncgl_v2
...
Conflicts:
similar/arch/ogl/gr.cpp
similar/misc/args.cpp
2015-03-23 20:18:17 +01:00
derhass
6d41224638
move GL synchronization code into its own class
2015-03-22 21:19:06 +01:00
derhass
db267af6f2
add basic OpenGL extension handling
...
Currently only used for fence sync objects.
2015-03-22 20:32:14 +01:00
Kp
d04e7902ee
Make file_get*list static
2015-03-22 18:49:21 +00:00
Kp
2b44a352ca
Remove redundant sc_mode
...
sc_mode is a packed copy of sc_w/sc_h. Switch to an accessor that uses
the copy.
2015-03-22 18:49:21 +00:00
Kp
fca381727c
Add wrappers for screen width/height
2015-03-22 18:49:21 +00:00
Kp
8daa014d53
Remove unused gr_check_mode
2015-03-22 18:49:21 +00:00
Kp
f098471e54
Make sdl_video_flags static
2015-03-22 18:49:21 +00:00
Kp
08c0c3768c
Remove unused gr_set_draw_buffer
2015-03-22 18:49:21 +00:00
Kp
7bf49fe551
Fix clang -Wmissing-braces warnings
2015-03-22 18:49:21 +00:00
Kp
9ddea5f570
Reduce lifetime of Args
2015-03-22 18:49:20 +00:00
derhass
2cd73b6dfe
Import the syncgl patch based on 0.58.1 into unification code base
...
I also changed the command line arguments a bit, gl_syncmethod and
gl_sycnwait are used now. Furthermore, I added the ew mode AUTO. This is
a conservative mode and the default for now: if GL_ARB_sync is available,
use the FENCE_SLEEP mode, otherwise, disable it completely.
Conflicts:
include/args.h
misc/args.c
similar/arch/ogl/gr.cpp
2015-03-22 18:17:11 +01:00
Kp
3a37b41192
Fix startup trap with D1 shareware data
...
D1 shareware models handle textures in a way that requires starting
highest_texture_num at -1.
Reported-by: derhass <https://github.com/dxx-rebirth/dxx-rebirth/issues/46 >
Fixes: 68be3baeca
("Track highest_texture_num locally")
2015-03-20 03:30:20 +00:00
Kp
69af920e09
Fix Win64 startup crash
...
Fixes: 5bafa16e7f
("Fix level load hang on >=mingw32-gcc-4.7")
2015-03-19 02:31:22 +00:00
Kp
76d383261c
Return vm_distance_squared from check_vector_to_sphere_1
2015-03-12 02:21:20 +00:00
Kp
2c09f9fa90
Propagate special types for distance/magnitude
2015-03-12 02:21:19 +00:00
Kp
f7d0c853ba
Use special types for distance/magnitude
2015-03-12 02:21:19 +00:00
Kp
9f6cbbe0e0
Move Vertex_list to local scope
2015-03-11 02:19:15 +00:00
Kp
81eae187e5
Pass selection for EVENT_NEWMENU_CHANGED
2015-02-28 22:34:07 +00:00
Kp
cc508be34c
Pass selection for EVENT_NEWMENU_SELECTED
2015-02-28 22:34:07 +00:00
Kp
14530d43ea
Guard g3d_interp_outline by defined(EDITOR)
2015-02-28 22:34:07 +00:00
Kp
68be3baeca
Track highest_texture_num locally
2015-02-28 22:34:06 +00:00
Kp
77ec36b9c3
Convert g3_draw_morphing_model to class
2015-02-28 22:34:05 +00:00
Kp
c080f65e81
Convert g3_draw_polygon_model to class
2015-02-28 22:34:05 +00:00
Kp
0ec4a876c5
Convert g3_poly_get_color to class
2015-02-28 22:34:05 +00:00
Kp
07869d9dba
Add automatic demo recording
...
Various users want automatic demo recording. Add new command line options:
-auto-record-demo start recording on level entry
-record-demo-format set demo name automatically
For -record-demo-format, specify a template containing any mix of strftime
insertions, variable insertions, and literal text. As a special case, specify
"." to use the builtin template "%Y%m%d.%H%M%S-$p-$m". Most users should use
".". Supported variables:
$p name of pilot recording the demo
$m name of msn/mn2 file played
Suggested by jeffersoncarpenter in https://github.com/dxx-rebirth/dxx-rebirth/pull/33 , but implemented by vLKp.
2015-02-28 19:36:02 +00:00
Kp
ab942b0977
Refactor check_partial_range size lookup
2015-02-28 19:36:00 +00:00
Kp
c3b09da175
Simplify assign_light_to_side
2015-02-27 03:30:33 +00:00
Bradley Bell
df3ce9953f
Merge branch 'unification/master' into command-line
2015-02-22 19:25:04 -08:00
Kp
2fa2e17a82
Make chunk.old_base const
2015-02-22 01:29:43 +00:00
Kp
110a28e137
Use 'class' for partial_range_t declaration
...
clang -Wmismatched-tags complains for:
struct X;
class X { ... };
Reported by btb: 68e2168377 (commitcomment-9814108)
2015-02-20 03:00:46 +00:00
Kp
9b48b43b16
Remove __attribute_warn_unused_result on gr_rle_decode
...
Per btb, callers currently ignore the result, causing warnings on OS X
clang, but not on gcc. Remove __attribute_warn_unused_result for now.
2015-02-19 03:20:53 +00:00
Kp
f900d4a5ee
Remove RAIIdmem::operator pointer
...
Mac OS X defines uint_fast32_t to unsigned int, causing ambiguous
overloads between RAIIdmem::operator[](std::size_t) and
RAIIdmem::operator[](int). Adding a disambiguating overload for OS X
breaks Windows. Remove operator pointer and operator[]. Rely on the
inherited operator[] for indexing. Require users to call ->get() to
convert to a simple pointer.
First btb ambiguity reported: https://github.com/dxx-rebirth/dxx-rebirth/pull/34
Second btb ambiguity reported: https://github.com/dxx-rebirth/dxx-rebirth/pull/43
2015-02-17 03:52:59 +00:00
Kp
0f74a66063
Use uint_fast32_t for gr_box
2015-02-14 22:48:30 +00:00
Kp
68e2168377
Use array<> for bitmap_index arrays
2015-02-14 22:48:30 +00:00
Kp
f17458d353
Explicitly delete valptridx inequality operators
2015-02-14 22:48:30 +00:00
Kp
bbb9a23697
Convert {GET,PUT}_INTEL_{SHORT,INT} to C++ casts
2015-02-14 22:48:29 +00:00
Kp
8a64ea3b0e
Use array<> for Vertex_active
2015-02-14 22:48:28 +00:00
Kp
d1f45f85b2
Wrap submodel angles
2015-02-14 22:48:28 +00:00
Kp
03576a28c2
Pass PHYSFSX_* file extensions as counted array
2015-02-14 22:48:28 +00:00
Kp
2088dcc0f3
Add compile-time check for trailing con_printf newline
2015-02-13 03:27:28 +00:00
Bradley Bell
bbb32d0175
added cmd and cvar modules from d2x
2015-02-10 23:35:44 -08:00
Kp
91cc111295
Provide SndDisableSdlMixer=true if !USE_SDLMIXER
...
Accept -nosdlmixer as a no-op in !USE_SDLMIXER builds.
2015-02-08 17:43:29 +00:00
Kp
673a711461
Remove vm_angles_2_matrix return value
2015-02-05 03:03:51 +00:00
Kp
8d3f047427
Make udt_to_message __attribute__((unused))
...
Clang warns for unused static inline functions defined in a source file,
including those defined in a macro in a header, when the macro is
expanded in the source file.
2015-02-05 03:03:50 +00:00
Kp
2daaacaa26
Move robot_points onto stack
2015-02-05 03:03:50 +00:00
Kp
1c58627aa3
Remove unused cos from fix_fastsincos
2015-02-05 03:03:50 +00:00
Kp
4f11c2516f
Add convenience methods fix_sin, fix_cos
2015-02-05 03:03:50 +00:00
Kp
4c8f3a47b5
Convert frequently used casts to C++ casts
2015-02-05 03:03:49 +00:00
Kp
ae0a00a893
Return timer_query() from timer_update()
...
Most timer_update sites immediately query the timer, so return it to
save them the call.
2015-02-05 03:03:48 +00:00
Kp
a8784bc486
Fold fixmul calls to fixmul64
2015-02-05 03:03:48 +00:00
Kp
d1f5695562
Remove unused return value of vm_vec_scale_add
2015-02-03 00:37:08 +00:00
Kp
2026ab7e3a
Remove unused return value of vm_extract_angles_vector
2015-02-03 00:37:08 +00:00
Kp
656c51fa99
Remove unused return value of vm_vec_rotate
2015-02-03 00:37:08 +00:00
Kp
cda693680a
Remove unused return value of g3_rotate_delta_vec
2015-02-03 00:37:08 +00:00
Kp
505a3dbae7
Remove unused return value of vm_vector_2_matrix
2015-02-03 00:37:07 +00:00
Kp
c6f95c5880
Remove unused return value of vm_vec_normal
2015-02-03 00:37:07 +00:00
Kp
52267b87b9
Remove unused return value of vm_vec_cross
2015-02-03 00:37:07 +00:00
Kp
aa75eb212c
Remove unused return value of vm_vec_perp
2015-02-03 00:37:07 +00:00
Kp
055f9593de
Remove unused return value of vm_vec_scale2
2015-02-03 00:37:07 +00:00
Kp
cca8fd65a1
Remove unused return value of vm_vec_scale_add2
2015-02-03 00:37:07 +00:00
Kp
e0bf0be779
Remove unused return value of vm_vec_add2
2015-02-03 00:37:07 +00:00
Kp
e14440b0e0
Remove unused return value of vm_vec_sub2
2015-02-03 00:37:07 +00:00
Kp
cd7e99981b
Remove unused return value of vm_vec_avg
2015-02-03 00:37:07 +00:00
Kp
98afca20a9
Split and simplify partial_range check
...
Rely on T.size() instead of distance(T.begin(), T.end()) to get the
container size. Add a special case for C-style arrays with known size.
In some cases, gcc-4.9 fails to optimize distance(...) on an array<T, N>
of unknown base address, leading to a bogus compile failure. Switching
the object to have a known address prevents the problem, but requires
changing the calling code. Switch to using T.size(), which gcc seems to
get right.
2015-02-01 23:07:18 +00:00
Kp
1985f7f295
Pass rle_swap_0_255 arg by &
2015-01-29 04:27:37 +00:00
Kp
27aeb6764d
Pass rle_remap arg by &
2015-01-29 04:27:37 +00:00
Kp
912253ab00
Pass gr_bitmap_rle_compress arg by &
2015-01-29 04:27:37 +00:00
Kp
93589368c9
Move PHYSFSX_putc to the one file that uses it
2015-01-29 04:27:36 +00:00
Kp
f4517dc0bd
Reduce inclusion of segment.h
2015-01-29 04:27:36 +00:00
Kp
6b767c3a03
Remove various #include "gr.h"
2015-01-29 04:27:36 +00:00
Kp
a2d32c2e6f
Remove 3d.h #include "gr.h"
2015-01-29 04:27:36 +00:00
Kp
f38aec1212
Remove string copying in GetKeyDescription
2015-01-29 04:27:35 +00:00
Kp
71ec47b32e
Refactor ui_pad_activate
2015-01-29 04:27:35 +00:00
Kp
9a36b82d5d
Disallow implicit pointer conversion from rvalue smart pointers
2015-01-29 00:58:53 +00:00
Kp
e25446a15a
Fix Windows build for RAIIdmem index conversion
2015-01-28 03:42:53 +00:00
Kp
ff4a0ccd70
Fix RAIIdmem array usage
...
Some RAIIdmem instances managed a T[], but were declared to manage a T.
2015-01-28 03:42:53 +00:00
Kp
3952c64ffc
Fix PHYSFSX_check_* for RAIIdmem<T[]>
2015-01-28 03:42:53 +00:00
Kp
d2f0bdc867
Exit cleanly on bad command line arguments
2015-01-28 03:42:53 +00:00
Kp
06142a6c80
Optimize gr_remap_bitmap_good integer handling
2015-01-25 05:32:45 +00:00
Kp
fa73ca8a17
Pass gr_remap_bitmap_good arg by &
2015-01-25 05:32:45 +00:00
Kp
31450e4843
Pass iff_read_bitmap arg by &
2015-01-25 05:32:44 +00:00
Kp
922a7b7dc9
Pass grs_main_bitmap to iff_read_animbrush
2015-01-25 05:32:44 +00:00
Kp
3ca442cb33
Use arg_port_number for -udp_hostport
2015-01-25 05:32:44 +00:00
Kp
6bc48b7876
Add option -no-tracker to suppress tracker for one run
2015-01-24 19:16:35 +00:00
Kp
fd309ee728
Fix size truncation in mem_malloc
2015-01-23 03:55:05 +00:00
Kp
18a64e4281
Use RAII for PHYSFS_enumerateFiles result
2015-01-23 03:55:05 +00:00
Kp
9c58fd23f4
Use RAIIdmem for jukebox_songs list_buf
2015-01-23 03:55:05 +00:00
Kp
d3e657222e
Use RAIIdmem for height_array
2015-01-23 03:55:04 +00:00
Kp
7fccbe2d0d
Use std::unique_ptr for RAIIdmem
2015-01-23 03:55:04 +00:00
Kp
492d6fd996
Remove draw_tmap from OGL build
...
It is only used as a placeholder. Replace it with a number.
Compile out various non-OGL functions when building for OGL.
2015-01-22 03:34:20 +00:00
Kp
bf3bb0b144
Pass uint_fast32_t nverts for texture drawers
2015-01-20 02:46:42 +00:00
Kp
1b43ee6bf8
Fix build when using make_unique emulation
2015-01-18 01:58:34 +00:00
Kp
84e3a03451
Remove unused parameters
2015-01-18 01:58:33 +00:00
Kp
c8022a1001
Abstract socket array/sockaddr dispatch
2015-01-18 01:58:33 +00:00
Kp
37afbb1f7e
Pack ntstrings in transit
2015-01-18 01:58:32 +00:00
Kp
b3050a8aa1
Fix adding string to empty string_array_t
2015-01-17 18:31:42 +00:00
Kp
6cd8acab30
Refactor ntstring forwarding
2015-01-17 18:31:42 +00:00
Kp
f7815810e8
Use RAIIPHYSFS_File to manage PHYSFS_File
...
Fixes a few leaks on error paths.
2015-01-17 18:31:42 +00:00
Kp
9a3796d9d1
Pass window_get_next arg by &
2015-01-17 18:31:41 +00:00
Kp
3bf1fd573c
Pass window_select arg by &
2015-01-17 18:31:41 +00:00
Kp
4984f46ef4
Pass window_set_visible arg by &
2015-01-17 18:31:41 +00:00
Kp
88bc7454f5
Pass window_is_visible arg by &
2015-01-17 18:31:41 +00:00
Kp
b2a8c4502e
Pass window_set_modal arg by &
2015-01-17 18:31:41 +00:00
Kp
e7c632b741
Pass window_is_modal arg by &
2015-01-17 18:31:40 +00:00
Kp
2027af6f85
Pass WINDOW_SEND_EVENT arg by &
2015-01-17 18:31:40 +00:00
Kp
ee50d45e72
Pass window_send_event arg by &
2015-01-17 18:31:40 +00:00
Kp
f2797ddf1e
Pass gr_init_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
fccb6814f8
Pass gr_create_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
c731558a94
Pass gr_init_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
c2b7990550
Pass window_get_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
af16e4a2a3
Tighten grs_bitmap resource rules
2015-01-17 18:31:40 +00:00
Kp
81d763476e
Raise index_range_exception on bad index to valptridx
2015-01-17 04:31:17 +00:00
Kp
266814e975
Inline gr_set_current_canvas with constant inputs
2015-01-12 00:26:03 +00:00
Kp
ddc40a6634
Copy level name without modification
2015-01-12 00:26:03 +00:00
Kp
8c27a7d68e
Require known size for PHYSFSX_fgets
2015-01-12 00:26:03 +00:00
Kp
60576ce3e0
Generate fewer base_partial_range_error_t::prepare instances
2015-01-12 00:26:03 +00:00
Kp
484a2a705d
Use strcasecmp when available
2015-01-12 00:26:03 +00:00
Kp
b6a3735f53
Add convenience d_strnicmp for literal right side
2015-01-12 00:26:03 +00:00
Kp
fc30cdcc9b
Use ntstring for NetworkMessageMacro name
2015-01-12 00:26:02 +00:00
Kp
12770802ab
Use ntstring for guidebot name
2015-01-12 00:26:02 +00:00
Kp
6ccf6ae96b
Use range_for in segment.cpp
2015-01-12 00:26:02 +00:00
Kp
ff493fcfce
Inline vm_vec_make
2015-01-12 00:26:02 +00:00
Kp
f0b47829ef
Add convenience ntstring::operator=(const char (&)[N])
...
OS X-specific configuration code assumes the ability to assign a literal
string to an ntstring. Add an operator= overload to support that.
Reported by kreatordxx: https://github.com/dxx-rebirth/dxx-rebirth/issues/30
2015-01-11 18:19:13 +00:00
Kp
5402e8c546
Add unchecked_partial_range for ranges without end
2015-01-11 05:08:30 +00:00
Kp
205b533c67
Fix d_strnicmp with zero length input
2015-01-11 05:08:30 +00:00
Kp
4be02cd9c5
Add support for poison=overwrite
2015-01-03 23:44:32 +00:00
Kp
dc35b0ad88
Fix Win32 build
2015-01-03 23:44:32 +00:00
Kp
b86870f5ef
Make d_debugbreak cold
2014-12-24 03:34:33 +00:00
Kp
78c3a6b770
Merge btb:pulls/21 into unification/master
2014-12-24 03:31:42 +00:00
Kp
2d8f8b5d4a
Reduce inclusion of wall.h
2014-12-22 04:35:49 +00:00
Kp
a9998476a9
Use ntstring for UI_KEYPAD description
2014-12-22 04:35:48 +00:00
Kp
180999eed1
Fix crash loading player.ngp with bare equal
2014-12-22 04:35:48 +00:00
Kp
45af2bb137
Move d_fname helper methods to base class ntstring
2014-12-22 04:35:47 +00:00
Kp
0e45146202
Return unique_ptr from ui_gadget_add
2014-12-20 04:36:12 +00:00
Kp
3f84b8e165
Move valptridx checks inline
2014-12-20 04:36:10 +00:00
Kp
2766114959
Make PHYSFSX_gets_line_t::line_t be array<>
2014-12-20 04:36:10 +00:00
Kp
c53a8cc30f
Initialize buttontext in UI_KEYPAD constructor
2014-12-20 04:36:10 +00:00
Kp
0bf2a6eb80
Return unique_ptr from ui_add_gadget_button
2014-12-20 04:36:10 +00:00
Kp
c43feee61d
Return unique_ptr from ui_add_gadget_listbox
2014-12-20 04:36:10 +00:00
Kp
1d363bbd5d
Return unique_ptr from ui_add_gadget_scrollbar
2014-12-20 04:36:10 +00:00
Kp
3b4fbd0bd5
Return unique_ptr from ui_add_gadget_radio
2014-12-20 04:36:10 +00:00
Kp
b16e8ecbec
Return unique_ptr from ui_add_gadget_checkbox
2014-12-20 04:36:09 +00:00
Kp
413a316154
Return unique_ptr from ui_add_gadget_inputbox
2014-12-20 04:36:09 +00:00
Kp
89b1ff8795
Return unique_ptr from ui_add_gadget_userbox
2014-12-20 04:36:09 +00:00
Kp
e1bb249176
Remove unused UI_GADGET_KEYTRAP
2014-12-20 04:36:09 +00:00
Kp
8d487b4883
Return unique_ptr from ui_add_gadget_icon
2014-12-20 04:36:09 +00:00
Kp
f1885ee4d4
Pass creation context to new windows
2014-12-20 04:36:09 +00:00
Kp
cf5e5620aa
Deduce input box text length
2014-12-20 04:36:09 +00:00
Kp
f0c8482b8b
Use unique_ptr for trigger_dialog
2014-12-20 04:36:08 +00:00
Kp
cf1d08c1b6
Use unique_ptr for hostage_dialog
2014-12-20 04:36:08 +00:00
Kp
b9ceceda3a
Use array<char,100> for UI_KEYPAD::buttontext
2014-12-20 04:36:08 +00:00
Kp
9f44ccbbf3
Fix WORDS_NEED_ALIGNMENT build of interp.cpp
2014-12-19 02:19:29 +00:00
Kp
137746e442
List initialize credits to zero
2014-12-18 04:12:38 +00:00
Kp
3423d94729
Disallow converting valptridx to void*
2014-12-14 05:23:00 +00:00
Kp
80aa48efb4
Pass digi_*_start_sound soundobj as sound_object*
2014-12-14 05:22:59 +00:00
Kp
2c2b6c67d2
Use array<> for g3ds_tmap::verts
2014-12-13 17:46:55 +00:00
Kp
84e3721ef0
Use partial_range for render list
2014-12-13 16:57:09 +00:00
Kp
6e24954a97
Mark warn_printf static
2014-12-13 04:10:58 +00:00
Kp
7b234da185
Make digi_max_channels const
2014-12-11 02:35:55 +00:00
Kp
307ad30433
Remove unused digi_*_is_sound_playing
2014-12-11 02:34:54 +00:00
Kp
4d17f4e208
Remove unused r/g/b members of g3ds_vertex
2014-12-11 02:34:20 +00:00
Kp
f91a378f6e
Remove write-only per2_flag
2014-12-11 02:34:13 +00:00
Bradley Bell
73690ed525
always_inline d_debugbreak() so that debugger stops in the source instead of dxxerror.h
2014-12-07 19:03:41 -08:00
Kp
33c118f999
Enable Int3 as d_debugbreak
...
Change Int3 from a no-op to a platform-specific trap to debugger.
Requested by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/18
2014-12-07 23:43:51 +00:00
Kp
bb8445f70c
Fix some -Wsign-compare warnings
2014-12-05 04:11:37 +00:00
Bradley Bell
fdf70b017e
<string> required for std::string
2014-12-04 18:11:57 -08:00
Kp
8b3d9b9d31
Bypass NULL check copying valptr_t
2014-12-02 04:36:19 +00:00
Kp
3097a5b247
Pass gr_bitblt_find_transparent_area arg by &
2014-12-02 03:35:01 +00:00
Kp
c990701d87
Pass show_fullscr arg by &
2014-12-02 03:35:01 +00:00
Kp
c89e3b7452
Pass gr_bitmapm arg as &
2014-12-02 03:35:01 +00:00
Kp
355df375a0
Pass gr_bitmap arg as &
2014-12-02 03:35:01 +00:00
Kp
6334327ccc
Remove unused gr_bm_bitblt
2014-12-02 03:35:01 +00:00
Kp
0375876a08
Pass gr_bm_ubitbltm arg by &
2014-12-02 03:35:01 +00:00
Kp
95539512d5
Pass pcx_read_bitmap arg by &
2014-12-02 03:35:01 +00:00
Kp
31d6b151da
Pass gr_bm_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
15f9d5d3f5
Pass ogl_ubitblt arg by &
2014-12-02 03:35:01 +00:00
Kp
e7aae37c8d
Pass ogl_ubitblt_i arg by &
2014-12-02 03:35:01 +00:00
Kp
7031c809fc
Pass gr_ubitmapm arg by &
2014-12-02 03:35:01 +00:00
Kp
5eddc2c197
Make bitmap bm_data const where easy
2014-12-02 03:24:38 +00:00
Kp
690dec3342
Workaround compilers mishandling template-template arguments
...
Visual Studio 2013 Update 4 and Clang 3.4 fail to parse
valptridx_template_t related argument lists because they misinterpret
the unspecialized inner template name as a reference to the current
specialization. This seems to be nonconforming in C++11.
All gcc versions supported by Rebirth parse this sample program
correctly, but neither Visual Studio nor clang accept it.
template <template <typename> class>
struct A
{
};
template <typename>
struct B
{
B(A<B>);
};
In <https://stackoverflow.com/questions/17687459/clang-not-accepting-use-of-template-template-parameter-when-using-crtp >, a user saw a similar failure and received the answer:
Your code is legal.
From the C++11 Standard, section 14.6.1:
Like normal (non-template) classes, class templates have an injected-class-name (Clause 9). The injected-class-name can be used as a template-name or a type-name. When it is used with a template-argument-list, as a template-argument for a template template-parameter, or as the final identifier in the elaborated-type- specifier of a friend class template declaration, it refers to the class template itself.
Looks like your version of clang is still implementing the old rule.
This failure was first seen with Visual Studio 2013, but ignored because
Visual Studio has so many other problems parsing Rebirth. Now that it
has been reported to affect clang as well, a workaround is clearly
needed. A fix was suggested by btb
<2f9543f981
>,
but that fix breaks gcc.
Rewrite the valptridx_template_t parameter passing to avoid mentioning
unspecialized template names as template parameters while defining the
class used as the parameter.
Reported by btb (clang): https://github.com/dxx-rebirth/dxx-rebirth/pull/12
2014-11-30 23:44:52 +00:00
Kp
ea535b0e38
Pass gr_rle_expand_scanline arg as const
2014-11-30 22:09:22 +00:00
Kp
706782b275
Pass gr_rle_getsize arg as const
2014-11-30 22:09:22 +00:00
Kp
9b2ef9cfa4
Pass gr_rle_expand_scanline_generic arg by &
2014-11-30 22:09:22 +00:00
Kp
2697918223
Pass gr_bm_pixel arg by &
2014-11-30 22:09:22 +00:00
Kp
0b1aa34c43
Pass gr_set_super_transparent arg by &
...
Flip name of the boolean to match its function.
2014-11-30 22:09:21 +00:00
Kp
26f4aaa51b
Pass gr_set_transparent arg by &
2014-11-30 22:09:21 +00:00
Kp
e5acd8056d
Pass gr_set_bitmap_flags arg by &
2014-11-30 22:09:21 +00:00
Kp
efa7566821
Pass colormap as array<>
2014-11-30 22:09:21 +00:00
Kp
d0abc13c94
Pass gr_create_sub_bitmap arg by &
2014-11-30 22:09:21 +00:00
Kp
ef539be1ab
Pass gr_init_bitmap_data arg by &
2014-11-30 22:09:21 +00:00
Kp
f6dde1c593
Pass gr_init_bitmap_alloc arg by &
2014-11-30 22:09:21 +00:00
Kp
53ce29e789
Pass gr_init_bitmap arg by &
2014-11-30 22:09:20 +00:00
Kp
594c597621
Pass gr_init_bitmap_data arg by &
2014-11-30 22:09:20 +00:00
Kp
0672cdff1b
Pass gr_set_bitmap_data grs_bitmap by &
2014-11-30 22:09:20 +00:00
Kp
97332b848c
Pass gr_free_bitmap_data arg by &
2014-11-30 22:09:20 +00:00
Kp
0236c237ed
Pass ogl_freebmtexture arg by &
2014-11-30 22:09:20 +00:00
Kp
a86313e746
Pass ogl_init_texture arg by &
2014-11-30 22:09:19 +00:00
Kp
bba9d90347
Use subscript notation in grs_bitmap bm_data
2014-11-30 22:09:19 +00:00
Kp
0790eda153
Use new/delete for grs_screen
2014-11-30 22:09:19 +00:00
Kp
b4acc5b858
Pass gr_ubitmap arg by &
2014-11-30 22:09:19 +00:00
Kp
166f15617d
Pass ogl_ubitmapm_cs arg by &
2014-11-30 22:09:18 +00:00
Kp
4cadc18e52
Pass merge_textures_new arg by &
2014-11-30 22:09:18 +00:00
Kp
968f7ddc97
Pass gr_gpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
ad3a240958
Pass ogl_ugpixel arg by &
2014-11-30 22:09:18 +00:00
Kp
634f97e8d2
Pass tmap drawer grs_bitmap by &
2014-11-30 22:09:18 +00:00
Kp
dd4a0db47f
Pass rle_expand_texture arg as const &
2014-11-30 22:09:17 +00:00
Kp
2c07191681
Pass ntexture_map_lighted_linear arg by const &
2014-11-30 22:09:17 +00:00
Kp
f89b57047a
Pass g3_draw_bitmap grs_bitmap by &
2014-11-30 22:09:17 +00:00
Kp
06b384e349
Pass scale_bitmap arg by &
2014-11-30 22:09:17 +00:00
Kp
e7c0c639aa
Include <memory>, not <utility> for std::addressof
...
Including utility works on Linux, but apparently fails on OS X 10.10.
Switch to <memory>, which also works on Linux, and which btb reports
works on OS X.
Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 2f4b2f031c
2014-11-30 17:04:49 +00:00
Kp
d149b9b9e8
Include <string> in partial_range.h for std::string
...
Reported by btb: https://github.com/dxx-rebirth/dxx-rebirth/pull/12
Fixed by btb: 93a80e56cd
2014-11-30 17:00:03 +00:00
Kp
5f38c85e02
Improve compiler error messages on failed const T* -> T* conversions
2014-11-27 03:25:21 +00:00
Kp
327fe23586
Fix -Wnarrowing in valptridx operator-
2014-11-26 03:00:58 +00:00
Kp
388dfb98a0
Move valptridx helpers out of macro
2014-11-25 04:02:01 +00:00
Kp
d0090225b3
Fix segment_first/object_first mismatch
2014-11-23 21:41:30 +00:00
Kp
d63be88eb0
Propagate use of vsegptridx_t
2014-11-23 04:58:45 +00:00
Kp
4ad784028b
Pass scale_bitmap points in array<grs_point, 3>
2014-11-21 03:34:50 +00:00
Kp
e56fe128e0
Remove DosShell
2014-11-19 04:19:43 +00:00
Kp
57ed5c24fd
Add developer option to test header completeness
2014-11-17 04:02:25 +00:00
Kp
c72ec87296
Redirect g3_end_frame->ogl_end_frame
2014-11-16 19:14:51 +00:00
Kp
cdf0d887f6
Move temporary points onto stack
2014-11-16 19:14:51 +00:00
Kp
855b249555
Make g3s_point const only in OGL
2014-11-16 19:14:51 +00:00
Kp
11769c5fc0
Pass draw_tmap* arg as const
2014-11-16 19:14:50 +00:00
Kp
501f5e8557
Narrow some graphics parameters
2014-11-15 03:31:41 +00:00
Kp
2df4bea9b5
Use range_for in rle
2014-11-15 03:10:09 +00:00
Kp
c2d308807c
Make various g3s_point * const
2014-11-15 03:10:06 +00:00
Kp
3a73f2c9d0
Pass g3_draw_line as const
2014-11-15 03:10:04 +00:00
Kp
8e0d85b666
Pass g3_draw_tmap arg by &
2014-11-13 03:44:04 +00:00
Kp
841e037e15
Pass ogl_loadbmtexture_f arg by &
2014-11-13 03:42:41 +00:00
Kp
9baeb31162
Pass rle_end arg by &
2014-11-13 03:41:38 +00:00