feat: simplify and return raw pointer

This commit is contained in:
2025-11-04 18:02:55 +01:00
parent 3cca0b5c87
commit 4bc74d0d2c
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ private:
unsigned int m_instance_count { 0 };
// TODO: use static draw when possible
std::unique_ptr<OpenGL::InstanceBuffer> m_instanceBuffer = nullptr;
OpenGL::InstanceBuffer* m_instanceBuffer = nullptr;
private:
friend class Renderer;
void prepare(glm::mat4 *instances, unsigned int count);

View File

@ -8,7 +8,7 @@ namespace Core {
class Texture {
public:
Texture() : m_id(0) {}
static std::unique_ptr<Texture> LoadFile(const std::string& filename);
static Texture* LoadFile(const std::string& filename);
public:
[[nodiscard]] unsigned int GetID() const { return m_id; }
private: