mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-02 02:05:25 +00:00
resetting getter not const (due to poor lib design)
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ bool RAY::Image::unload()
|
||||
return true;
|
||||
}
|
||||
|
||||
const ::Image &RAY::Image::getImage(void) const
|
||||
::Image &RAY::Image::getImage(void)
|
||||
{
|
||||
return _image;
|
||||
}
|
||||
@@ -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 &);
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user