1
0
forked from 0ad/0ad
0ad/source/renderer
Yves 1a66f510d0 Use const T& for parameters of some types in script-exposed native functions
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.

This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
..
scripting Use const T& for parameters of some types in script-exposed native functions 2016-01-23 15:17:56 +00:00
AlphaMapCalculator.cpp Simplify the overly-complex CppDoc-breaking file headers 2009-04-18 17:51:05 +00:00
AlphaMapCalculator.h Simplify the overly-complex CppDoc-breaking file headers 2009-04-18 17:51:05 +00:00
BlendShapes.h fix relics of GPL comment insertion (removing empty description comments and in some cases adding new file descriptions) 2009-05-03 11:47:38 +00:00
DecalRData.cpp Fixes GLSL terrain decal flicker by initializing normal vectors, fixes #2064 2015-02-17 08:13:24 +00:00
DecalRData.h Fixes GLSL terrain decal flicker by initializing normal vectors, fixes #2064 2015-02-17 08:13:24 +00:00
HWLightingModelRenderer.cpp Optimise VBO updates. 2015-01-28 00:48:00 +00:00
HWLightingModelRenderer.h Update renderer design to be more flexible and data-driven based on material and shader definitions. 2012-04-03 18:44:46 +00:00
InstancingModelRenderer.cpp Add a list of statically-constructed CStrIntern strings 2013-09-29 13:19:52 +00:00
InstancingModelRenderer.h ao/parallax/normal/specular/emissive mapping; windy trees; time manager; render queries; conditional defines 2012-08-06 19:10:47 +00:00
MikktspaceWrap.cpp GPU-skinned tangent-space effects for non-instanced units, plus a bit of cleanup. 2012-10-29 13:20:21 +00:00
MikktspaceWrap.h Disable "assignment operator could not be generated" warning globally on Windows, since it's never useful. 2015-01-22 21:09:33 +00:00
ModelRenderer.cpp Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ModelRenderer.h Switch to std::shared_ptr and std::weak_ptr. 2015-01-25 03:10:58 +00:00
ModelVertexRenderer.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
OverlayRenderer.cpp Allow sprites to have color multiplication, which allows player-colored bars. Patch by Vladislav. Fixes #3233 2015-06-04 12:16:52 +00:00
OverlayRenderer.h Add BoundingSphere, SOverlaySphere. 2014-06-01 18:05:46 +00:00
ParticleRenderer.cpp Optimise VBO updates. 2015-01-28 00:48:00 +00:00
ParticleRenderer.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
PatchRData.cpp Math is hard 2015-11-12 17:32:33 +00:00
PatchRData.h Pad vertex data to power-of-two sizes. 2015-01-25 15:38:51 +00:00
PostprocManager.cpp Range-based for for VfsPath loops. 2015-07-29 23:44:12 +00:00
PostprocManager.h Some const refs and one const function. 2015-07-27 01:08:25 +00:00
Renderer.cpp Tie tangent generation with preferGLSL setting for convenience since that setting was not really useful. Fixes #2506 . Patch by fabio. 2015-11-29 15:44:22 +00:00
Renderer.h Tie tangent generation with preferGLSL setting for convenience since that setting was not really useful. Fixes #2506 . Patch by fabio. 2015-11-29 15:44:22 +00:00
RenderModifiers.cpp Fixes inconsistencies in spelling of colour/color by preferring "color" (only wxWidgets remains with some API that requires "colour"), fixes #1029. 2015-03-15 23:59:48 +00:00
RenderModifiers.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
Scene.cpp # Initial version of new particle system. 2011-04-03 19:15:15 +00:00
Scene.h Add BoundingSphere, SOverlaySphere. 2014-06-01 18:05:46 +00:00
ShadowMap.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
ShadowMap.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
SilhouetteRenderer.cpp Fixes inconsistencies in spelling of colour/color by preferring "color" (only wxWidgets remains with some API that requires "colour"), fixes #1029. 2015-03-15 23:59:48 +00:00
SilhouetteRenderer.h Rename ps/Overlay(.h|.cpp) to ps/Shapes(.h|.cpp), fixes a TODO located in graphics/Overlay.h. 2015-03-15 18:06:32 +00:00
SkyManager.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
SkyManager.h Fixes build warning and cleans up a few things 2012-11-26 02:28:35 +00:00
TerrainOverlay.cpp Replace some functor structs with lambdas, closures or range-based fors. 2015-08-19 03:33:04 +00:00
TerrainOverlay.h New long-range pathfinder. 2015-06-12 18:58:24 +00:00
TerrainRenderer.cpp New long-range pathfinder. 2015-06-12 18:58:24 +00:00
TerrainRenderer.h Fix culling for shadows and reflections. 2014-06-25 01:11:10 +00:00
TexturedLineRData.cpp Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
TexturedLineRData.h Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount. 2014-07-02 22:36:45 +00:00
TimeManager.cpp added licensing headers to some of the new files 2012-08-06 21:34:41 +00:00
TimeManager.h Rename ps/Overlay(.h|.cpp) to ps/Shapes(.h|.cpp), fixes a TODO located in graphics/Overlay.h. 2015-03-15 18:06:32 +00:00
VertexArray.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
VertexArray.h Optimise VBO updates. 2015-01-28 00:48:00 +00:00
VertexBuffer.cpp Use explicit types instead of auto. 2016-01-13 00:42:55 +00:00
VertexBuffer.h Optimise VBO updates. 2015-01-28 00:48:00 +00:00
VertexBufferManager.cpp Convert debug_printf to take UTF-8 strings instead of wchar_t. 2015-02-14 01:45:13 +00:00
VertexBufferManager.h Optimise VBO updates. 2015-01-28 00:48:00 +00:00
WaterManager.cpp Optimization of isBoxVisible + cleanup, fixes #3712 2015-12-28 16:27:31 +00:00
WaterManager.h Rename ps/Overlay(.h|.cpp) to ps/Shapes(.h|.cpp), fixes a TODO located in graphics/Overlay.h. 2015-03-15 18:06:32 +00:00