You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
393 B
14 lines
393 B
2 years ago
|
using gaemstone.ECS;
|
||
|
using Silk.NET.Maths;
|
||
|
|
||
|
namespace gaemstone;
|
||
|
|
||
|
[Component]
|
||
|
public struct GlobalTransform
|
||
|
{
|
||
|
public Matrix4X4<float> Value;
|
||
|
public GlobalTransform(Matrix4X4<float> value) => Value = value;
|
||
|
public static implicit operator GlobalTransform(in Matrix4X4<float> value) => new(value);
|
||
|
public static implicit operator Matrix4X4<float>(in GlobalTransform index) => index.Value;
|
||
|
}
|