Transitioned from VectorX to floatX

And some trying to update Rigidbody when transform changes
This commit is contained in:
Simon Lübeß
2023-06-25 02:47:33 +02:00
parent 5f5da2ed35
commit 9e1f648aa0
49 changed files with 1281 additions and 871 deletions
+3 -3
View File
@@ -25,11 +25,11 @@ namespace GlitchyEditor
set => _texture.Get().SamplerState = value;
}
public this(String texturePath, Vector2 iconSize)
public this(String texturePath, float2 iconSize)
{
_texture = Content.LoadAsset(texturePath, null, true);
Vector2 pen = .();
float2 pen = .();
DirectionalLight = GetNextGridTexture(ref pen, iconSize);
Camera = GetNextGridTexture(ref pen, iconSize);
@@ -41,7 +41,7 @@ namespace GlitchyEditor
Pause = GetNextGridTexture(ref pen, iconSize);
}
private SubTexture2D GetNextGridTexture(ref Vector2 pen, Vector2 iconSize)
private SubTexture2D GetNextGridTexture(ref float2 pen, float2 iconSize)
{
SubTexture2D subTexture = .CreateFromGrid(_texture, pen, iconSize);