Commit graph

228 commits

Author SHA1 Message Date
Steven Fuller
95977a17d4 Month old OpenAL changes (Pitch changing, currently disabled). 2019-08-20 02:22:36 +02:00
Steven Fuller
35d91a5da3 Added AvP-Style attenuation code. 2019-08-20 02:22:36 +02:00
Steven Fuller
ab5897ec78 Removed more unused code. 2019-08-20 02:22:36 +02:00
Steven Fuller
cf29827c40 Removed a few unused files. 2019-08-20 02:22:36 +02:00
Steven Fuller
39a1a56772 Fixed water drawing.
Added a better hack to the Text loader (for Alien demo).

Fixed water texture paths for Alien Demo.
2019-08-20 02:22:36 +02:00
Steven Fuller
acbc8ea8b8 Removed more unused stuff.
Finally finished ingame OpenGL code (I hope).

Fixed another mistake in mathline.c.
2019-08-20 02:22:36 +02:00
Steven Fuller
90d3747b13 Added the rest of the hacks. 2019-08-20 02:22:36 +02:00
Steven Fuller
abd1c68579 Removed some unused code.
Added some of the level drawing hacks (water, rain).
2019-08-20 02:22:36 +02:00
Steven Fuller
fe15141c2f Removed the nasm include argument. 2019-08-20 02:22:36 +02:00
Steven Fuller
e49862a2d2 Fixed compilation with GCC 3.0.
Fixed invalid cast (ushort * -> uint *) in openal.c.
2019-08-20 02:22:36 +02:00
Steven Fuller
d6cb06cd9e Removed more unused code.
Implemented console input.
2019-08-20 02:22:36 +02:00
Steven Fuller
96a5583f3b Fixed texture filtering modes. 2019-08-20 02:22:36 +02:00
Steven Fuller
c12ec5ff7e Removed/disabled some unused code.
Readded second pass specular drawing.

Fixed particle drawing (lights had mysteriously stopped showing up for a
while).
2019-08-20 02:22:36 +02:00
Steven Fuller
c7f0dd737a Small changes in order to get the demos to work. Alien demo runs. Marine
and Predator demos used a different HUD font.

Changes that need to be made for demo versions:
1. avp/langenum.h needs to be rebuilt for each demo (easy)
2. Marine and Predator demos need to use a different HUD font
3. There may be other minor differences with enums, etc.
2019-08-20 02:22:36 +02:00
Steven Fuller
241e98c3d8 Basic 3D sound fixed. 2019-08-20 02:22:36 +02:00
Steven Fuller
dee2992e7f Fixed crash on the Subway DM level. (something wrong with CMP_LL) 2019-08-20 02:22:36 +02:00
Steven Fuller
f4a6541010 README updates.
Spaced out the font widths a little more (using a program to generate the
table).
2019-08-20 02:22:36 +02:00
Steven Fuller
681b48343d Added a README.
Added the HUD font drawing code.  now stubs2.cpp is no longer needed.
2019-08-20 02:22:36 +02:00
Steven Fuller
3ea03344ec Removing junk. 2019-08-20 02:22:36 +02:00
Steven Fuller
14d3cc45bc Fixed sound length and looping. (Setting looping on a source must be done
after setting the buffer)
2019-08-20 02:22:36 +02:00
Steven Fuller
48c6088c27 Fixed common sound loading. Still debugging OpenAL code. 2019-08-20 02:22:36 +02:00
Steven Fuller
c7d772650f More OpenAL changes (Chuck Mason). 2019-08-20 02:22:36 +02:00
Steven Fuller
0200ee9777 Checking in basic OpenAL support (Chuck Mason).
Don't default to fullscreen for now.
2019-08-20 02:22:36 +02:00
Steven Fuller
7460e9acd0 Implemented sky drawing and a few other routines (cloaked polygon,
rectangle, etc).

Worked around a V5 DRI issue(?) by breaking up some drawing into triangles.
2019-08-20 02:22:36 +02:00
Steven Fuller
4e94ccc65f Added the on fire, damaged, and fade down overlays.
Used polygon offset to help with decal zfighting.
2019-08-20 02:22:36 +02:00
Steven Fuller
8f5bcd6c79 Adjusted the mouse grab code: When in windowed mode and mouse not grabbed,
ignore mouse events and show the cursor.
2019-08-20 02:22:36 +02:00
Steven Fuller
1e2e9e4280 Added code to handle mouse buttons 4/5 (mousewheel). 2019-08-20 02:22:36 +02:00
Steven Fuller
9bc5ea655b Added ctrl+g mouse grab toggle and alt+enter fullscreen toggle.
Mouse now works during game.

Escape currently exits game (since there is no menu).
2019-08-20 02:22:36 +02:00
Steven Fuller
f169c0479c Moved psndplat stubs to a separate file. 2019-08-20 02:22:36 +02:00
Steven Fuller
a5c6d1b5eb Added code for Alien's special vision mode.
Marine HUD numbers are now drawn.

Disabled the "Press Any Key" in the progress bar code for now.
2019-08-20 02:22:36 +02:00
Steven Fuller
3ec3df2e66 Added noise overlay (for marine image enhancer). 2019-08-20 02:22:36 +02:00
Steven Fuller
b6076c656e Implemented HUD (Textures) and Decal drawing. 2019-08-20 02:22:36 +02:00
Steven Fuller
24847bd284 Turned texture repeating back on. (some levels seem to need it to look
'properly').

Implemented some special vision mode drawing (for Predator).
2019-08-20 02:22:36 +02:00
Steven Fuller
de3fda828d Fixed particle colors for real this time.
Worked around a crash (DIV_FIXED by zero) that happens when the Alien level
FERARCO starts.
2019-08-20 02:22:36 +02:00
Steven Fuller
ae2906ca83 Fixed particle blending. 2019-08-20 02:22:36 +02:00
Steven Fuller
56982d4e9b Fixed perspective texture drawing.
Implemented a few simple opengl state optimizations.
2019-08-20 02:22:36 +02:00
Steven Fuller
ba13de4472 Added texture drawing for particles (drawing not yet correct due to black
borders around the images).
2019-08-20 02:22:36 +02:00
Steven Fuller
9dadcb8024 Threw in texture loading/drawing.
Blending modes (color/texture) are problematic and texture coordinates
aren't yet perfect.
2019-08-20 02:22:36 +02:00
Steven Fuller
efc384b7b3 Fixed error with particle colors. 2019-08-20 02:22:36 +02:00
Steven Fuller
da46de9018 Added Particle drawing. 2019-08-20 02:22:36 +02:00
Steven Fuller
62bc91ebba Added the windows gamma code.
Fixed lighting problem with weapons.
2019-08-20 02:22:36 +02:00
Steven Fuller
d19a2069c6 Implemented keyboard input.
Copied some functions from pldnet and d3d_render (now the player image shows
in the mirror).
2019-08-20 02:22:36 +02:00
Steven Fuller
9d32d89705 Improved Z precision at 16bpp. 2019-08-20 02:22:36 +02:00
Steven Fuller
ea2f8c4527 Fixed FPU assembly. (fistp is 16bit, fistpl is 32bit)
Game displays now.
2019-08-20 02:22:36 +02:00
Steven Fuller
45cf2eb3a1 Added simple key event processing. 2019-08-20 02:22:36 +02:00
Steven Fuller
a113617c02 Fixed major bug in TranslatePoint (was accidently loading a value to edx
instead of edi).

Failed to get anything comprehendible on screen.
2019-08-20 02:22:36 +02:00
Steven Fuller
9e5b7f430d Moved inline assembly to a separate file for debugging.
Implemented GetTickCount/timeGetTime.

Added basic SDL/OpenGL support.

Draws something with no optimizations, but draws nothing with -O2. (What is
drawn looks like garbage.)
2019-08-20 02:22:36 +02:00
Steven Fuller
665f33b0f9 More small warning cleanups 2019-08-20 02:22:36 +02:00
Steven Fuller
fc5b084897 Removed some unused bits. 2019-08-20 02:22:36 +02:00
Steven Fuller
78cdb29e7a Removed several unused files. 2019-08-20 02:22:36 +02:00