|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
#include <OpenGLTexture.h>
Public Member Functions | |
| OpenGLTexture2D (uint32_t width, uint32_t height) | |
| OpenGLTexture2D (const std::string &path) | |
| virtual | ~OpenGLTexture2D () |
| virtual uint32_t | GetWidth () const override |
| Returns the width of the texture. | |
| virtual uint32_t | GetHeight () const override |
| Returns the height of the texture. | |
| virtual uint32_t | GetRendererID () const override |
| Returns the renderer ID of the texture. | |
| virtual void | Bind (uint32_t slot) const override |
| Binds the texture to the specified slot for use. | |
| virtual void | SetData (void *data, uint32_t size) override |
| Sets the data of the texture. | |
| virtual bool | operator== (const Texture2D &other) const override |
| virtual std::string | GetName () const override |
| Public Member Functions inherited from Vesper::Texture | |
| virtual | ~Texture ()=default |
Private Attributes | |
| std::string | m_Path |
| uint32_t | m_Width |
| uint32_t | m_Height |
| uint32_t | m_RendererID |
| GLenum | m_InternalFormat |
| GLenum | m_DataFormat |
Additional Inherited Members | |
| Static Public Member Functions inherited from Vesper::Texture2D | |
| static Ref< Texture2D > | Create (uint32_t width, uint32_t height) |
| static Ref< Texture2D > | Create (const std::string &path) |
| Vesper::OpenGLTexture2D::OpenGLTexture2D | ( | uint32_t | width, |
| uint32_t | height ) |
| Vesper::OpenGLTexture2D::OpenGLTexture2D | ( | const std::string & | path | ) |
References m_Height, m_RendererID, m_Width, and OpenGLTexture2D().
Referenced by OpenGLTexture2D().
|
virtual |
References m_RendererID.
|
overridevirtual |
Binds the texture to the specified slot for use.
Implements Vesper::Texture.
References m_RendererID.
|
inlineoverridevirtual |
|
overridevirtual |
Implements Vesper::Texture.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements Vesper::Texture.
References m_RendererID.
|
overridevirtual |
Sets the data of the texture.
| data | Pointer to the data to be set. |
| size | Size of the data in bytes. |
Implements Vesper::Texture.
|
private |
|
private |
Referenced by GetHeight(), OpenGLTexture2D(), and OpenGLTexture2D().
|
private |
|
private |
|
private |
Referenced by Bind(), GetRendererID(), OpenGLTexture2D(), operator==(), and ~OpenGLTexture2D().
|
private |
Referenced by GetWidth(), OpenGLTexture2D(), and OpenGLTexture2D().