Ray
dc6136e820
Review formatting for PR #1004
2019-10-29 16:03:21 +01:00
João Coelho
75b0264f35
fix various problems, thanks CppCheck :) ( #1005 )
...
* 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-10-29 15:57:19 +01:00
AlexHCC
8adcec185e
Improve code readability ( #976 )
2019-09-24 23:08:07 +02:00
AlexHCC
acedf4a0d5
Fixed regular polygon shape rendering ( #972 )
2019-09-22 21:25:39 +02:00
Colday96
12bcdb977a
Update shapes.c for smoother collision detection ( #946 )
...
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-19 13:32:17 +02:00
raysan5
cef1e6e2e2
Added notes about vertex order
2019-08-11 21:26:12 +02:00
Ray
b4d67499a7
BREAKING CHANGE: Read description
...
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-07-24 15:05:14 +02:00
Ray
e0854696b4
ADDED: DrawTriangleStrip()
2019-06-17 10:29:58 +02:00
Ray
e36a80f730
Code tweaks
2019-06-16 23:37:16 +02:00
Ray
97c8a28aaa
Remove trail spaces
2019-05-08 18:33:09 +02:00
raysan5
604a8c0b78
WARNING: Functions renamed
...
Two functions have been renamed for coherence; previous naming was confusing for several users:
- DrawPolyEx() ---> DrawTriangleFan()
- DrawPolyExLines() ---> DrawLineStrip()
2019-04-28 14:45:46 +02:00
Demizdor
0e683005b4
Fix for DrawRectangleRounded
2019-04-23 20:48:00 +03:00
Ray
b8ada4b877
Review creation years
2019-04-08 12:25:13 +02:00
ChillerDragon
f21761fbbb
Happy new year 2019
2019-04-07 17:49:12 +02:00
Ray
3e1e7d740f
Review merged PR formatting
...
Removed trail spaces
2019-04-04 13:50:28 +02:00
Demizdor
eda982e261
Reimplemented DrawRoundedRectLines()
2019-03-31 16:15:40 +03:00
Vlad Adrian
ecbd17910d
Added DrawRoundedRectLines()
2019-03-31 13:22:50 +03:00
Demizdor
a28023b58f
Added DrawRoundedRect()
2019-03-30 22:18:29 +02:00
Ray
6f371dab08
Some formatting review
2019-03-29 19:43:27 +01:00
Demizdor
ab9c6da26f
Added DrawRing(), DrawRingLines() and DrawCircleSectorLines()
2019-03-29 16:22:09 +02:00
Ray
88dfd2ab23
REDESIGNED: DrawCircleSector()
2019-03-28 18:53:41 +01:00
Ray
165ced9428
Small tweak
2019-03-28 13:03:25 +01:00
Ray
36fa0207f2
Some spacing review
2019-02-28 23:06:37 +01:00
Ray
374811c440
Change ternary operator formatting
2019-02-22 13:13:11 +01:00
Ray
a886f5e743
Remove TABS
2019-02-22 12:12:21 +01:00
Ray
641895b5ba
Remove end-line spaces
2019-02-21 18:45:19 +01:00
Jens Pitkanen
f9963d4ed4
Fix config.h flags
2019-02-14 13:52:18 +02:00
Ray
297dd641e8
ADDED: DrawCircleSector()
2019-02-13 00:06:06 +01:00
raysan5
95d3f24c68
Use QUADS for DrawPolyEx()
2018-12-29 00:29:28 +01:00
raysan5
9a8320c52b
REVIEWED: DrawRectanglePro()
2018-12-26 10:51:13 +01:00
raysan5
92f68ac6be
Review DrawPolyEx()
...
Also reviewed rlCheckBufferLimit()
2018-12-24 14:09:51 +01:00
Ray
f822650a3b
Support externally provided compilation flags
...
Useful in case raylib compilation want to be automated and compilation config flags provided by command line.
2018-12-18 00:20:08 +01:00
Ray
fcb2b74342
Corrected issue with MSAA
2018-11-19 09:23:38 +01:00
Ray
6428317739
Corrected 1px thick issue
2018-11-07 22:50:27 +01:00
Ray
e17bd422fa
Corrected issue with line drawing
2018-11-07 22:31:35 +01:00
Ray
065994219e
Review parameter issue with MSVC
2018-11-06 16:11:11 +01:00
Ray
fc1c9505ba
Remove end-line spaces
2018-11-06 15:10:50 +01:00
Ray
e340517a73
Support custom texture on shapes drawing
...
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-11-06 15:06:01 +01:00
Ray
b88bfa7267
Review PR formatting
2018-08-14 09:57:31 +02:00
Joseph-Eugene Winzer
1cef8ea1bf
Shapes: Simplifies CheckCollisionRecs
...
By comparing the edges of the rectangles relative to each other we can
determine if they intersect or not.
2018-08-14 00:14:06 +02:00
Ray
b042fe12e6
Reviewed spacings on latest PR
2018-08-06 20:49:47 +02:00
Kim Kulling
f5f7ed79b8
Fix compiler warnings of lib
2018-08-05 23:53:34 +02:00
Kim Kulling
b2cac82fa0
Fix compiler warings in texture.c and more.
2018-08-05 00:34:35 +02:00
raysan5
103bc7dfc6
Corrected issue with GetFontDefault()
...
Note for me: Replace All is NOT your friend...
2018-07-05 19:17:06 +02:00
raysan5
d881c73257
Renamed GetDefaultFont() to GetFontDefault()
...
Library consistency rename... yes, I know, it breaks the API...
2018-07-05 19:08:24 +02:00
Ray
0148432588
fabsf() not working with TCC
...
Replaced by fabs() that seem to work ok
2018-05-28 00:48:45 +02:00
raysan5
ca69068814
Added function: rlCheckBufferLimit()
2018-05-20 01:55:46 +02:00
Sherjil Ozair
8e9ff75f1c
Use fabsf for floats, and avoid implicit type casting
2018-05-06 12:47:46 -04:00
Ray San
6324697ffd
Rectangle parameters changed to float
...
- Some examples tweaks
- Reviewed ImageFormat()
- Use float for text fontSize
2018-05-04 16:25:31 +02:00
raysan5
8d81b6e4e4
Support shapes drawing using only QUADS
...
Also added new compilation FLAGS for that pourpose
2018-04-29 12:53:32 +02:00
Ahmad Fatoum
1841afad11
Refactor all #define SUPPORT_* into a config.h
...
That way, a user needs only to touch a single file to configure what
features raylib is built with.
Include guards are left out intentionally, because config.h should only
be included in source files, not headers.
Later on, config.h can also define the raylib version (#461 ).
2018-04-07 23:37:48 +02:00
Ray San
d1ef6869a9
Added function DrawRectangleLinesEx()
2018-02-02 11:01:38 +01:00
raysan5
0e48396369
Corrected issue with new functionality
...
Using default font texture as base white texture for rectangles reduces
draw calls considerably, actually, raygui can be drawn with a single
pass!
2018-01-06 02:44:47 +01:00
raysan5
e1baae0249
Removed function DrawRectangleT()
...
Functionality integrated in DrawRectangle() and selectable with config
flag USE_DEFAULT_FONT_TEXTURE
2018-01-01 16:54:32 +01:00
Ray San
00c34a035c
Updated copyright year
2017-12-20 12:37:08 +01:00
Ahmad Fatoum
107294f3e6
Fix bug, add some whitespace
2017-10-13 13:55:01 +02:00
Ahmad Fatoum
cd6d752217
Fix warning about unsequenced modification of variable
...
Variable t was read and modified without interleaving sequence points,
technically undefined behavior. Report by Clang's -Wunsequenced
2017-10-12 19:51:21 +02:00
Ray
4f9de9527f
Review gradient rectangle drawing
...
Added: DrawRectangleGradientV()
Added: DrawRectangleGradientH()
2017-09-30 00:46:31 +02:00
raysan5
12cb3afd9e
Added function DrawRectangleGradientEx()
...
Moved function DrawRectangleT() from text module to shapes
Added some comments
2017-08-27 21:02:24 +02:00
raysan5
eeca607506
Review transforms to match OpenGL 1.1
2017-08-04 18:34:51 +02:00
Ray
6546474fa4
Manual integration of material-pbr into develop
2017-07-17 00:33:40 +02:00
Ray
59652c75b4
Review some comments
2017-03-20 20:34:44 +01:00
raysan5
3813722f17
Added function: DrawLineBezier()
2017-03-14 00:22:53 +01:00
raysan5
59038bae96
Added function: DrawLineEx()
...
Supports line thickness
2017-03-05 21:04:07 +01:00
Ray
05cff44d0a
Improved modules description -IN PROGRESS-
...
Working in modules configuration flags...
2017-02-16 00:50:02 +01:00
Ray
177af272f0
Added function DrawRectanglePro()
2017-02-16 00:19:03 +01:00
raysan5
658c280669
Lattest PR review
...
Function names, code formatting...
2017-01-05 19:33:05 +01:00
Joel Davis
d5d391faaf
Added RaycastMesh function and example test case
2017-01-02 21:56:25 -08:00
Joel Davis
037da8879a
Added RaycastGround and ray picking example
2016-12-31 15:06:39 -08:00
Ray
377dcb025f
Corrected some warnings
2016-12-05 01:14:18 +01:00
raysan5
6d1b712a96
Reviewed modules comments
2016-11-16 18:46:13 +01:00
raysan5
673dcf9436
Comments tweaks
2016-10-31 20:39:03 +01:00
Ray
8f60996b64
Corrected some warnings
2016-10-17 00:03:38 +02:00
Ray
4c791100cc
Tweak int to float
2016-10-09 20:57:14 +02:00
Ray
2ae9ce29eb
Corrected issue on DrawPolyEx()
2016-10-02 23:04:46 +02:00
raysan5
7f0880a735
Review spacing formatting
...
raylib uses spaces between '+' and '-' signs but not between '*' and '/'
signs, it's a chosen convention
2016-09-12 19:36:41 +02:00
raysan5
a36cc7075a
Corrected issue on drawing order
2016-07-17 12:40:56 +02:00
Ray
9fdf4420d5
Corrected bugs on OpenGL 2.1
2016-06-17 00:29:46 +02:00
raysan5
68a02e567d
Avoid external variable whiteTexture
...
To get it, use GetDefaultTexture()
2016-06-11 12:41:03 +02:00
raysan5
d17a0cee1a
Review text formatting (spacing, tabs...)
2016-05-31 19:12:37 +02:00
raysan5
03cc031d00
Remove TODO comments (already done)
2016-05-20 09:40:48 +02:00
Ray
e2ba22ec59
Improved 2D-3D drawing
...
Depth test disabled for 2D and only used on 3D; consequently LINES vs
TRIANGLES vs QUADS buffers drawing order maters... but blending also
works ok.
2016-03-17 13:51:48 +01:00
Ray
95c1bf9544
Removed previous change that introduced a bug
2016-03-16 19:10:19 +01:00
Ray
ee52b13ae6
Corrected bug on GetCollisionRec()
2016-03-16 17:50:51 +01:00
raysan5
1674465bdc
Adjust buffers usage
...
- Removed DrawQuad() function
- DrawBillboard() uses DrawBillboardRec()
- DrawPlane() uses RL_TRIANGLES
- DrawRectangleV() uses RL_TRIANGLES, that way, [shapes] module uses
only TRIANGLES buffers.
2016-03-01 19:00:12 +01:00
raysan5
9cbfcbb820
Add a note about an issue
2016-02-11 14:56:00 +01:00
raysan5
08da91047e
Some code tweaks
2016-01-23 13:22:13 +01:00
raysan5
3b45336929
Reviewed function: CheckCollisionCircleRec()
2015-12-30 13:34:00 +01:00
raysan5
7834a4e2fc
Replaced old mail by twitter user
2015-07-29 21:43:30 +02:00
raysan5
7db895ab5d
Corrected some bugs and warnings
2015-04-22 18:36:52 +02:00
raysan5
a632a04a30
Big batch of changes! Check description:
...
Support multiple texture formats (uncompressed and compressed)
Postprocessing shaders support
Model struct redefined and improved
Extended loading functions for Textures and Models
Simplified functions: DrawPlane(), DrawQuad()
Deleted functions: DrawPlaneEx(), DrawGizmoEx()
Now Text module only depends on Textures module
Shapes: Reviewed functions to low lines/triangles usage
Removed useless tabs and spaces around code
2015-04-06 14:02:29 +02:00
raysan5
905b6ec53d
Added full support for HTML5 (emscripten)
...
Corrected some bugs on the way...
Automatically convert textures to POT on RPI and WEB
2014-12-31 18:03:32 +01:00
raysan5
fc6081fe70
raylib 1.2
...
This is a huge update. Check CHANGELOG for details
2014-09-16 22:51:31 +02:00
raysan5
d2b98fbb5c
Removed useless spaces
2014-09-03 16:51:28 +02:00
raysan5
56a7979750
Corrected bugs...
...
Set default raylib to use OpenGL 1.1 (compatibility issues on ATI cards)
2014-07-23 19:50:06 +02:00
raysan5
ecb3c47704
Corrected bug with drawing order
...
We have three vertex buffers: lines, triangles and quads for textures.
Drawing in a desired order could become a nighmare... noww it seems it
works prety well...
2014-07-23 01:25:33 +02:00
raysan5
f06a15ac8b
raylib 1.1
...
View CHANGELOG for a detailed list of changes
2014-04-19 16:36:49 +02:00
raysan5
c04f37d0f5
Adapt multiple functions to rlgl
...
Nearly a complete rework of Models module
Some teaks on multiple functions
2014-04-04 20:11:57 +02:00
raysan5
96f520ff6d
Road to raylib 1.1 - Testing rlgl
2014-03-25 12:40:35 +01:00
raysan5
a68818e320
Update to version 1.0.6
...
Check CHANGELOG for the list of changes in this release!
2014-03-16 20:59:02 +01:00