Exemple #1
0
 public TransformComponent()
     : base(ComponentTypeManager.GetType <TransformComponent>())
 {
     Local       = Matrix.Identity;
     World       = Matrix.Identity;
     Translation = Matrix.Identity;
     Rotation    = Matrix.Identity;
     Scaling     = Matrix.Identity;
 }
 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;
 }
 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);
 }
Exemple #4
0
 public TargetComponent() : base(ComponentTypeManager.GetType <TargetComponent>())
 {
     Location = Vector3.Zero;
 }
 public OrientationComponent() : base(ComponentTypeManager.GetType <OrientationComponent>())
 {
     Orientation = Quaternion.Identity;
 }
 public UserInterfaceComponent()
     : base(ComponentTypeManager.GetType <UserInterfaceComponent>())
 {
 }
 public ScreenshotComponent() : base(ComponentTypeManager.GetType <ScreenshotComponent>())
 {
     RenderPostProcessEffects = true;
 }
Exemple #8
0
 public ModelComponent()
     : base(ComponentTypeManager.GetType <ModelComponent>())
 {
 }
 public UpdateComponent() : base(ComponentTypeManager.GetType <UpdateComponent>())
 {
     RequiresUpdate = true;
 }
 public ScalingComponent() : base(ComponentTypeManager.GetType <ScalingComponent>())
 {
     Scale = new Vector3(1, 1, 1);
 }
 public DiffuseMappingComponent()
     : base(ComponentTypeManager.GetType(typeof(ContentComponent)))
 {
     TextureMap = new Dictionary <string, Texture>();
 }
Exemple #12
0
 public BlurComponent() : base(ComponentTypeManager.GetType <BlurComponent>())
 {
     SampleCount = Blur.SampleCount;
 }
 public RotationComponent() : base(ComponentTypeManager.GetType <RotationComponent>())
 {
     w = Vector3.Zero;
 }
 public PostProcessComponent() : base(ComponentTypeManager.GetType <PostProcessComponent>())
 {
     actions        = new List <PostProcessAction>();
     commandManager = new CommandManager();
     Target         = TargetOutput.Backbuffer;
 }
Exemple #15
0
 public PointLightComponent() : base(ComponentTypeManager.GetType <PointLightComponent>())
 {
 }
 public AnimationComponent() : base(ComponentTypeManager.GetType(typeof(AnimationComponent)))
 {
     Controller = new AnimationController();
 }
Exemple #17
0
 public DesignerComponent() : base(ComponentTypeManager.GetType <DesignerComponent>())
 {
 }
Exemple #18
0
 public ParentComponent() : base(ComponentTypeManager.GetType <ParentComponent>())
 {
 }
Exemple #19
0
 public ShaderComponent()
     : base(ComponentTypeManager.GetType <ShaderComponent>())
 {
     Key = "Default";
 }
Exemple #20
0
 public SpriteComponent() : base(ComponentTypeManager.GetType <SpriteComponent>())
 {
     ScaleFactor = 1;
 }
 public PositionComponent()
     : base(ComponentTypeManager.GetType <PositionComponent>())
 {
     Position = Vector3.Zero;
 }