zicodxx
|
42b34abd7d
|
in g3s_codes renamed or,and to uor,uand - patch by Kp
|
2012-11-02 18:09:03 +01:00 |
|
zicodxx
|
2f34c3d7fd
|
Moved ui_draw_frame(), ui_draw_shad(), draw_tmap_flat(), math tables externs to headers - patches by Kp
|
2012-11-02 18:02:41 +01:00 |
|
zicodxx
|
bf2031071f
|
Removed 'new' from prototypes; Declared ogl_do_palfx(), ogl_close_pixel_buffers(), ogl_init_pixel_buffers() in gr.h - patches by Kp
|
2012-11-02 17:51:21 +01:00 |
|
zicodxx
|
c5dbc6593c
|
Fixed inconsistency in hostage_rescue() definition and revoked recent patch for u_mem.h due to infinite loops in mem.c caused by this
|
2012-10-31 16:26:45 +01:00 |
|
zicodxx
|
690a99c15d
|
Compile out memory checker if not enabled - patch by Kp
|
2012-09-02 19:17:17 +02:00 |
|
Chris Taylor
|
b9e16185a3
|
Fix warnings (add d_splitpath prototype, no checking ubyte 'id' is < 0, fix say_totals prototype, include d_strdup prototype for radio.c and make sure that 'text' gets freed)
|
2012-07-24 17:29:43 +08:00 |
|
zicodxx
|
33bf139002
|
Redefined lotsa variables, functions and parameters as const and/or static - patch by Kp
|
2012-07-23 01:17:52 +02:00 |
|
zicodxx
|
1d68e2d3ba
|
Optimization for quaternion structure: Stuffed orientation in shorts and removed figure out segnum by position - saving 10 bytes for each positional update in Multiplayer; Also removed render_type from pdata to save yet another byte
|
2012-05-26 17:53:05 +02:00 |
|
zicodxx
|
d4dfd1fb40
|
Introduced quaternion functions to replace vector matrix where size matters - created by Florian Feucht; Added option for pdata packets based on quaternion in Multiplayer game; Removed PF_LEVELLING from new player objects to prevent jittering in player banking
|
2012-05-21 17:06:47 +02:00 |
|
zicodxx
|
d58e6fc38f
|
using our own functions for strdup and _splitpath with the d_ prefix for all platforms for consistency
|
2012-05-19 02:16:40 +02:00 |
|
zicodxx
|
2c9ee20981
|
using our own functions for stricmp, strnicmp, strlwr, strupr, strrev with a d_ prefix for all platforms for consistency
|
2012-05-19 01:36:41 +02:00 |
|
zicodxx
|
8967ae77fe
|
Renamed FixedStepCalc() to cald_d_tick() and FixedStep became d_tick_step; Also ther eonly is a 50ms-timer used to d_tick_step as it was the only one used so far; Replaced FrameCount with d_tick_count which only increments by 50ms-timer used in calc_d_tick() - that now scales timed actions for certain functions properly and makes AI work FPS-independent without any hacks in that regard
|
2012-05-14 19:06:27 +02:00 |
|
zicodxx
|
e3a21dce5e
|
Fixed some non-critical compiler warnings; Now compiling with -std=c99 -pedantic and fixed warnings (except for editor build) caused by this
|
2012-05-14 12:20:27 +02:00 |
|
Chris Taylor
|
7b9f0f8d17
|
Rename MessageBox to ui_messagebox to avoid a conflict with Windows' MessageBox
|
2012-04-17 16:02:32 +08:00 |
|
Chris Taylor
|
e1eaf7cc65
|
Clicking on mine elements in the editor now works in ogl
|
2012-04-15 13:43:41 +08:00 |
|
Chris Taylor
|
1e77cbdf30
|
Fix crash when loading a level in the editor
|
2012-04-14 13:28:30 +08:00 |
|
Chris Taylor
|
7ef1431885
|
Editor exits cleanly when clicking the close box, no more redundant gr_uscanline call in gl_urect for ogl (an initial attempt to fix the previous bug)
|
2012-04-09 20:40:55 +08:00 |
|
Chris Taylor
|
8a437a759c
|
Get the clock, 'keypad' info, texture choosing page and object choosing page to draw (latter two just show black squares for ogl)
|
2012-04-09 10:12:58 +08:00 |
|
zicodxx
|
4f8a60983e
|
Introduced fixmul64 returning fix64 type to use with check_point_to_face() and prevent fix overflow with very large faces; on the way cleaned up NO_FIX_INLINE remnants and replaced QLONG with fix64
|
2012-04-05 02:41:56 +02:00 |
|
Chris Taylor
|
2d8c86eaf1
|
Make all drawing in the editor single buffered, since the whole screen is double buffered. Fixes crash - but only shows a black screen and the menu for ogl
|
2012-03-31 12:27:10 +08:00 |
|
Chris Taylor
|
1237649a99
|
Make 2d/font.c more similar between d1x-rebirth and d2x-rebirth
|
2012-03-30 20:35:39 +08:00 |
|
Chris Taylor
|
8b757570d5
|
Update the canvas data pointers for all windows after changing the screen mode, so the main menu draws properly after leaving the editor
|
2012-03-24 14:43:08 +08:00 |
|
Chris Taylor
|
15a6a81176
|
The editor now falls back to the main event loop in inferno.c, File->Exit now works as intended and get closer to making the editor and game work together
|
2012-03-19 13:48:35 +08:00 |
|
Chris Taylor
|
b94d8f127e
|
Remove redundant ui_event_process and duplicate mouse.c in ui/. All editor input is now event-based.
|
2012-03-18 18:04:16 +08:00 |
|
Chris Taylor
|
6983a906a3
|
Make editor_handler into a proper callback, iron some problems out. Seems to draw a different bunch of stuff now (still erroneous)
|
2012-03-18 16:01:53 +08:00 |
|
Chris Taylor
|
f98753fa38
|
Do a bit of a tidy up for the editor, dump code from editor() within the loop into new editor_handler()
|
2012-03-18 12:11:55 +08:00 |
|
Chris Taylor
|
cdfd06bbd6
|
Use the gadget-sent events in the dialogs in ui
|
2012-03-05 19:07:57 +08:00 |
|
Chris Taylor
|
6068bf961d
|
All gadgets now send events
|
2012-03-03 20:12:25 +08:00 |
|
Chris Taylor
|
e05a2d3483
|
Actually add editor data files and make sure DXX can find them
|
2012-03-03 16:02:16 +08:00 |
|
zicodxx
|
af6caef756
|
Unbuffered writing of gamelog.txt has it's own argument and is not triggered by -verbose argument anymore; Also increases verbosity of packet-loss-prevented packets by showing their types when added to queue
|
2012-01-09 15:19:12 +01:00 |
|
Chris Taylor
|
1c6ecbece0
|
Make editor menubar and associated menus into windows; either remove or make event-based all the B1_* macros
|
2011-12-31 17:10:40 +08:00 |
|
Chris Taylor
|
ff3f419c31
|
Remove redundant canvas, next and prev members in the UI_DIALOG struct
|
2011-12-18 20:33:51 +08:00 |
|
Chris Taylor
|
d8a1aaff32
|
Make ui_listbox_do fully event-responsive
|
2011-11-06 11:05:45 +08:00 |
|
Chris Taylor
|
89b36e8be0
|
Make B1_JUST_PRESSED event-based, leave ui_dialog_do_gadgets early if a key makes another gadget current, make ui_button_do fully event-responsive (but won't *send* events yet)
|
2011-11-05 17:07:25 +08:00 |
|
Chris Taylor
|
91e0f976f7
|
Pass the event to the individual gadgets' 'do' functions, fix compile warnings introduced in last commit
|
2011-10-25 09:38:12 +08:00 |
|
Chris Taylor
|
5d6c06c723
|
Pass the event to ui_dialog_do_gadgets and use it in that immediate function
|
2011-10-23 17:07:18 +08:00 |
|
Chris Taylor
|
3121fb4990
|
Add support for 'modeless' windows - windows that will allow events to be passed on to the underlying window. Intended for the editor
|
2011-10-09 18:31:44 +08:00 |
|
zicodxx
|
7638390173
|
Removed support for IPX protocol and MS-DOS-Multiplayer-compability due to age and lack of real need and to really improve on the Multiplayer without adding too much complexity for backwards-compability
|
2011-09-14 01:15:20 +02:00 |
|
zicodxx
|
4fcfe5618c
|
changed variables and pointer carrying vertex indexes from short to int to handle levels with over 900 segments properly
|
2011-06-30 12:23:38 +02:00 |
|
zicodxx
|
dcc964817e
|
Got rid of cfile code: Renamed cfile-functions to use PHYSFSX-naming convention, Replaced cfile-macros with proper PHYSFS(X) calls; Introduced PHYSFSX_exists() which can check case-sensitive or case-insensitive to give more flexibility with game content
|
2011-06-01 09:59:51 +02:00 |
|
zicodxx
|
6bb12ba926
|
Execute set_dynamic_light 60 times per second max since more would just be a waste of CPU time; When executing set_dynamic_light, process ALL lights; Instead of storing light color in objects, do it on-thy-fly but store bitmap-based color in grs_bitmap - vastly speeds up colored dynamic lights; Improved saturation for vertex lighting to make light color a bit more subtile
|
2011-04-12 03:02:49 +02:00 |
|
zicodxx
|
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)
|
2011-04-07 22:32:47 +02:00 |
|
zicodxx
|
85f7be583f
|
Client-side implementation for Tracker support by Matt 1360 Vandermeulen including improvements in udp_dns_filladdr and IPv4/IPv6 compability; Very little adjustments by me, too including IPv6 support for Windows (untested); Actual tracker code will follow later as seperate branch when it's done
|
2011-04-05 02:24:30 +02:00 |
|
zicodxx
|
fe2dd897f7
|
Added cv_fade_level to canvas structure to replace Gr_scanline_darkening_level; Added cv_blend_func to canvas structure to set blending; Introduced gr_settransblend to set cv_fade_level and cv_blend_func; Added function to set normal blending, additive alpha blending and additive color blending; Moved Special transparency effects from g3_draw_bitmap to render_object to set individual transparency and/or blending for each object outside of OpenGL-specific code; Added special blending for fuelcenter and force field effects as well; Removed unused LASER_HACK code; Renamed OglAlphaEffects variable of PalyerCfg to AlphaEffects as I plan to implement this kind of effects for Software renderer, too
|
2011-02-23 17:46:36 +01:00 |
|
zicodxx
|
79e84f8d17
|
Draw laser effects with special blending instead of disabled DepthMask; Added special blending for transparency effects as well to let them kick more ass; Corrections while rendering outside part of endlevel sequence with disabled depth testing and dynamically changing Render_depth to make the mine exit visible again while not rendering the exit tunnel tru the planet terrain
|
2011-02-18 00:17:49 +01:00 |
|
zicodxx
|
c1e4e9c3d7
|
Moved all these unsorted global cheat variables to a handy structure; Simplified reading of the cheats without trying to make it complicated so no one finds them (everyone can get the source); Removed one or two cheats which carry more garbage than they are worth; Added replacement for the bittersweet cheat; Made FPS Counter an option of Graphics menu
|
2011-02-14 22:27:02 +01:00 |
|
zicodxx
|
6bc439a343
|
Simplified ogl version of gr.c in terms of SDL video flags and fullscreen toggle; Added command-line/INI option to remove borders from windowed program
|
2011-02-10 15:30:05 +01:00 |
|
zicodxx
|
6bcb2ef0cf
|
Added swapping for 64Bit sized integers in case we want to store/read them some day (i.e. new Savegame version storing object instead of object_rw)
|
2011-01-22 18:14:14 +01:00 |
|
zicodxx
|
45d8b82ab6
|
Additional commit for last revision - didn't selected all files properly
|
2011-01-19 21:51:59 +01:00 |
|
zicodxx
|
c124b0883f
|
Retired most of the Assembler code except the generic i386 scanline renderer; Removed all leftovers of Direct3D implementation; On the way make a some code more similar between D1X-Rebirth and D2X-Rebirth
|
2011-01-19 21:35:14 +01:00 |
|