.. _program_listing_file_Src_GraphicsEngineOpenGL_scene_texture_Texture.hpp: Program Listing for File Texture.hpp ==================================== |exhale_lsh| :ref:`Return to documentation for file ` (``Src/GraphicsEngineOpenGL/scene/texture/Texture.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #include #include #include "TextureWrappingMode.hpp" #include "hostDevice/GlobalValues.hpp" class Texture { public: Texture(); Texture(const char *file_loc, std::shared_ptr wrapping_mode); bool load_texture_without_alpha_channel(); bool load_texture_with_alpha_channel(); bool load_SRGB_texture_without_alpha_channel(); bool load_SRGB_texture_with_alpha_channel(); std::string get_filename() const; GLuint get_id() const; void use_texture(unsigned int index); void unbind_texture(unsigned int index); void clear_texture_context(); ~Texture(); private: GLuint textureID; int width, height, bit_depth; std::shared_ptr wrapping_mode; std::string file_location; };