+ Texture.Aspect

+ Transformation.ApplyTextureSize(Texture texture) & Transformation.ApplyTextureSize(Texture texture, float width)
This commit is contained in:
Michel Fedde 2020-12-13 13:34:30 +01:00
parent 1a0148ff90
commit 57fb71d01b
4 changed files with 34 additions and 4 deletions

View file

@ -55,9 +55,8 @@ namespace SM_TEST
scene.ShowAxisHelper = true;
DrawObject2D kasten = new DrawObject2D();
kasten.Transform.Size.Set(500,500);
kasten.ApplyCircle();
kasten.Texture = new Texture(new Bitmap("herosword.png"));
kasten.Transform.ApplyTextureSize(kasten.Texture, 500);
scene.Objects.Add(kasten);
//particles.Trigger();