Commit graph

260 commits

Author SHA1 Message Date
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
Steven Fuller
455f56573e More warning cleanups.
Removed a few unused files.
2019-08-20 02:22:36 +02:00
Steven Fuller
422e7c385b Fixed AvP_GameStats_Stored struct finally.
Cleaned up some warnings. (unhandled enum in switch)
2019-08-20 02:22:36 +02:00
Steven Fuller
0770c95c17 Moved TranslatePoint into a separate file.
Implemented most of the main loop in main.c.

Game now seems to run OK.  Need to write texture code and then add OpenGL.
2019-08-20 02:22:36 +02:00
Steven Fuller
12c6a39177 'Undid' stubbing of IndexedFont::IndexedFont and IndexedFont::GetFont().
Initialized ScreenDescriptorBlock to some default values.

Now AvP runs and exits with no errors with current main()
2019-08-20 02:22:36 +02:00
Steven Fuller
d0582ff279 Forgot to add stubs2.cpp (functions only used in C++ parts). 2019-08-20 02:22:36 +02:00
Steven Fuller
a5fdb9f7c8 Now in the Data loading phase.
Converted many '\\' to '/'.   Partially implemented win32 file routines.
Got texture code to work OK for now (still needs to be reimplemented).
Partially implemented the main loop.
2019-08-20 02:22:36 +02:00
Steven Fuller
f2c6ac7362 Forgot to ci yesterday.
Now links.
2019-08-20 02:22:36 +02:00
Steven Fuller
29792b40ef Fixed errors in inline.h.
More compiling.  156 unique undefined references.
2019-08-20 02:22:36 +02:00
Steven Fuller
cfd7274022 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
eb5c2cc01d Tools for testing. 2019-08-20 02:22:36 +02:00
Steven Fuller
f097dd9258 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
a9cf09aa34 More compiling. 2019-08-20 02:22:36 +02:00
Steven Fuller
4db15e7459 More compiling. Things are starting to get hacky (adding stubs, commenting
out unimplemented windows stuff, and so on).
2019-08-20 02:22:36 +02:00
Steven Fuller
5c497c61a6 Implemented (most of) the inline assembly in inline.h 2019-08-20 02:22:36 +02:00
Steven Fuller
44d4752e83 Added extern "C" where needed. 2019-08-20 02:22:36 +02:00
Steven Fuller
3b458d2583 More compiling. All 'easy-to-compile' files now do.
Added the Rebellion license.
2019-08-20 02:22:36 +02:00
Steven Fuller
71fa444424 Removed headers that were accidently checked in.
Lots of compiling.
2019-08-20 02:22:36 +02:00
Steven Fuller
f759e35cd8 More compilation.
Moved windows typedefs to a separate file.

Included public domain md5 routines (from dpkg).
2019-08-20 02:22:36 +02:00