summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
AgeCommit message (Collapse)Author
2020-01-27ADDED: DrawEllipse() and DrawEllipseLines() #1047Ray
2020-01-09ADDED: DrawPolyLines()Ray
2020-01-08Reviewed some commentsRay
2020-01-05Update year to 2020raysan5
2019-10-29Review formatting for PR #1004Ray
2019-10-29fix various problems, thanks CppCheck :) (#1005)João Coelho
* explained a bit more the core_window_letterbox example * fixed a few 'ups' moments that could lead to mild head pain and time loss
2019-09-24Improve code readability (#976)AlexHCC
2019-09-22Fixed regular polygon shape rendering (#972)AlexHCC
2019-08-19Update shapes.c for smoother collision detection (#946)Colday96
By removing the equal sign, if the 2 rects a right next to each other and not overlapping, there will be no collision detection. This is what a majority of other game libraries do and would make it easier to implement collisions for tile based games.
2019-08-11Added notes about vertex orderraysan5
2019-07-24BREAKING CHANGE: Read descriptionRay
Changes: - Font structure has been redesigned, CharInfo structure contained character rectangle within font texture, it has not much sense, considering that it was an information relative to the font atlas generated and not the character itself, so character rectangles have been moved out from CharInfo to Font. - CharInfo included a data parameters to contain character pixel data (usually grayscale), generated on TTF font generation. It was inconsistent with other fonts types, so, now CharInfo includes directly an Image of the glyph. - REDESIGNED: GenImageFontAtlas(), additional recs parameter added, loaded and filled inside the function to export atlas characters rectangles, instead of silently modify the input CharInfo data. - REVIEWED: ImageTextEx(), funtion retrieved the font atlas image from the GPU, that was slow and problematic in several platforms. Now it uses directly the CharInfo image. Support for unicode codepoints has also been added. - REDESIGNED: ImageDraw(), now it includes an additional parameter, the color tint, not only it could be useful for several situations but also function signature is more consistent with similar functions. - ADDED: ImageFromImage() to generate a new image from a piece of another image. - REVIEWED: GetNextCodepoint(), renamed parameters to be more clear. Also all examples and games that were affected by those changes have been reviewed.
2019-06-17ADDED: DrawTriangleStrip()Ray
2019-06-16Code tweaksRay
2019-05-08Remove trail spacesRay
2019-04-28WARNING: Functions renamedraysan5
Two functions have been renamed for coherence; previous naming was confusing for several users: - DrawPolyEx() ---> DrawTriangleFan() - DrawPolyExLines() ---> DrawLineStrip()
2019-04-23Fix for DrawRectangleRoundedDemizdor
2019-04-08Review creation yearsRay
2019-04-07Happy new year 2019ChillerDragon
2019-04-04Review merged PR formattingRay
Removed trail spaces
2019-03-31Reimplemented DrawRoundedRectLines()Demizdor
2019-03-31Added `DrawRoundedRectLines()`Vlad Adrian
2019-03-30Added DrawRoundedRect()Demizdor
2019-03-29Some formatting reviewRay
2019-03-29Added DrawRing(), DrawRingLines() and DrawCircleSectorLines()Demizdor
2019-03-28REDESIGNED: DrawCircleSector()Ray
2019-03-28Small tweakRay
2019-02-28Some spacing reviewRay
2019-02-22Change ternary operator formattingRay
2019-02-22Remove TABSRay
2019-02-21Remove end-line spacesRay
2019-02-14Fix config.h flagsJens Pitkanen
2019-02-13ADDED: DrawCircleSector()Ray
2018-12-29Use QUADS for DrawPolyEx()raysan5
2018-12-26REVIEWED: DrawRectanglePro()raysan5
2018-12-24Review DrawPolyEx()raysan5
Also reviewed rlCheckBufferLimit()
2018-12-18Support externally provided compilation flagsRay
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
2018-11-19Corrected issue with MSAARay
2018-11-07Corrected 1px thick issueRay
2018-11-07Corrected issue with line drawingRay
2018-11-06Review parameter issue with MSVCRay
2018-11-06Remove end-line spacesRay
2018-11-06Support custom texture on shapes drawingRay
By default, internal white texture was used to draw most of the shapes; some time ago, support for white font character from default internal font was added. That way, all basic drawing (shapes, text) could be performed without a texture change and in a single drawing pass. Now, we move a step further and we allow configuring the texture (and rectangle) used to do the shapes drawing.
2018-08-14Review PR formattingRay
2018-08-14Shapes: Simplifies CheckCollisionRecsJoseph-Eugene Winzer
By comparing the edges of the rectangles relative to each other we can determine if they intersect or not.
2018-08-06Reviewed spacings on latest PRRay
2018-08-05Fix compiler warnings of libKim Kulling
2018-08-05Fix compiler warings in texture.c and more.Kim Kulling
2018-07-05Corrected issue with GetFontDefault()raysan5
Note for me: Replace All is NOT your friend...
2018-07-05Renamed GetDefaultFont() to GetFontDefault()raysan5
Library consistency rename... yes, I know, it breaks the API...
2018-05-28fabsf() not working with TCCRay
Replaced by fabs() that seem to work ok