コード例 #1
0
 public SceneGraphRoot(SceneResources sceneResources)
 {
     mRenderContext  = new RenderContext(sceneResources);
     mDynamicRoot    = new SceneNode();
     mStaticTreeRoot = null;
     mSkyboxRoot     = new SceneNode();
     mTraversalData  = new TraversalContext();
 }
コード例 #2
0
ファイル: SceneGraphRoot.cs プロジェクト: Tengato/Mechadrone1
 public SceneGraphRoot(SceneResources sceneResources)
 {
     mRenderContext = new RenderContext(sceneResources);
     mDynamicRoot = new SceneNode();
     mStaticTreeRoot = null;
     mSkyboxRoot = new SceneNode();
     mTraversalData = new TraversalContext();
 }
コード例 #3
0
ファイル: Scene.cs プロジェクト: Tengato/Mechadrone1
 public Scene()
 {
     Resources = new SceneResources();
     mContentLoader = new ContentManager(SharedResources.Game.Services, "Content");
     SceneGraph = new SceneGraphRoot(Resources);
     RenderComponent.RenderComponentInitialized += RenderComponentInitializedHandler;
     SkyboxRenderComponent.EnvironmentMapAdded += EnvironmentMapAddedHandler;
     ShadowCasterComponent.ShadowCasterCreated += ShadowCasterCreatedHandler;
     FogComponent.FogCreated += FogCreatedHandler;
     HDRLightComponent.HDRLightCreated += HDRLightCreatedHandler;
 }
コード例 #4
0
 public Scene()
 {
     Resources      = new SceneResources();
     mContentLoader = new ContentManager(SharedResources.Game.Services, "Content");
     SceneGraph     = new SceneGraphRoot(Resources);
     RenderComponent.RenderComponentInitialized += RenderComponentInitializedHandler;
     SkyboxRenderComponent.EnvironmentMapAdded  += EnvironmentMapAddedHandler;
     ShadowCasterComponent.ShadowCasterCreated  += ShadowCasterCreatedHandler;
     FogComponent.FogCreated           += FogCreatedHandler;
     HDRLightComponent.HDRLightCreated += HDRLightCreatedHandler;
 }
コード例 #5
0
ファイル: RenderContext.cs プロジェクト: Tengato/Mechadrone1
 public RenderContext(SceneResources sceneResources)
 {
     SceneResources = sceneResources;
     VisibilityFrustum = null;
     EyePosition = Vector3.Zero;
 }
コード例 #6
0
 public RenderContext(SceneResources sceneResources)
 {
     SceneResources    = sceneResources;
     VisibilityFrustum = null;
     EyePosition       = Vector3.Zero;
 }