raysan5
959447d8ed
Reorganized texture functions
...
Removed ImageAlphaMask() dependency on [text] LoadBMFont()
2020-05-09 12:05:00 +02:00
raysan5
f6ca045735
ADDED: DrawTriangle3D() and DrawTriangleStrip3D()
...
Those functions could be very useful for custom triangle data drawing, using internal batch system.
2020-05-07 12:46:45 +02:00
raysan5
51c3bef497
Review exposed #defines and allow user re-defining
...
There are multiple #define values around raylib, usually not exposed for redefinition, just reviewed all of them to allow users redefining them on compile time if required.
Also, multiple #define have been renamed and commented.
2020-05-01 17:31:44 +02:00
raysan5
6e2d39c51b
ADDED: IsWindowFocused()
2020-04-27 17:41:29 +02:00
raysan5
8e59ecb50c
ADDED: GetWindowScaleDPI()
2020-04-24 23:17:32 +02:00
raysan5
cc816345bf
WARNING: API BREAK: Removed LoadImagePro()
...
Actually this function is useless and potentially dangerous, internally, a shallow copy of data was done. Same could be accomplished accesing image.data directly.
2020-04-10 19:26:36 +02:00
raysan5
b132da0ac2
WARNING: API BREAK: Reviewed ImageDrawText*() params order
...
To unify with DrawText*() equivalent functions
2020-04-10 19:10:15 +02:00
raysan5
adb20569be
Review shared library building
2020-04-01 11:06:05 +02:00
raysan5
fc7ec5e907
Update raylib.h
2020-03-30 17:11:35 +02:00
Dani Martin
62cdb2299b
[cppcheck] Improvements in SaveStorageValue() in core.c ( #1160 )
...
* [cppcheck] Improvements in SaveStorageValue() in core.c
in file core.c cppcheck shows errors only in function SaveStorageValue():
* Common realloc mistake: 'fileData' nulled but not freed upon failure
* Memory pointed to by 'fileData' is freed twice.
Validation:
* Tested examples/core/core_storage_values.c
* Launched Unit Test for this function
* Rerun CPPCHECK afer fix
* [cppcheck] Change functions header to accept only positive position in files
Changes:
* Functions SaveStorageValue(), LoadStorageValue() (core.c)
* Functions LoadFileData(), SaveFileData() (utils.c)
* Headers in raylib.h
Validation:
* Tested examples/core/core_storage_values.c
* Launched Unit Test for these functions
* Rerun CPPCHECK afer fix
2020-03-30 13:51:36 +02:00
raysan5
733ed972f7
Reorganize image functions
2020-03-29 13:37:33 +02:00
raysan5
5d7050bdf9
Reorganize image/texture functions for consistency
2020-03-29 13:31:12 +02:00
Rob Loach
a025636fa1
Update ImageDraw*() functions to match arguments of Draw*() ( #1156 )
...
* Update ImageDraw*() functions to match arguments of Draw*()
Updated draw functions:
ImageDrawPixel()
ImageDrawPixelV()
ImageDrawCircle()
ImageDrawCircleV()
ImageDrawLine()
ImageDrawLineV()
ImageDrawRectangle()
ImageDrawRectangleV()
ImageDrawRectangleRec()
* [nodepadpp] Update Notepad++ ImageDraw defintions
This updates the Notepad++ definitions with the updated ImageDraw methods.
* [examples] Add ImageDraw calls to textures_image_drawing
* Update ImageDraw*() methods
2020-03-29 12:43:34 +02:00
raysan5
96005f2566
ADDED: IsWindowFullscreen()
2020-03-25 18:52:38 +01:00
Sourav Gupta
574c689ff7
Added draw functions to ImageDraw*() ( #1138 )
...
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
2020-03-21 20:23:50 +01:00
Ray
74c486201d
ADDED: LoadFileText() and SaveFileText()
...
Improved file access checks
2020-03-04 00:21:46 +01:00
Ray
05992a6fce
Tweaks
2020-02-27 16:37:32 +01:00
Ray
89ecad1e29
Review macros
2020-02-27 13:18:55 +01:00
Ray
e5b5aea998
WARNING: RENAMED: Storage functions
...
Renamed functions for consistency:
- StorageLoadValue() > LoadStorageValue()
- StorageSaveValue() > SaveStorageValue()
2020-02-26 23:40:53 +01:00
Ray
1046449339
ADDED: LoadFileData(), SaveFileData()
2020-02-26 20:29:33 +01:00
Ray
91b2dc2aa9
[raudio] ADDED: SetAudioStreamBufferSizeDefault()
...
There could be some cases where we need to define the internal audio buffer size, now it's possible.
RENAMED: InitAudioBuffer() to LoadAudioBuffer()
RENAMED: CloseAudioBuffer() to UnloadAudioBuffer()
Renamed some defines and reviewed some comments.
2020-02-14 17:13:37 +01:00
Ray
40b73a8a91
Develop branch integration ( #1091 )
...
* [core] REDESIGNED: Implement global context
* [rlgl] REDESIGNED: Implement global context
* Reviewed globals for Android
* Review Android globals usage
* Update Android globals
* Bump raylib version to 3.0 !!!
* [raudio] REDESIGNED: Implement global context
* [raudio] Reorder functions
* [core] Tweaks on descriptions
* Issues with SUPPORT_MOUSE_GESTURES
* [camera] Use global context
* REDESIGN: Move shapes drawing texture/rec to RLGL context
* Review some issues on standalone mode
* Update to use global context
* [GAME] Upload RE-PAIR game from GGJ2020 -WIP-
* Update game: RE-PAIR
* [utils] TRACELOG macros proposal
* Update config.h
2020-02-03 18:31:30 +01:00
Ray
4992edab24
ADDED: DrawPoint3D()
2020-01-29 12:21:22 +01:00
Ray
4f7d090fb2
ADDED: DrawEllipse() and DrawEllipseLines() #1047
2020-01-27 16:21:37 +01:00
Ray
954f029118
Support touch/mouse indistinctly
...
REMOVED: IsTouchDetected()
2020-01-27 15:31:43 +01:00
Ray
5ec87c4c6f
ADDED: TextCopy() #1083
2020-01-26 18:38:46 +01:00
Ray
f28c1ef675
ADDED: IsTouchDetected()
2020-01-24 19:45:51 +01:00
Ray
eee995ec3d
ADDED: GetWorldToScreenEx()
...
Addressing issue #1056
2020-01-24 18:54:53 +01:00
raysan5
bec467705e
Review custom allocators
2020-01-19 11:23:38 +01:00
raysan5
406373caa9
Review functions definition modifiers
2020-01-19 11:22:28 +01:00
Ray
e0d4cc3143
ADDED: DrawPolyLines()
2020-01-09 18:34:20 +01:00
raysan5
21c30f43d4
Update year to 2020
2020-01-05 20:01:54 +01:00
raysan5
350cb0a8a8
GenTextureCubemap(): renamed parameter
2019-12-29 13:52:48 +01:00
Ray
3ffe34f9bb
ADDED: DrawTextCodepoint()
...
- Renamed GetGlyphIndex() parameter
- Review DrawTextEx() implementation
- Review DrawTextRecEx() implementation
2019-12-01 13:28:14 +01:00
Darryl Dixon - Piece Digital
776304e8e8
Comments ( #1026 )
...
* swapped comments, expanded comment for clarity
* revert alignments
* adjusted for consistency
2019-11-25 00:13:05 +01:00
raysan5
1d3f230c92
Review key input queue PR #1012
...
Keeping original API
2019-11-24 13:39:45 +01:00
Ushio
ae301a1d23
add api FIFO based character input. ( #1012 )
...
* add api FIFO based character input.
* rename input character functions
* replace tab to space x4 #1012
2019-11-24 12:46:00 +01:00
ChrisDill
00c611a5fb
[Core] Added ColorFromNormalized which is the reverse of ColorNormalize. ( #1011 )
2019-11-08 21:02:41 +01:00
Ray
d73abe73e5
REDESIGN: TextToUtf8()
...
ADDED: CodepointToUtf8()
2019-10-28 20:53:32 +01:00
Ray
f6df47dfe5
ADDED: TextToUtf8() -WIP-
...
RENAMED: TextCountCodepoints() -> GetCodepointsCount()
2019-10-27 23:56:48 +01:00
chriscamacho
90b3dceb54
added GetMatrixProjection fixed issue with GL11 where model matrix was identity ( #999 )
2019-10-27 12:13:18 +01:00
Ray
ea70c47a1a
Review latest PR
2019-10-21 17:55:37 +02:00
Tyler Jessilynn Bezera
3f7fa6d6e7
Add multi texture support for materials in GLTF format ( #979 )
...
* Initial commit of addition for GLTF materials.. should support loading more than just albedo map.
* Clean up
* fixed seg faults and leaks
* temp don't overwrite defuse colour when rendering
* undid something dumb!
* correctly mixed diffuse map color when rendering to preserve not overwrite it
2019-10-21 17:38:23 +02:00
Ray
e0cb892d2d
ADDED: GetCodepoints()
...
Get the unicode equivalent characters (as int array) from a UTF-8 text array... maybe this function is renamed to be clearer to users...
2019-10-11 20:12:15 +02:00
Catalin Moldovan
99e86d180b
Const corectness for LoadShaderCode ( #977 )
...
* Const corectness for LoadShaderCode
* Added const for standalone variant as well.
2019-09-25 16:31:10 +02:00
raysan5
08165fed18
Review DecompressData() types, for consistency
2019-09-15 11:15:33 +02:00
Ray
0a2177b4bc
ADDED: GetWindowPosition()
2019-09-10 12:43:44 +02:00
Ray
ae2452d280
ADDED small compression API
...
- ADDED: CompressData()
- ADDED: DecompressData()
2019-09-09 21:56:16 +02:00
Ray
fc95ceadf0
Remove sampleLeft from Music struct... -WIP-
...
...moved to internal AudioBuffer structure as totalFramesProcessed, now time measure works again... but there is some problem with looping...
Also note some inconsistencies between frames and samples, it seems those concepts are not considered correctly in the code.
2019-09-03 23:08:02 +02:00
raysan5
4e43192561
Review latest PR
2019-08-27 13:15:56 +02:00