Kp
48a6adbe87
Pass canvas to draw_vclip_object
2017-03-11 19:56:25 +00:00
Kp
bc11b3bf85
Pass const object to draw_object_tmap_rod
2017-03-11 19:56:25 +00:00
Kp
03043f944e
Guard Headlights by if(D2)
...
Descent 1 has no headlight powerup. Code to read headlights was
incorrectly added in 357e1b0144
, but no code was added to write
headlights, so the Descent 1 lighting code checked for headlights that
never existed. Guard the headlight global variables and the associated
logic with if(D2).
Fixes: 357e1b0144
("Made lighting code work with actual RGB values and added feature to let certain objects emit colored dynamic light as well as let mine flash red when control center destroyed (OpenGL-only at the moment)")
2017-03-11 19:56:25 +00:00
Kp
a5444cfef1
Shorten compute_object_light
2017-03-11 19:56:24 +00:00
Kp
a6c8087815
Remove unused compute_object_light parameter rotated_pnt
2017-03-11 19:56:24 +00:00
Kp
dfbcc02346
Pass const object to compute_object_light
2017-03-11 19:56:24 +00:00
Kp
84faf8aa73
Pass canvas to draw_object_blob
2017-03-11 19:56:24 +00:00
Kp
26e1ce21fe
Pass canvas to draw_stars
2017-03-11 19:56:24 +00:00
Kp
4e1156a996
Use canvas in OGL g3_draw_sphere
2017-03-11 19:56:24 +00:00
Kp
9ccddf5366
Pass canvas to draw_exit_model
2017-03-11 19:56:23 +00:00
Kp
86880af317
Cache canvas in credits_handler
2017-03-11 19:56:23 +00:00
Kp
72ce5d7e66
Pass canvas to draw_all_edges
2017-03-11 19:56:23 +00:00
Kp
719de35484
Pass grs_bitmap to gr_pixel
2017-03-11 19:56:23 +00:00
Kp
9dbec8433d
Pass grs_bitmap to gr_upixel
2017-03-11 19:56:23 +00:00
Kp
9311548eba
Pass grs_bitmap to ogl_upixelc
2017-03-11 19:56:23 +00:00
Kp
5541e764cd
Use cached canvas in font.cpp
2017-03-11 19:56:23 +00:00
Kp
c725a6cb88
Pass canvas to gr_init_font
2017-03-11 19:56:22 +00:00
Kp
0c8220cc07
Pass canvas to game_draw_hud_stuff
2017-03-11 19:56:22 +00:00
Kp
afb52a5a3e
Pass canvas to draw_hud
2017-03-11 19:56:22 +00:00
Kp
014734834c
Switch gr_printf calls to local canvas
2017-03-11 19:56:22 +00:00
Kp
a19286437a
Pass canvas to show_mousefs_indicator
2017-03-11 19:56:22 +00:00
Kp
4b6f42a962
Pass canvas to show_reticle
2017-03-11 19:56:22 +00:00
Kp
cee6c984bd
Pass canvas to hud_show_kill_list
2017-03-11 19:56:21 +00:00
Kp
5e1b27120d
Pass canvas to HUD_render_message_frame
2017-03-11 19:56:21 +00:00
Kp
d67a27df65
Fix SDL check_header_includes=1 build
...
Type `SyncGLMethod` was defined conditional on DXX_USE_OGL, but header
`common/include/ogl_sync.h` used `SyncGLMethod` unconditionally. This
works fine in the normal build since SDL builds never include
`common/include/ogl_sync.h`, but broke the check_header_includes=1 test
since that compiles `common/include/ogl_sync.h` even for SDL builds.
Wrap type `ogl_sync` in `#if DXX_USE_OGL` to hide it from the
check_header_includes=1 test in SDL mode.
2017-03-11 19:56:21 +00:00
Kp
74d4833591
Factor out automap common assignments
2017-03-10 01:22:34 +00:00
Kp
d8dc2ed985
Cache intermediate results in automap_build_edge_list
2017-03-10 01:22:33 +00:00
Kp
858807e2a5
Use range_for in automap
2017-03-10 01:22:33 +00:00
Kp
adefaf0fba
Simplify automap_find_edge result
2017-03-10 01:22:33 +00:00
Kp
b10ec2cb01
Cache canvas in newmenu_create_structure
2017-03-10 01:22:33 +00:00
Kp
e304f43efa
Cache canvas in kmatrix_redraw_coop
2017-03-10 01:22:33 +00:00
Kp
d5b7178fe5
Cache canvas in kmatrix_redraw
2017-03-10 01:22:33 +00:00
Kp
f1d65f6b46
Cache canvas in kconfig_mouse
2017-03-10 01:22:33 +00:00
Kp
10522fd1ff
Cache canvas in kconfig_draw
2017-03-10 01:22:32 +00:00
Kp
40943a6baf
Cache canvas in draw_player_ship
2017-03-10 01:22:32 +00:00
Kp
07fbab437b
Cache canvas in draw_invulnerable_ship
2017-03-10 01:22:32 +00:00
Kp
653c7666c9
Cache canvas in draw_weapon_box
2017-03-10 01:22:32 +00:00
Kp
3a4789c285
Pass canvas to draw_weapon_info
2017-03-10 01:22:32 +00:00
Kp
685187e2d0
Pass canvas to draw_secondary_weapon_info
2017-03-10 01:22:32 +00:00
Kp
4dae87044b
Pass canvas to draw_primary_weapon_info
2017-03-10 01:22:31 +00:00
Kp
6651489643
Pass canvas to draw_weapon_info_sub
2017-03-10 01:22:31 +00:00
Kp
27140a30b9
Pass canvas to draw_numerical_display
...
Remove unnecessary extra call to draw_numerical_display.
2017-03-10 01:22:31 +00:00
Kp
fa81835b96
Pass canvas to show_cockpit_cloak_invul_timer
2017-03-10 01:22:31 +00:00
Kp
e583019958
Pass canvas to draw_shield_bar
2017-03-10 01:22:31 +00:00
Kp
0132750380
Pass canvas to draw_afterburner_bar
2017-03-10 01:22:31 +00:00
Kp
4ecae34ec5
Pass canvas to sb_draw_shield_num
2017-03-10 01:22:30 +00:00
Kp
3a8bb51e45
Pass canvas to sb_draw_afterburner
2017-03-10 01:22:30 +00:00
Kp
94f2776af4
Pass canvas to sb_draw_energy_bar
2017-03-10 01:22:30 +00:00
Kp
98a27e4f09
Cache canvas in draw_static
2017-03-10 01:22:30 +00:00
Kp
4fd064a374
Pass canvas to draw_wbu_overlay
2017-03-10 01:22:30 +00:00