@@ -586,89 +586,75 @@ class Image : public ::Image {
586586 /* *
587587 * Draw pixel within an image
588588 */
589- inline Image& DrawPixel (int posX, int posY, ::Color color = {255 , 255 , 255 , 255 }) {
589+ inline void DrawPixel (int posX, int posY, ::Color color = {255 , 255 , 255 , 255 }) {
590590 ::ImageDrawPixel (this , posX, posY, color);
591- return *this ;
592591 }
593592
594- inline Image& DrawPixel (::Vector2 position, ::Color color = {255 , 255 , 255 , 255 }) {
593+ inline void DrawPixel (::Vector2 position, ::Color color = {255 , 255 , 255 , 255 }) {
595594 ::ImageDrawPixelV (this , position, color);
596- return *this ;
597595 }
598596
599- inline Image& DrawLine (int startPosX, int startPosY, int endPosX, int endPosY,
597+ inline void DrawLine (int startPosX, int startPosY, int endPosX, int endPosY,
600598 ::Color color = {255 , 255 , 255 , 255 }) {
601599 ::ImageDrawLine (this , startPosX, startPosY, endPosX, endPosY, color);
602- return *this ;
603600 }
604601
605- inline Image& DrawLine (::Vector2 start, ::Vector2 end, ::Color color = {255 , 255 , 255 , 255 }) {
602+ inline void DrawLine (::Vector2 start, ::Vector2 end, ::Color color = {255 , 255 , 255 , 255 }) {
606603 ::ImageDrawLineV (this , start, end, color);
607- return *this ;
608604 }
609605
610- inline Image& DrawCircle (int centerX, int centerY, int radius,
606+ inline void DrawCircle (int centerX, int centerY, int radius,
611607 ::Color color = {255 , 255 , 255 , 255 }) {
612608 ::ImageDrawCircle (this , centerX, centerY, radius, color);
613- return *this ;
614609 }
615610
616- inline Image& DrawCircle (::Vector2 center, int radius,
611+ inline void DrawCircle (::Vector2 center, int radius,
617612 ::Color color = {255 , 255 , 255 , 255 }) {
618613 ::ImageDrawCircleV (this , center, radius, color);
619- return *this ;
620614 }
621615
622- inline Image& DrawRectangle (int posX, int posY, int width, int height,
616+ inline void DrawRectangle (int posX, int posY, int width, int height,
623617 ::Color color = {255 , 255 , 255 , 255 }) {
624618 ::ImageDrawRectangle (this , posX, posY, width, height, color);
625- return *this ;
626619 }
627620
628- inline Image& DrawRectangle (Vector2 position, Vector2 size,
621+ inline void DrawRectangle (Vector2 position, Vector2 size,
629622 ::Color color = {255 , 255 , 255 , 255 }) {
630623 ::ImageDrawRectangleV (this , position, size, color);
631- return *this ;
632624 }
633625
634- inline Image& DrawRectangle (::Rectangle rec, ::Color color = {255 , 255 , 255 , 255 }) {
626+ inline void DrawRectangle (::Rectangle rec, ::Color color = {255 , 255 , 255 , 255 }) {
635627 ::ImageDrawRectangleRec (this , rec, color);
636- return *this ;
637628 }
638629
639- inline Image& DrawRectangleLines (::Rectangle rec, int thick = 1 ,
630+ inline void DrawRectangleLines (::Rectangle rec, int thick = 1 ,
640631 ::Color color = {255 , 255 , 255 , 255 }) {
641632 ::ImageDrawRectangleLines (this , rec, thick, color);
642- return *this ;
643633 }
644634
645- inline Image& Draw (const ::Image& src, ::Rectangle srcRec, ::Rectangle dstRec,
635+ inline void Draw (const ::Image& src, ::Rectangle srcRec, ::Rectangle dstRec,
646636 ::Color tint = {255 , 255 , 255 , 255 }) {
647637 ::ImageDraw (this , src, srcRec, dstRec, tint);
648- return *this ;
649638 }
650639
651- inline Image& DrawText (const std::string& text, ::Vector2 position, int fontSize,
640+ inline void DrawText (const std::string& text, ::Vector2 position, int fontSize,
652641 ::Color color = {255 , 255 , 255 , 255 }) {
653642 ::ImageDrawText (this ,
654643 text.c_str(),
655644 static_cast<int>(position.x),
656645 static_cast<int>(position.y),
657646 fontSize,
658647 color);
659- return *this ;
660648 }
661649
662- inline Image& DrawText (const std::string& text, int x, int y, int fontSize,
650+ inline void DrawText (const std::string& text, int x, int y, int fontSize,
663651 ::Color color = {255 , 255 , 255 , 255 }) {
664652 ::ImageDrawText (this , text.c_str(), x, y, fontSize, color);
665- return *this ;
666653 }
667654
668- inline Image& DrawText (const ::Font& font, const std::string& text, ::Vector2 position,
655+ inline void DrawText (const ::Font& font, const std::string& text, ::Vector2 position,
669656 float fontSize, float spacing, ::Color tint = {255 , 255 , 255 , 255 }) {
670657 ::ImageDrawTextEx (this , font, text.c_str(), position, fontSize, spacing, tint);
671- return *this ;
672658 }
673659
674660 /* *
0 commit comments