feat: simplify and return raw pointer
This commit is contained in:
@@ -29,7 +29,7 @@ private:
|
|||||||
unsigned int m_instance_count { 0 };
|
unsigned int m_instance_count { 0 };
|
||||||
|
|
||||||
// TODO: use static draw when possible
|
// TODO: use static draw when possible
|
||||||
std::unique_ptr<OpenGL::InstanceBuffer> m_instanceBuffer = nullptr;
|
OpenGL::InstanceBuffer* m_instanceBuffer = nullptr;
|
||||||
private:
|
private:
|
||||||
friend class Renderer;
|
friend class Renderer;
|
||||||
void prepare(glm::mat4 *instances, unsigned int count);
|
void prepare(glm::mat4 *instances, unsigned int count);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace Core {
|
|||||||
class Texture {
|
class Texture {
|
||||||
public:
|
public:
|
||||||
Texture() : m_id(0) {}
|
Texture() : m_id(0) {}
|
||||||
static std::unique_ptr<Texture> LoadFile(const std::string& filename);
|
static Texture* LoadFile(const std::string& filename);
|
||||||
public:
|
public:
|
||||||
[[nodiscard]] unsigned int GetID() const { return m_id; }
|
[[nodiscard]] unsigned int GetID() const { return m_id; }
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user