44 Commits

Author SHA1 Message Date
Lioncash
26f847494e CDynamicVertexBuffer: Make use of std::array where applicable
Same behavior, but eliminates hardcoded sizes.
2020-06-18 04:42:57 -04:00
Lioncash
f44a5fc8d2 CShader: Mark several functions as const
These don't modify internal member state.
2020-06-16 18:33:01 -04:00
Lioncash
a67df9865e CShader: Make use of unique_ptr where applicable
Prevents unsafe allocations by default.
2020-06-16 18:27:13 -04:00
Lioncash
4d34589816 CDrawUtil: Make use of std::array
While we're at it, we can make several arrays constexpr.
2020-06-16 18:04:10 -04:00
Lioncash
43596280c5 CVertexBuffer: Make use of size_t in Reserve() 2020-06-16 17:42:24 -04:00
Lioncash
a17d43a87d CVertexBuffer: Make use of size_t where applicable
Same behavior, less truncations.
2020-06-16 16:48:25 -04:00
Lioncash
d081dd87cf CVertexBuffer: Make use of std::array
Same behavior, but without hardcoded array sizes.
2020-06-16 16:13:47 -04:00
Lioncash
332be356de CIndexBuffer: Make use of size_t where applicable
Provides a nicer interface for operating with standard types, etc.
2020-06-14 18:29:39 -04:00
Lioncash
f5e9254c9a CIndexBuffer: Make use of in-class initializers where applicable 2020-06-12 16:43:54 -04:00
Lioncash
721c4d8121 CIndexBuffer: Make constructor explicit
Prevents implicit constructions.
2020-06-12 16:41:47 -04:00
Lioncash
92811a9309 CShader: Simplify initialization 2020-06-11 17:34:52 -04:00
Lioncash
b8078e7419 CShaderGenerator: Fix compiler warning
MSVC desires the namespace version
2020-06-11 15:55:06 -04:00
Lioncash
012da6fb6d General: Remove unnecessary inline specifiers and add overrides 2020-06-11 15:49:42 -04:00
LC
d7b6ab81ea
Merge pull request #27 from lioncash/gen
CShaderGenerator: Make file-scope arrays non-allocating
2020-06-11 10:52:19 -04:00
Lioncash
c929293789 CIndexBuffer: Mark member functions as const where applicable
These member functions don't alter internal state, so we can mark them
as const.
2020-06-10 19:33:50 -04:00
Lioncash
ef0030872a CShaderGenerator: default constructor and destructor 2020-06-10 00:55:12 -04:00
Lioncash
e75c077bda CShaderGenerator: Make file-scope arrays non-allocating
We can make these plain views to eliminate any potential static runtime
constructors.
2020-06-10 00:55:08 -04:00
Jack Andersen
55c4a5818e Use non-1.0 alpha component for default lighting 2019-11-07 14:54:35 -10:00
Jack Andersen
6e3b23ec50 Accurate MP3 material processing 2019-11-06 16:52:45 -10:00
Jack Andersen
acd925ffaa Mac OpenGL fixes 2019-05-27 11:25:00 -10:00
Jack Andersen
fc7cffbf37 Silence MSVC warning and remove pointless glew utilities 2019-05-26 15:49:50 -10:00
Jack Andersen
9f94db6c82 Linux build fixes 2019-05-25 20:24:13 -10:00
Jack Andersen
b6191dc330 Initial round of CMake refactoring 2019-05-23 13:04:29 -10:00
Aruki
c4829f5fda Cleanup & refactoring 2018-12-16 14:00:40 -07:00
Aruki
2287b05bc3 Refactor so PWE compiles with the newly externalized LibCommon 2018-12-11 22:50:46 -07:00
Aruki
84d689e104 Changed EGame to an enum class. Created NGameList and NPropertyMap to change how templates are managed/saved/loaded. Added support for property map keeping track of ID/type pairs. 2018-10-07 17:53:19 -06:00
Aruki
e950634db2 Switch over to using TString to represent filesystem paths instead of TWideString. Fixed FileUtil not handling UTF-8 paths with Unicode characters correctly. 2017-05-04 15:43:25 -06:00
Aruki
bdf0d188c3 Integrated FileIO as part of Common instead of a separate subproject 2017-05-04 12:18:52 -06:00
Aruki
6d77604667 Added shader sharing mechanism; added "cook all dirty packages" button; other various tweaks and fixes 2017-02-09 10:54:38 -07:00
Aruki
fbdf9023d1 Upgraded to VS2015 64-bit compiler 2017-02-04 09:36:37 -07:00
parax0
595e4b931e Moved animation-related classes to their own subfolder 2016-10-26 18:12:08 -06:00
parax0
1de2691f33 Enabled MSAA 2016-08-30 19:05:28 -06:00
parax0
3009f06d11 Implemented filesystem handling functions in Common 2016-05-18 20:59:01 -06:00
parax0
420f483b56 Cache shader uniform locations instead of looking them up every frame (1-2 fps boost yay?) 2016-04-29 15:59:26 -06:00
parax0
5b63556527 Switched to 8-bit bone indices, removed material skinning flag 2016-04-27 21:33:45 -06:00
parax0
50dcc9cc1a Pre-transform bones with inverse bind instead of sending it to the shader 2016-04-27 20:36:50 -06:00
parax0
98059cedaa Added support for model skinning 2016-04-27 04:27:57 -06:00
parax0
82ad4fb5c8 Mass code cleanup 2016-03-27 13:09:38 -06:00
parax0
0faa4c3630 Replaced uses of std::cout with Log::Write and Log::Error 2016-03-21 15:29:56 -06:00
parax0
b768473b44 Added lightmap multiplier to allow applying basic lighting on world geometry 2016-01-10 06:17:12 -07:00
parax0
5375f34c19 Implemented TFlags for easy, type-safe bitflags 2016-01-05 11:50:10 -07:00
parax0
2db8d23516 Splitting Math into a separate subproject and adding FileIO as a PWE subproject 2015-12-16 14:39:51 -07:00
parax0
824d23efc1 Mass refactoring part 2/2: fixing include paths and project files 2015-12-14 19:07:22 -07:00
parax0
8805baaee1 Mass refactoring part 1/2: establishing multiple subprojects, moving source files to their new location, adding resources/templates to version control 2015-12-14 18:33:16 -07:00