class
#include <OE/Graphics/API/Texture.hpp>
Texture
Contents
Derived classes
- class D3DTexture
- class GLTexture
Public static functions
- static auto Create(TextureProperties& properties, std::vector<void*> data) -> Texture*
- static auto Create(TextureProperties& properties, void* data = 0) -> Texture*
- static auto Load(std::vector<std::string> files, TextureSampleProperties& sampleProperties) -> Texture*
- static auto Load(std::string file, TextureSampleProperties& sampleProperties) -> Texture*
- static auto Load(std::vector<std::string> files) -> Texture*
- static auto Load(std::string file) -> Texture*
- static auto Load(char* filed_data, size_t file_size) -> Texture*
- static auto CalculateMipLevelsCount(unsigned int width, unsigned int height) -> unsigned int
- static auto BPPFromFormat(TextureFormat format) -> unsigned int
- static auto FormatPropertiesFromBPP(unsigned int bpp) -> TextureFormatProperties
Constructors, destructors, conversion operators
- ~Texture() virtual
- Texture(TextureProperties properties) protected
Public functions
- void bind(unsigned int slot) pure virtual
- void setData(void* data, unsigned int offset = 0) pure virtual
- void copy(Texture* source) pure virtual
- auto getData() -> void* pure virtual
- auto getMipmapLevelsCount() -> unsigned int
- auto getProperties() const -> TextureProperties
Protected variables
- TextureProperties m_Properties
- unsigned int m_MipLevels