Пример #1
0
 public TransformComponent()
     : base(ComponentTypeManager.GetType <TransformComponent>())
 {
     Local       = Matrix.Identity;
     World       = Matrix.Identity;
     Translation = Matrix.Identity;
     Rotation    = Matrix.Identity;
     Scaling     = Matrix.Identity;
 }
Пример #2
0
 public CameraComponent() : base(ComponentTypeManager.GetType <CameraComponent>())
 {
     Index       = 0;
     NearClip    = 1.0f;
     FarClip     = 1000.0f;
     FieldOfView = (float)(Math.PI / 4);
     Up          = Vector3.UnitY;
     Type        = CameraType.Perspective;
 }
Пример #3
0
 public MaterialComponent() : base(ComponentTypeManager.GetType <MaterialComponent>())
 {
     AmbientCoefficient  = 1;
     DiffuseCoefficient  = 1;
     SpecularCoefficient = 1f;
     SpecularPower       = 16f;
     Specular            = new Color4(1f, 1f, 1f, 1f);
     Ambient             = new Color4(0.1f, 0.1f, 0.1f, 1f);
     Diffuse             = new Color4(0.25f, 0.75f, 0.25f, 1);
 }
Пример #4
0
 public TargetComponent() : base(ComponentTypeManager.GetType <TargetComponent>())
 {
     Location = Vector3.Zero;
 }
Пример #5
0
 public OrientationComponent() : base(ComponentTypeManager.GetType <OrientationComponent>())
 {
     Orientation = Quaternion.Identity;
 }
Пример #6
0
 public UserInterfaceComponent()
     : base(ComponentTypeManager.GetType <UserInterfaceComponent>())
 {
 }
Пример #7
0
 public ScreenshotComponent() : base(ComponentTypeManager.GetType <ScreenshotComponent>())
 {
     RenderPostProcessEffects = true;
 }
Пример #8
0
 public ModelComponent()
     : base(ComponentTypeManager.GetType <ModelComponent>())
 {
 }
Пример #9
0
 public UpdateComponent() : base(ComponentTypeManager.GetType <UpdateComponent>())
 {
     RequiresUpdate = true;
 }
Пример #10
0
 public ScalingComponent() : base(ComponentTypeManager.GetType <ScalingComponent>())
 {
     Scale = new Vector3(1, 1, 1);
 }
Пример #11
0
 public DiffuseMappingComponent()
     : base(ComponentTypeManager.GetType(typeof(ContentComponent)))
 {
     TextureMap = new Dictionary <string, Texture>();
 }
Пример #12
0
 public BlurComponent() : base(ComponentTypeManager.GetType <BlurComponent>())
 {
     SampleCount = Blur.SampleCount;
 }
Пример #13
0
 public RotationComponent() : base(ComponentTypeManager.GetType <RotationComponent>())
 {
     w = Vector3.Zero;
 }
Пример #14
0
 public PostProcessComponent() : base(ComponentTypeManager.GetType <PostProcessComponent>())
 {
     actions        = new List <PostProcessAction>();
     commandManager = new CommandManager();
     Target         = TargetOutput.Backbuffer;
 }
Пример #15
0
 public PointLightComponent() : base(ComponentTypeManager.GetType <PointLightComponent>())
 {
 }
Пример #16
0
 public AnimationComponent() : base(ComponentTypeManager.GetType(typeof(AnimationComponent)))
 {
     Controller = new AnimationController();
 }
Пример #17
0
 public DesignerComponent() : base(ComponentTypeManager.GetType <DesignerComponent>())
 {
 }
Пример #18
0
 public ParentComponent() : base(ComponentTypeManager.GetType <ParentComponent>())
 {
 }
Пример #19
0
 public ShaderComponent()
     : base(ComponentTypeManager.GetType <ShaderComponent>())
 {
     Key = "Default";
 }
Пример #20
0
 public SpriteComponent() : base(ComponentTypeManager.GetType <SpriteComponent>())
 {
     ScaleFactor = 1;
 }
Пример #21
0
 public PositionComponent()
     : base(ComponentTypeManager.GetType <PositionComponent>())
 {
     Position = Vector3.Zero;
 }