mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-08 12:00:55 +00:00
Merging with develop
This commit is contained in:
@@ -42,6 +42,11 @@ namespace RAY {
|
||||
return *this;
|
||||
}
|
||||
|
||||
const std::string &Texture::getResourcePath() const
|
||||
{
|
||||
return this->_resourcePath;
|
||||
}
|
||||
|
||||
Texture::operator ::Texture() const
|
||||
{
|
||||
return *this->_texture;
|
||||
|
||||
@@ -47,6 +47,9 @@ namespace RAY
|
||||
//! @brief Unload the current texture (calls to drawOn will no-op).
|
||||
void unload();
|
||||
|
||||
//! @return path of loaded texture
|
||||
const std::string &getResourcePath() const;
|
||||
|
||||
protected:
|
||||
private:
|
||||
//! @brief Texture, really, that's just it...
|
||||
|
||||
@@ -61,6 +61,11 @@ namespace RAY::Drawables::Drawables3D
|
||||
return true;
|
||||
}
|
||||
|
||||
Texture &Model::getTextureByMaterial(MaterialType materialType)
|
||||
{
|
||||
return this->_textureList[materialType];
|
||||
}
|
||||
|
||||
Model::operator ::Model() const
|
||||
{
|
||||
return *this->_model;
|
||||
|
||||
@@ -90,6 +90,10 @@ namespace RAY::Drawables::Drawables3D {
|
||||
//! @brief Draw model's wires on window
|
||||
void drawWiresOn(RAY::Window &) override;
|
||||
|
||||
//! @param materialType type of material
|
||||
//! @return texture
|
||||
Texture &getTextureByMaterial(MaterialType materialType);
|
||||
|
||||
private:
|
||||
//! @brief Raw data from raylib
|
||||
std::shared_ptr<::Model> _model;
|
||||
|
||||
Reference in New Issue
Block a user