IsoEngine/src/components/sprite_component.h

11 lines
234 B
C
Raw Normal View History

2024-09-09 02:50:07 -06:00
#pragma once
struct SpriteComponent {
public:
void* texture; // void* to abstract Texture2D
void Render(float x, float y) const;
};
// Usage:
// SpriteComponent sprite;
// sprite.texture = static_cast<void*>(&your_texture);