feat: simplify and return raw pointer
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user