19 lines
No EOL
268 B
Beef
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;
|
|
}
|
|
} |