0ad/source/graphics
elexis a84e2e57df Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid.
Make that function static, so that it can be used for these functions
without slowly having to obtain the ScriptInterface instance using
GetScriptInterfaceAndCBData just to get the JSContext again.
Remove few redundant conversions for CreateObject arguments.

Differential Revision: https://code.wildfiregames.com/D2128
Tested on: gcc 9.1.0, clang 8.0.1, Jenkins
Tedious performance testing in: D2128, D2127

This was SVN commit r22894.
2019-09-13 00:56:51 +00:00
..
scripting Remove some unused Profiler.h and CLogger.h includes. 2019-09-07 13:35:45 +00:00
tests Refactors Camera aspect ratio and calculation of plane points. 2019-07-24 23:08:02 +00:00
Camera.cpp Cleanup Camera and CGameView, removes a not needed method and refactors classes. 2019-08-22 20:49:58 +00:00
Camera.h Cleanup Camera and CGameView, removes a not needed method and refactors classes. 2019-08-22 20:49:58 +00:00
CinemaManager.cpp Remove unused GUIUtil functions, unused GUI includes and some tails in GUIUtil. 2019-08-25 08:57:36 +00:00
CinemaManager.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
ColladaManager.cpp Fix few typos found with the Debian lintian tool. 2017-10-28 22:34:57 +00:00
ColladaManager.h
Color.cpp Stop copying color every draw call for every GUI object using colors. 2019-08-19 12:53:58 +00:00
Color.h Stop copying color every draw call for every GUI object using colors. 2019-08-19 12:53:58 +00:00
Decal.cpp
Decal.h
Entity.h
Font.cpp
Font.h
FontManager.cpp Fix ugly font rendering using GL linear interpolation if the UI scale was changed. 2017-12-30 17:56:07 +00:00
FontManager.h
FontMetrics.cpp
FontMetrics.h
Frustum.cpp
Frustum.h
GameView.cpp Cleanup Camera and CGameView, removes a not needed method and refactors classes. 2019-08-22 20:49:58 +00:00
GameView.h Cleanup Camera and CGameView, removes a not needed method and refactors classes. 2019-08-22 20:49:58 +00:00
HeightMipmap.cpp
HeightMipmap.h
HFTracer.cpp
HFTracer.h
LightEnv.cpp Removes unused and obsolete LightingModel. 2019-06-26 22:30:23 +00:00
LightEnv.h Removes unused and obsolete LightingModel. 2019-06-26 22:30:23 +00:00
LOSTexture.cpp Refactor renderer options. 2019-08-04 08:28:30 +00:00
LOSTexture.h Fix some gcc 8 and gcc 9 compiler warnings that were thrown 4500 times. 2019-07-09 00:18:48 +00:00
MapGenerator.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
MapGenerator.h pthread -> std::thread (3/7) - Replace pthread in other engine files 2019-08-12 08:16:28 +00:00
MapIO.cpp Use all three color channels when loading heightmaps following 204b04f2d4, refs #5018. 2019-09-12 19:30:43 +00:00
MapIO.h Fix 204b04f2d4 compatibility with zipped mods, refs #5018. 2018-05-01 21:15:55 +00:00
MapReader.cpp Use ScriptInterface::CreateObject for ToJSVal<CColor>, and for ToJSVal<Grid<u8> >, ToJSVal<Grid<u16> > used by the AIManager obtaining the pathfinder grid. 2019-09-13 00:56:51 +00:00
MapReader.h Always delete CMapReader. Patch by Sandarac. Fixes #4154. 2017-08-25 00:37:48 +00:00
MapWriter.cpp Fix warnings in vs2015 when building tests. 2019-01-12 16:23:47 +00:00
MapWriter.h
Material.cpp
Material.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
MaterialManager.cpp Refactor renderer options. 2019-08-04 08:28:30 +00:00
MaterialManager.h
MeshManager.cpp
MeshManager.h
MiniPatch.cpp
MiniPatch.h
Model.cpp Refactor renderer options. 2019-08-04 08:28:30 +00:00
Model.h
ModelAbstract.cpp
ModelAbstract.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
ModelDef.cpp
ModelDef.h
ObjectBase.cpp Replace includes uniform_foo with uniform_foo_distribution as it's deprecated in newer versions of boost. It was added in the 1.47 version. 2019-04-22 21:45:23 +00:00
ObjectBase.h
ObjectEntry.cpp
ObjectEntry.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
ObjectManager.cpp
ObjectManager.h
Overlay.cpp Move selection ring OverlayTexture code from CCmpSelectable::UpdateTexturedLineOverlay to the SOverlayTexturedLine struct in graphics/Overlay.cpp and SimRender in simulation2/helpers/Render.cpp. 2017-12-10 00:19:51 +00:00
Overlay.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
ParticleEmitter.cpp
ParticleEmitter.h
ParticleEmitterType.cpp Replace includes uniform_foo with uniform_foo_distribution as it's deprecated in newer versions of boost. It was added in the 1.47 version. 2019-04-22 21:45:23 +00:00
ParticleEmitterType.h
ParticleManager.cpp
ParticleManager.h
Patch.cpp
Patch.h
RenderableObject.h
SColor.h
ShaderDefines.cpp
ShaderDefines.h Fix build without PCH for some targets. 2018-12-28 14:58:35 +00:00
ShaderManager.cpp Fix warnings in vs2015 when building tests. 2019-01-12 16:23:47 +00:00
ShaderManager.h
ShaderProgram.cpp Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
ShaderProgram.h Bump year number of files changed this year in the license headers. 2017-05-01 14:28:22 +00:00
ShaderProgramFFP.cpp
ShaderProgramPtr.h
ShaderTechnique.cpp
ShaderTechnique.h
SkeletonAnim.h
SkeletonAnimDef.cpp
SkeletonAnimDef.h
SkeletonAnimManager.cpp
SkeletonAnimManager.h
Terrain.cpp
Terrain.h
TerrainProperties.cpp Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
TerrainProperties.h
TerrainTextureEntry.cpp Fix compiler warnings on VS 2015, refs #3439, refs #5069. 2018-03-10 09:58:53 +00:00
TerrainTextureEntry.h
TerrainTextureManager.cpp
TerrainTextureManager.h
TerritoryBoundary.cpp
TerritoryBoundary.h Optimise HierarchicalPathfinder::Update by speeding up the chunk dirtiness check. 2017-12-10 08:59:43 +00:00
TerritoryTexture.cpp Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
TerritoryTexture.h Optimise HierarchicalPathfinder::Update by speeding up the chunk dirtiness check. 2017-12-10 08:59:43 +00:00
TextRenderer.cpp Fix compiler warnings on VS 2015, refs #3439, refs #5069. 2018-03-10 09:58:53 +00:00
TextRenderer.h Split CColor from Shapes. 2019-01-13 15:38:41 +00:00
Texture.h
TextureConverter.cpp pthread -> std::thread (5/7) - Replace sdl semaphore with condition variable 2019-08-24 11:26:58 +00:00
TextureConverter.h pthread -> std::thread (5/7) - Replace sdl semaphore with condition variable 2019-08-24 11:26:58 +00:00
TextureManager.cpp pthread -> std::thread (5/7) - Replace sdl semaphore with condition variable 2019-08-24 11:26:58 +00:00
TextureManager.h Fix biome-specific mappreviews in 7f602037ba for zipped mods, refs #4962. 2018-08-05 21:50:00 +00:00
Unit.cpp
Unit.h
UnitAnimation.cpp Update the animation immediately after a varaint is changed, so we don't have sliding issues when we do so. 2018-02-23 20:11:16 +00:00
UnitAnimation.h Update the animation immediately after a varaint is changed, so we don't have sliding issues when we do so. 2018-02-23 20:11:16 +00:00
UnitManager.cpp
UnitManager.h