asarium
9da5cc17a3
Add type safe handle for graphics buffers
...
This converts the previous plain-int type for a buffer handle to an
instance of our ID class which provides type safety.
2020-10-25 12:16:05 +01:00
Baezon
414ad4a553
v1
2020-09-25 20:40:58 -04:00
Goober5000
c9df8a13f1
add functions to remove the clutter of static casts for ship and weapon info vectors
2020-03-14 13:02:12 -04:00
CasparKielwein
77fc335580
remove unused functions in ship/shield and afterburner
2018-12-29 16:41:23 +01:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
TRBlount
f4ccab0f9f
Correct shield decal logic
2017-03-10 12:10:45 -07:00
Fabian Woltermann
b3a8824d68
Adds more trace scopes to get a better look at the internals of render_frame
2017-02-02 15:07:43 +01:00
asarium
6922d3ca2c
Integrate the existing monitor system into the new tracing system
...
This writes the monitor updates as counter events into the event trace
file.
2016-12-21 16:10:01 +01:00
z64555
f4b455dd98
Replace apply_damage_to_shield() with shield_apply_damage().
...
Also remove a declaration of shield_get_max_quad() in object.h
2016-11-25 15:12:09 -06:00
z64555
b0d9c53688
Remove duplicate function get_max_shield_quad()
2016-11-25 15:07:37 -06:00
niffiwan
bf21913708
Updates to max shield recharge fix
...
Use a helper function in appropriate places, add comments where not
Avoid a potential div/0 & add Assertion to shield_get_max_strength
2016-10-16 16:31:11 +10:00
SamuelCho
bb78e74646
Improved shields. Added shield decal rendering technique. Fixed inaccurate shield normals and shield collision detection timing. Bumped up shield impacts count to 200.
2016-08-28 15:36:10 -07:00
SamuelCho
6442307c27
Merge branch 'master' into opengl_core_materials
2016-08-25 20:04:14 -07:00
asarium
20beb2eec1
64-bit warning fixes...
2016-08-23 23:17:41 +02:00
SamuelCho
a481999a24
OpenGL Core support. Introduction of material based draw system. Rewrote geometry batcher.
2016-08-17 00:13:19 -07:00
Fabian Woltermann
770fce8de5
Bitset flags -- take 2 ( #775 )
...
This introduces a new mechanism for handling bit flags. Instead of using an int (or two, or three) to write bits into, this uses the std::bitset in a wrapper class that accepts an enum class as input. This means that certain classes of errors we've had a few of in the engine, where a coder used the wrong set of flags or checked them against the wrong variable (SF_STEALTH vs SIF_STEALTH, for example) can now be detected at a compiler level rather than not at all.
2016-08-12 16:13:50 -07:00
asarium
1bcd5400d3
Move build system to CMake
2016-07-22 12:07:19 +02:00
MageKing17
70529dbd5a
Deprecate -nohtl and -brief_lighting.
...
-nohtl hasn't worked for years, and -brief_lighting was always supposed to be a temporary flag before making the behavior always on.
2016-07-08 09:39:29 -07:00
SamuelCho
dd73d8fb63
New lighting model based off of Blinn-Phong and Fresnel-Shlick. Introduced -reflect maps. New gloss parameters for specular power. High dynamic range rendering. Improved bloom pass.
2016-07-05 23:15:08 -07:00
niffiwan
375a251334
Complete apng feature
...
Handle total_time directly requested from bm_load_animation
Make generic_anims request total_time directly
Move png-vs-apng check to apng class
Remove redundancy in apng exception messages
Update comments
2016-05-10 19:42:21 +10:00
niffiwan
87770aad8f
Add total_time output param to bm_load_animation
...
Also convert int to bool, and replace NULL with nullptr
2016-05-10 19:42:20 +10:00
niffiwan
0b20b15c2c
Fix issues found by Axem
...
Fix silly issue preventing getFrame() from working
Remove infinite loop when calculating frame num
Convert more animations to use new frame calc function
2016-05-10 19:42:20 +10:00
niffiwan
50c791c998
Add support for non-streaming apngs
...
i.e. apngs (pre)loaded into bmpman slots
handles apng variable frame delays
Includes new lua function (getFrames) to find the current frame for
apngs. Also uses new function to correctly display apngs for mission
loading animations, ship thrusters & engine glows.
2016-05-10 19:42:20 +10:00
niffiwan
ee64b83aec
Allow shield hit animations to play to the end
...
Previously they'd always stop at 75% complete, and it's probably just
luck that it worked correctly for ✌️
2015-12-28 14:55:54 +10:00
MageKing17
64c9b272e7
Merge branch 'master' of ssh://github.com/scp-fs2open/fs2open.github.com into ship_info
...
Conflicts:
code/pilotfile/pilotfile.cpp
2015-08-19 11:53:25 -07:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
MageKing17
bc0c7cf4c5
Vectorization of Ship_info.
...
Converts Ship_info from a ship_info[] to an SCP_vector<ship_info>. ship_info now has proper constructors, assignment operators, and a destructor. Num_ship_classes removed; various references to Num_ship_classes and/or MAX_SHIP_CLASSES (which remains for various other structures which need it) changed to Ship_info.size() instead.
This doesn't make the ship class limit dynamic, but it is a preparatory step to get there.
2015-04-27 00:01:22 -07:00
Echelon9
4033465143
Fix Coverity reports of Uninitialized scalar variable with the vertex struct. Should vertex ever be converted to a class from a struct, these memsets as well as the pre-existing ones will need to be removed in favour of a proper constructor of the then vertex class.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10732 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-02 18:29:59 +10:00
zookeeper
8cd19aa588
Merged model point shields from zookeeper branch.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10135 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +10:00
Echelon9
e21ad72877
Utilise the CLAMP() utility macro in a further range of appropriate locations
2012-05-02 15:15:48 +00:00
Echelon9
21c2449f0b
Documentation: Changes such that the Doxygen log reports clean, in anticipation of 3.6.14 release
2011-11-28 13:03:38 +00:00
Zacam
a63dbe572c
Part Two: Synchronization pass of Trunk and Antipodes Differences.
...
Removes all extraneous ifdefs (Demo, E3, Multi Beta, etc).
Leaves Debug and Inferno.
2011-09-09 10:23:53 +00:00
IssMneur
0717ad3d13
PVS-Studio fix: V512 A call of the 'memcpy' function will lead to overflow of the buffer '& x'. (pstypes.h:131)
2011-09-08 05:39:53 +00:00
Echelon9
f678baabde
Documentation: Major code clean up of shield.cpp
2011-09-06 14:39:53 +00:00
Sushi
ed340e193f
Merged from Diaspora branch: Make "+Shield_Hit_ani" optional
2011-06-04 16:02:21 +00:00
The_E
e36d312d73
Adding a bit of verification here to catch a very strange bug
2011-02-04 17:12:48 +00:00
The_E
c0fc384c8a
Change Assert() to Assertion() for better feedback to modders
2010-08-31 12:43:04 +00:00
portej05
0383415a3b
Antipodes 3 from Flaming_Sword
2009-09-26 05:52:17 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
taylor
c2f5d325aa
little bit of cleanup
2008-03-20 18:37:16 +00:00
WMCoolmon
7e7d77c8d7
*Drumroll* The official scripting system commit to the stable branch!
2008-03-15 08:56:43 +00:00
Goober5000
3c3416fa3b
the great big duplicate model removal commit
2007-02-20 04:20:38 +00:00
Goober5000
321130465c
remove obsolete and unused shield flag
2007-02-06 01:27:34 +00:00
taylor
806027e4e8
various small compiler warning and strict compiling fixes
2006-09-11 01:00:28 +00:00
taylor
8a9d540c4c
make Species_info[] and Asteroid_info[] dynamic
2006-08-27 18:12:42 +00:00
taylor
eda1a26a94
comment out some pointless checks which look for not using either D3D or OGL
...
don't run through ships on level load setting up the sound environment if sound is disabled
minor cleanup
2006-05-27 16:49:05 +00:00
Goober5000
7e41877b7b
proper capitalization according to Volition
2006-04-20 06:32:30 +00:00
taylor
a4bc040ddd
various small cleanups, fixes, error checks
2006-03-05 21:45:12 +00:00
Goober5000
b52b6b1e00
spelling
2006-02-25 21:47:19 +00:00
wmcoolmon
246cfcfa65
Codebase commit, most notably including objecttypes.tbl
2005-12-29 08:08:42 +00:00