raw data structure methods calls are now forbidden for functions outside RAY

This commit is contained in:
arthur.jamet
2021-05-23 16:39:31 +02:00
parent bce3d68874
commit b2c38a6adf
8 changed files with 76 additions and 62 deletions
+5 -3
View File
@@ -54,9 +54,6 @@ namespace RAY
//! @brief unload ressources
bool unload() override;
//! @brief get image
operator ::Image() const;
operator ::Image *();
//! @brief draw drawable
void draw(Drawables::ADrawable2D &);
@@ -64,6 +61,11 @@ namespace RAY
private:
//! @brief Image, really, that's just it...
::Image _image;
INTERNAL:
//! @brief get image
operator ::Image() const;
operator ::Image *();
};
}
+4 -3
View File
@@ -45,13 +45,14 @@ namespace RAY
//! @brief unload ressources
bool unload() override;
//! @return libray Texture struct
operator ::Texture() const;
protected:
private:
//! @brief Texture, really, that's just it...
::Texture _texture;
INTERNAL:
//! @return libray Texture struct
operator ::Texture() const;
};
}