2#include "Vesper/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 VZ_CORE_ASSERT(x,...)
Definition Asserts.h:20
#define VZ_PROFILE_FUNCTION()
Definition Instrumentor.h:240
#define VZ_PROFILE_SCOPE(name)
Definition Instrumentor.h:239
Definition OpenGLTexture.h:9
virtual uint32_t GetWidth() const override
Returns the width of the texture.
Definition OpenGLTexture.h:15
virtual ~OpenGLTexture2D()
Definition OpenGLTexture.cpp:74
virtual void SetData(void *data, uint32_t size) override
Sets the data of the texture.
Definition OpenGLTexture.cpp:86
GLenum m_DataFormat
Definition OpenGLTexture.h:34
uint32_t m_Height
Definition OpenGLTexture.h:32
virtual uint32_t GetHeight() const override
Returns the height of the texture.
Definition OpenGLTexture.h:16
OpenGLTexture2D(const std::string &path)
Definition OpenGLTexture.cpp:26
uint32_t m_RendererID
Definition OpenGLTexture.h:33
OpenGLTexture2D(uint32_t width, uint32_t height)
Definition OpenGLTexture.cpp:9
virtual void Bind(uint32_t slot) const override
Binds the texture to the specified slot for use.
Definition OpenGLTexture.cpp:80
virtual bool operator==(const Texture2D &other) const override
Definition OpenGLTexture.h:23
virtual std::string GetName() const override
Definition OpenGLTexture.cpp:94
virtual uint32_t GetRendererID() const override
Returns the renderer ID of the texture.
Definition OpenGLTexture.h:17
std::string m_Path
Definition OpenGLTexture.h:31
uint32_t m_Width
Definition OpenGLTexture.h:32
GLenum m_InternalFormat
Definition OpenGLTexture.h:34
An abstraction for a 2D texture.
Definition Texture.h:37
TEMPORARY.
Definition WindowsInput.cpp:7