+ Texture.Aspect
+ Transformation.ApplyTextureSize(Texture texture) & Transformation.ApplyTextureSize(Texture texture, float width)
This commit is contained in:
parent
1a0148ff90
commit
57fb71d01b
4 changed files with 34 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue