コード例 #1
0
 void PoiRingView::EnqueueRenderables(const Eegeo::Rendering::RenderContext& renderContext, Eegeo::Rendering::RenderQueue& renderQueue)
 {
     if (m_shouldRenderRing)
     {
         renderQueue.EnqueueRenderable(m_poiRingRenderable);
         renderQueue.EnqueueRenderable(m_iconRenderable);
     }
 }
コード例 #2
0
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);
			}
		}
	}
}
コード例 #3
0
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);
		}
	}
}
コード例 #4
0
 void PinOverModelExample::MyRenderableFilter::EnqueueRenderables(Eegeo::Rendering::RenderContext& renderContext,
                                                                  Eegeo::Rendering::RenderQueue& renderQueue)
 {
     renderQueue.EnqueueRenderable(m_renderable);
 }
コード例 #5
0
 void PostProcessVignetteRenderer::EnqueueRenderables(const Eegeo::Rendering::RenderContext& renderContext,
                                                      Eegeo::Rendering::RenderQueue& renderQueue)
 {
     renderQueue.EnqueueRenderable(m_renderable);
 }