Commit graph

41 commits

Author SHA1 Message Date
Steven Fuller
c3cc5eb878 Made sin/cos tables const.
Made the sin/cos/arcsin/arccos tables const and removed the redundant
externs that were scattered about.
2019-08-20 02:22:37 +02:00
Steven Fuller
d97c4252d6 OpenGL library is now loaded dynamically. 2019-08-20 02:22:37 +02:00
Steven Fuller
638b22362e changed incorrect (int)char casts to (unsigned char)char casts. 2019-08-20 02:22:37 +02:00
Steven Fuller
8e87ff0f3e Commented out secondary color stuff due to nvidia header lameness 2019-08-20 02:22:37 +02:00
Steven Fuller
95b8b49b76 More Warning cleanups (Tim Beckmann) 2019-08-20 02:22:37 +02:00
Steven Fuller
5e99463577 GL_EXT_secondary_color now spelled correctly (Tim Beckmann)
Progress Bar drawing hopefully fixed.
2019-08-20 02:22:37 +02:00
Steven Fuller
bdb3cff6fd Implemented the Progress Bar during Loading. 2019-08-20 02:22:37 +02:00
Steven Fuller
9f006f18fe Many warnings cleaned up (Tim Beckmann)
Menus.
2019-08-20 02:22:36 +02:00
Steven Fuller
442b6b52ea Disable the menus for the Alien demo. 2019-08-20 02:22:36 +02:00
Steven Fuller
0b37ed3309 Most of the menu code now builds. 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
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
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
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
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
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