Object graph for a default implementation of Pin control and rendering. More...
#include <PinsModule.h>
Public Member Functions | |
PinsModule (const Eegeo::Rendering::TTextureId iconsTexturePageId, const Eegeo::Rendering::ITexturePageLayout &texturePageLayout, Eegeo::Pins::IPinViewFactory *pPinViewFactory, Rendering::GlBufferPool &glBufferPool, Rendering::Shaders::ShaderIdGenerator &shaderIdGenerator, Rendering::Materials::MaterialIdGenerator &materialIdGenerator, Rendering::VertexLayouts::VertexBindingPool &vertexBindingPool, Rendering::VertexLayouts::VertexLayoutPool &vertexLayoutPool, Rendering::RenderableFilters &renderableFilters, Resources::Terrain::Heights::TerrainHeightProvider &terrainHeightProvider, const Rendering::LayerIds::Values layerId, const Rendering::EnvironmentFlatteningService &environmentFlatteningService, const Rendering::ScreenProperties &screenProperties, const bool useLegacyScaling) | |
Create an object graph for rendering a set of Pins as sprites (for a simpler creation path, see the Create(..) method) | |
~PinsModule () | |
void | Update (float dt, const Camera::RenderCamera &renderCamera) |
void | UpdateScreenProperties (const Rendering::ScreenProperties &screenProperties) |
PinRepository & | GetRepository () const |
PinController & | GetController () const |
Static Public Member Functions | |
static PinsModule * | Create (Eegeo::Modules::Core::RenderingModule &renderingModule, Eegeo::Modules::IPlatformAbstractionModule &platformAbstractonModule, Eegeo::Modules::Map::MapModule &mapModule, const Eegeo::Rendering::TTextureId pinIconsTextureId, const Eegeo::Rendering::ITexturePageLayout &texturePageLayout, const Eegeo::Rendering::LayerIds::Values layerId, const float spriteWidth, const float spriteHeight, const Rendering::ScreenProperties &screenProperties, const bool useLegacyScaling) |
Factory method that creates an object graph for rendering a set of Pins as sprites. | |
static PinsModule * | CreateWithAtlas (Eegeo::Modules::Core::RenderingModule &renderingModule, Eegeo::Modules::IPlatformAbstractionModule &platformAbstractonModule, Eegeo::Modules::Map::MapModule &mapModule, const Eegeo::Rendering::TTextureId pinIconsTextureId, const Eegeo::Rendering::AtlasTexturePageLayout &texturePageLayout, const Eegeo::Rendering::LayerIds::Values layerId, const Rendering::ScreenProperties &screenProperties) |
Factory method that creates an object graph for rendering a set of Pins as sprites using a texture atlas layout. | |
Additional Inherited Members | |
Protected Member Functions inherited from Eegeo::NonCopyable | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
Object graph for a default implementation of Pin control and rendering.
This module creates an object graph to display Pins as sprites using icons from a given texture page. It is provided in source code form as a guide for applications with a requirement to display Pins in an alternate way.
|
inline |
Destroy the PinsModule.
|
inline |
Retrieve the PinController from the module.
|
inline |
Retrieve the PinRepository from the module.
|
inline |
Update the state of the PinsModule with respect to elapsed time.
dt | The time elapsed, in seconds, since this method was last called. |
renderCamera | The currentActiveRenderCamera |
|
inline |
Update the screen properties so pins can be rendered correctly. Should be called when screen properties change (i.e. changing orientation)
screenProperties | the updated ScreenProperties object |