5 #include "InteriorsInstanceRepository.h"
6 #include "VectorMath.h"
23 const v4& defaultHighlightColor =
v4(1.0f, 1.0f, 1.0f, 1.0f));
30 void HighlightEntityIds(
const std::vector<std::string>& ids, std::vector<Rendering::Renderables::InstancedInteriorFloorRenderable*>& out_highlightedRenderables)
const;
32 void HighlightEntityId(
const std::string& interiorId,
const std::string&
id)
const;
33 void HighlightEntityIds(
const std::string& interiorId,
const std::vector<std::string>& ids, std::vector<Rendering::Renderables::InstancedInteriorFloorRenderable*>& out_highlightedRenderables)
const;
34 void ClearHighlights(
const std::vector<Rendering::Renderables::InstancedInteriorFloorRenderable*>& highlightedRenderables)
const;
35 void SetDefaultHighlightColour(
const v4& highlightColor);
39 v4 m_defaultHighlightColor;
41 typedef std::map<Rendering::Renderables::InstancedInteriorFloorRenderable*, int> CountPerRenderable;
42 typedef std::map<Rendering::Renderables::InstancedInteriorFloorRenderable*, std::vector<int> > RenderableOffsetMap;
44 std::vector<InstanceStore> BuildInstanceStoresForIds(
const std::string& interiorId,
const std::vector<std::string>& ids)
const;
45 CountPerRenderable BuildCountPerRenderable(
const std::vector<InstanceStore>& instanceStoresForIds)
const;
46 RenderableOffsetMap GetRenderableMapping(
const CountPerRenderable& numRenderables,
const std::vector<InstanceStore>& instanceStores)
const;