resetting getter not const (due to poor lib design)

This commit is contained in:
Clément Le Bihan
2021-05-21 16:30:53 +02:00
parent 688b5d992d
commit 8323639e4f
6 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -39,4 +39,4 @@ void RAY::Drawables::Drawables2D::Circle::drawOn(RAY::Window &window)
void RAY::Drawables::Drawables2D::Circle::drawOn(RAY::Image &image)
{
ImageDrawCircleV(&(image.getImage()), this->_position, this->_radius, this->_color.getColor());
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ bool RAY::Image::unload()
return true;
}
const ::Image &RAY::Image::getImage(void) const
::Image &RAY::Image::getImage(void)
{
return _image;
}
+1 -1
View File
@@ -49,7 +49,7 @@ namespace RAY
bool unload() override;
//! @brief get image
const ::Image &getImage(void) const;
::Image &getImage(void);
//! @brief draw drawable
void draw(Drawables::ADrawable2D &);
+1 -1
View File
@@ -143,7 +143,7 @@ void RAY::Window::draw(const Mesh &mesh, const Material &material, const Matrix
DrawMesh(mesh, material, transform);
}
void RAY::Window::setIcon(const RAY::Image &img)
void RAY::Window::setIcon(RAY::Image &img)
{
SetWindowIcon(img.getImage());
}
+1 -1
View File
@@ -61,7 +61,7 @@ namespace RAY {
bool cursorIsVisible(void) const;
//! @brief set the window icon
void setIcon(const Image &img);
void setIcon(Image &img);
//! @brief Get the cursor position
Vector2 getCursorPosition() const;
-1
View File
@@ -30,7 +30,6 @@ int main()
RAY::Drawables::Drawables3D::Grid grid(10, 5.0f);
RAY::Drawables::Drawables3D::Cube cube({0}, {0}, {0});
// Specify the amount of blocks in each direction
const int numBlocks = 15;