|
| | Texture2D (const std::string &name) |
| | Constructor. More...
|
| |
| bool | load (const std::string &path, const uint32 flags=0) |
| | Load from file. More...
|
| |
| bool | load (const void *ptr, const uint32 size, const uint32 flags=0) |
| | Load from memory. More...
|
| |
| bool | load (const glm::uvec2 &size, const Format format, const uint32 flags=0) |
| | Creates flat/empty texture. More...
|
| |
| bool | load (const glm::uvec2 &size, const Format format, const void *pixels, const uint32 flags=0) |
| | Create a texture from an array of pixels. More...
|
| |
| bool | load (const Image &image, const uint32 flags=0) |
| | Load from a compressed image. More...
|
| |
| void | setPixels (const glm::uvec2 &start, const glm::uvec2 &size, const void *pixels) |
| | Set a subset of pixels. More...
|
| |
| void | setPixels (const glm::uvec2 &start, const Image &image) |
| | Set a subset of pixels from an image. More...
|
| |
| glm::uvec2 | getSize () const override |
| | Get the texture size. More...
|
| |
| unsigned int | getPixelDepth () const override |
| | Get the texture pixel depth. More...
|
| |
| Image | getImage () const |
| | Copy the texture into an image. More...
|
| |
| | Texture (const std::string &name, const unsigned int glTarget) |
| | Constructor. More...
|
| |
| virtual | ~Texture () override=0 |
| | Virtual destructor. More...
|
| |
| void | destroy () |
| | Destroy this texture, erasing it from video memory. More...
|
| |
| bool | bind (const unsigned int texUnit=0) const |
| | Bind this texture. More...
|
| |
| void | unbind (const unsigned int texUnit=0) const |
| | Unbind a current texture. More...
|
| |
| bool | isValid () const |
| | Check if this texture is valid. More...
|
| |
| void | setSampler (const TextureSampler &sampler) |
| | Set a texture sampler. More...
|
| |
| void | removeSampler () |
| | Remove the bound texture sampler. More...
|
| |
| const TextureSampler * | getSampler () const |
| | Get the currently bound sampler. More...
|
| |
| Texture & | setFilterMode (const TextureSampler::Filter mode, const float param=1.f) |
| | Set the filtering mode. More...
|
| |
| Texture & | setRepeatMode (const TextureSampler::Repeat repeat) |
| | Set the repeating mode. More...
|
| |
| Texture & | setBorderColor (const Color &color) |
| | Set the border color. More...
|
| |
| TextureSampler::Filter | getFilterMode () const |
| | Get the filtering mode. More...
|
| |
| TextureSampler::Repeat | getRepeatMode () const |
| | Get the repeating mode. More...
|
| |
| float | getAnisotropyLevel () const |
| | Get the anisotropy level. More...
|
| |
| const Color & | getBorderColor () const |
| | Get the border color. More...
|
| |
| unsigned int | getHandle () const |
| | Get the OpenGL handle for this texture. More...
|
| |
| | Resource (const std::string &name) |
| | Constructor. More...
|
| |
| virtual | ~Resource ()=0 |
| | Virtual destructor. More...
|
| |
| const std::string & | getName () const |
| | Get the name of this resource. More...
|
| |
| void | setPersistence (const unsigned short level) |
| | Set the persistence level. More...
|
| |
| unsigned short | getPersistence () const |
| | Get the persistence level. More...
|
| |
| WeakReference< Resource > | getReference () const |
| | Get a weak reference to the bound object. More...
|
| |
| | SerializeInfo () |
| |
| void | setSerializePackage (const uint16 package) |
| |
| uint16 | getSerializePackage () const |
| |
| void | setShouldSerialize (const bool set) |
| |
| bool | shouldSerialize () const |
| |
| void | setLightSerializeable (const bool set) |
| |
| bool | isLightSerializeable () const |
| |
|
| enum | Format {
Format::None,
Format::Alpha_UB_8,
Format::RGB_UB_8,
Format::RGBA_UB_8,
Format::RGB_F_16,
Format::RGBA_F_16,
Format::Depth_US_16,
Format::Depth_UI_24,
Format::Stencil_UB_8,
Format::DepthStencil_UI_24_B_8
} |
| |
| void | setAlphaSwizzle (const Format format) |
| | Set the swizzle mask for 8 bit textures. More...
|
| |
| | Resource (const Resource &other, const std::string &newName) |
| | Copy constructor. More...
|
| |
| | SafeReferenceable (Resource *ref) |
| | Constructor. More...
|
| |
| | SafeReferenceable (SafeReferenceable< Resource > &&other) |
| | Move constructor. More...
|
| |
| SafeReferenceable & | operator= (SafeReferenceable< Resource > &&other) |
| | Move assignment operator. More...
|
| |
| | ~SafeReferenceable () |
| | Protected destructor. More...
|
| |
| static Format | getFormatFromDepth (const uint32 depth) |
| | Get the texture format from pixel depth. More...
|
| |
| static unsigned int | getDepthFromFormat (const Format format) |
| | Get the texture pixel depth from format. More...
|
| |
| Format | m_format |
| | Must be filled by derived classes during load() More...
|
| |
Definition at line 35 of file Texture2D.hpp.