1
0
Fork 0
Theater-ECS-Example/src/Sprite.bf
2024-11-17 16:57:27 +01:00

19 lines
No EOL
268 B
Beef

namespace Theater_ECS_Example;
using System;
using RaylibBeef;
struct Sprite
{
private static Texture2D? _texture = null;
public Texture2D sprite;
public this()
{
if(_texture == null)
_texture = Raylib.LoadTexture("img.png");
sprite = (.)_texture;
}
}