2#include "Renderer/Texture.h"
19 virtual void Bind(uint32_t slot)
const override;
21 virtual void SetData(
void* data, uint32_t size)
override;
28 virtual std::string
GetName()
const override;
#define MU_CORE_ASSERT(x,...)
Definition Asserts.h:32
#define MU_PROFILE_SCOPE(name)
Definition Instrumentor.h:239
#define MU_PROFILE_FUNCTION()
Definition Instrumentor.h:240
Definition OpenGLTexture.h:9
virtual uint32_t GetWidth() const override
Returns the width of the texture.
Definition OpenGLTexture.h:15
GLenum m_InternalFormat
Definition OpenGLTexture.h:34
virtual bool operator==(const Texture2D &other) const override
Definition OpenGLTexture.h:23
GLenum m_DataFormat
Definition OpenGLTexture.h:34
std::string m_Path
Definition OpenGLTexture.h:31
virtual void SetData(void *data, uint32_t size) override
Sets the data of the texture.
Definition OpenGLTexture.cpp:86
virtual ~OpenGLTexture2D()
Definition OpenGLTexture.cpp:74
virtual uint32_t GetRendererID() const override
Returns the renderer ID of the texture.
Definition OpenGLTexture.h:17
uint32_t m_RendererID
Definition OpenGLTexture.h:33
uint32_t m_Height
Definition OpenGLTexture.h:32
OpenGLTexture2D(uint32_t width, uint32_t height)
Definition OpenGLTexture.cpp:9
OpenGLTexture2D(const std::string &path)
Definition OpenGLTexture.cpp:26
virtual void Bind(uint32_t slot) const override
Binds the texture to the specified slot for use.
Definition OpenGLTexture.cpp:80
virtual uint32_t GetHeight() const override
Returns the height of the texture.
Definition OpenGLTexture.h:16
virtual std::string GetName() const override
Definition OpenGLTexture.cpp:94
uint32_t m_Width
Definition OpenGLTexture.h:32
An abstraction for a 2D texture.
Definition Texture.h:41
The main namespace for the Muto engine.
Definition Application.cpp:15