Struct Texture

Inheritance Relationships

Base Type

Struct Documentation

struct Texture : public CE::Rendering::Resources::Image

Declaration: final

Public Functions

explicit Texture(std::shared_ptr<ResourceLifetime> lifetime, const char *file, bool use_mipmaps, bool pixelate, int wrap_opt)
explicit Texture(std::shared_ptr<ResourceLifetime> lifetime, const unsigned char *bitmap_data, int width, int height, bool use_mipmaps, bool pixelate, int wrap_opt = GL_CLAMP_TO_EDGE, GLenum fmt = GL_RED)
inline virtual CE::Rendering::Geometry::PixelSize pixel_size() const override

Declaration: [[nodiscard]]

virtual void bind(std::uint32_t unit) const override
void require_binding(std::uint32_t unit) const
inline bool has_complete_mipmaps() const noexcept

Declaration: [[nodiscard]]

inline const ResourceLifetime *resource_domain() const noexcept

Declaration: [[nodiscard]]

void unbind(std::uint32_t unit) const

Public Members

std::int32_t width = {}
std::int32_t height = {}