StreamTexture.cpp
Go to the documentation of this file.
8 StreamTexture_Subprovider::StreamTexture_Subprovider( Instance * inst, StreamResourceProvider const * provider ) :
22 void StreamTexture_Subprovider::Resource( std::string const & resource_class, ResourcePath path )
96 void StreamTexture_Subprovider::each_resource( std::function< void( ResourcePath const & ) > const & f ) const
121 //============================== StreamTexture ================================================================
122 StreamTexture::StreamTexture( Instance * inst, StreamResourceProvider const * provider, StreamTexture_Subprovider const * subprovider, ResourcePath const & path ) :
140 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Not loading - OpenGL not enabled yet." );
153 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Loading to GPU (instant loading is enabled for this texture)." );
161 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Queuing delayed load (instant loading is disabled for this texture)." );
168 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Unloading texture - OpenGl is disabled." );
175 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Dropping texture - OpenGl is dropped." );
184 this->cm.log( SRC_INFO, ::iv::Defs::Log::TextureState, "Texture load skipped - OpenGL is disabled." );
195 this->_gl_texture.CreateTexture( &this->cm, gl_info.render_target(), metadata.size, this->min_filtering(), this->mag_filtering(), false, metadata.pixel_format, this->_metadata.color_space );
196 this->_gl_texture.LoadData( &this->cm, gl_info.render_target(), bytes, bytes_count, metadata.pixel_format );