void PoiRingView::EnqueueRenderables(const Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue) { if (m_shouldRenderRing) { renderQueue.EnqueueRenderable(m_poiRingRenderable); renderQueue.EnqueueRenderable(m_iconRenderable); } }
void DynamicText3DExample::EnqueueRenderables(const Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue) { Eegeo::Camera::RenderCamera renderCamera(GetGlobeCameraController().GetRenderCamera()); const dv3& ecefCameraPosition = renderCamera.GetEcefLocation(); v3 camSurfaceNormal = ecefCameraPosition.Norm().ToSingle(); float environmentScale = m_environmentFlatteningService.GetCurrentScale(); for(std::vector<PlaceNameView*>::const_iterator it = m_views.begin(); it != m_views.end(); ++it) { PlaceNameView& view = **it; view.UpdateTransformsAndVisibility(renderCamera, camSurfaceNormal, 4.0, environmentScale); if(view.IsInFrustum() && !view.IsCompletelyTransparent()) { typedef std::vector<PlaceNameRenderable*> TRenderables; const TRenderables& renderables = view.GetRenderables(); for(TRenderables::const_iterator it = renderables.begin(); it != renderables.end(); ++it) { const Rendering::RenderableBase* pRenderable = *it;; renderQueue.EnqueueRenderable(pRenderable); } } } }
void ModifiedRenderingExample::EnqueueRenderables(Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue) { for(TSceneElementToRenderablePtrMap::const_iterator it = m_alternativeRenderables.begin(); it != m_alternativeRenderables.end(); ++it) { if(it->first->IsInSceneGraph() && IsToBeReplacedWithAlternative(it->first)) { MyRenderable* pRenderable = it->second; pRenderable->Update(renderContext); renderQueue.EnqueueRenderable(pRenderable); } } }
void PinOverModelExample::MyRenderableFilter::EnqueueRenderables(Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue) { renderQueue.EnqueueRenderable(m_renderable); }
void PostProcessVignetteRenderer::EnqueueRenderables(const Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue) { renderQueue.EnqueueRenderable(m_renderable); }