|
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 |
A library for managing and storing shaders. More...
#include <Shader.h>
Public Member Functions | |
| void | Add (const std::string &name, const Ref< Shader > &shader) |
| Adds a shader to the library with the specified name. | |
| void | Add (const Ref< Shader > &shader) |
| Adds a shader to the library using its own name. | |
| Ref< Shader > | Load (const std::string &filepath) |
| Loads a shader from the specified filepath and adds it to the library. | |
| Ref< Shader > | Load (const std::string &name, const std::string &filepath) |
| Loads a shader from the specified filepath and adds it to the library with the given name. | |
| Ref< Shader > | Get (const std::string &name) |
| Retrieves a shader from the library by name. | |
| bool | Exists (const std::string &name) const |
| Checks if a shader with the specified name exists in the library. | |
Private Attributes | |
| std::unordered_map< std::string, Ref< Shader > > | m_Shaders |
A library for managing and storing shaders.
Adds a shader to the library using its own name.
Adds a shader to the library with the specified name.
| bool Vesper::ShaderLibrary::Exists | ( | const std::string & | name | ) | const |
Checks if a shader with the specified name exists in the library.
| Vesper::Ref< Vesper::Shader > Vesper::ShaderLibrary::Get | ( | const std::string & | name | ) |
Retrieves a shader from the library by name.
| Vesper::Ref< Vesper::Shader > Vesper::ShaderLibrary::Load | ( | const std::string & | filepath | ) |
Loads a shader from the specified filepath and adds it to the library.
| Vesper::Ref< Vesper::Shader > Vesper::ShaderLibrary::Load | ( | const std::string & | name, |
| const std::string & | filepath ) |
Loads a shader from the specified filepath and adds it to the library with the given name.