The Texture class defines the texture image and sampling behaviour when you need to map a texture to an object. More...
#include <state.h>
Public Member Functions | |
| Texture (int unit, std::shared_ptr< Image > image, std::shared_ptr< Sampler > sampler) | |
Public Member Functions inherited from cil::State | |
| State () | |
| const std::string & | className () const |
Public Member Functions inherited from cil::Object | |
| Object () | |
| virtual | ~Object () |
Public Attributes | |
| int | unit |
| std::shared_ptr< Image > | image |
| std::shared_ptr< Sampler > | sampler |
Additional Inherited Members | |
Protected Attributes inherited from cil::State | |
| std::string | m_className |
The Texture class defines the texture image and sampling behaviour when you need to map a texture to an object.
| cil::Texture::Texture | ( | int | unit, |
| std::shared_ptr< Image > | image, | ||
| std::shared_ptr< Sampler > | sampler ) |
| std::shared_ptr<Image> cil::Texture::image |
| std::shared_ptr<Sampler> cil::Texture::sampler |
| int cil::Texture::unit |