| Age | Commit message (Collapse) | Author |
|
Those two functions have been moved to a new example: `models_draw_cube_texture`. The reasons for this decision:
- Function inflexibility: Many users with the need to draw a textured cube could need to customize the texture applied to every face, that function did not allow that kind of functionality.
- rlgl functionality exposure: The implementation exposed will teach users how to implement custom textured triangles drawing.
|
|
|
|
|
|
|
|
This function implementation has been moved to the related example. Current implementation can be probably customized depending on user needs.
|
|
This function can be easely replicated using `DrawtexturePro()` and actually it was doing some assumptions not transparent to the user. Even the function name was confusing. No example was available for it and actually noone requested one example.
|
|
Function moved to `examples/textures/textures_polygon.c`, so users can learn from the implementation and create custom variants as required.
|
|
|
|
|
|
|
|
|
|
Co-authored-by: nobytesgiven <[email protected]>
|
|
* Added Box and Gaussian blurring
* Removed dependence of gaussian blur to box blur & Fixed precision errors
Co-authored-by: nobytesgiven <[email protected]>
|
|
* Fixed bezier line breaking #2735
* converted tabs to spaces
* typo
* Changed doubles to floats
* removed heap allocations\
Co-authored-by: nobytesgiven <[email protected]>
|
|
|
|
* build.zig: let user decide how to set build mode
This should delegate the responsibility of calling `standardReleaseOptions` and setting the build mode of the `*LibExeObjStep` step to the caller, especially since this might not be the process by which one wants to determine the build mode.
Also changes hides `getSrcDir` to enforce usage of `srcdir`, and asserts that the file is in fact inside a directory.
* build.zig: set root_src param to `null`
Supplying the header file as the root source here appears to cause a linker warning of the form:
```
LLD Link... warning(link): unexpected LLD stderr:
ld.lld: warning: {build_root}/zig-cache/o/{hash}/libraylib.a: archive member '{build_root}/zig-cache/o/{hash}/raylib.o' is neither ET_REL nor LLVM bitcode
```
Passing `null` instead fixes it.
|
|
* Add DrawCapsule & DrawCapsuleWires
* Add DrawCapsule & DrawCapsuleWires to example
Co-authored-by: Ian Band <[email protected]>
|
|
* Use RL_QUADS/RL_TRIANGLES for single-pixel drawing
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
* [rtextures] Fixed scaling down in ImageTextEx
Closes #2755
|
|
Probably useless but interesting for education. It generated a grayscale image directly from text data.
|
|
and make version check be only 150 not over 150
|
|
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fix for #2714
|
|
|
|
|
|
* removed glfwSetWindowPos on InitWindow
* removed execute permission from CMakeLists
|
|
|
|
* fix issue #2728
* updated gamecontrollerdb: fixes GLFW warning due to invalid entry
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zig `master` now enforces to use addIncludePath instead of addIncludeDir
|
|
|
|
|
|
|
|
|
|
- ADDED: `GetCodepointPrevious()`
- RENAMED: `GetCodepoint()` -> `GetCodepointNext()`, actually, reimplemented
- `GetCodepoint()` has been kept for the moment, for compatibility and also because implementation is different
- RENAMED: `TextCodepointsToUTF8()` to `LoadUTF8()`, simpler name and more aligned with raylib conventions (functions loading memory start with Load*()), parameters should be descriptive of functionailty.
- ADDED: `UnloadUTF8()`, aligned with `LoadUTF8()` to avoid allocators issues.
|
|
|