summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
AgeCommit message (Collapse)Author
2021-09-22WARNING: MODULES RENAMING!!!Ray
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required. The renamed modules are: - `core` -> `rcore` - `shapes` -> `rshapes` - `textures` -> `rtextures` - `text` -> `rtext` - `models` -> `rmodels` - `camera` -> `rcamera` - `gestures` -> `rgestures` - `core` -> `rcore` All the build systems has been adapted to this change.
2021-09-01REVIEWED: Naming: length vs sizeRay
2021-09-01REVIEWED: <name>Count for consistencyRay
Following english rules, it should be singular name before Count.
2021-08-28Minor format tweaksraysan5
2021-08-27Review datesRay
2021-08-26Change GetColor to take unsigned int (#1954)Richard Smith
2021-08-24Fix tcc not finding emmintrin.h (#1947)Laurentino Luna
* Fix tcc not finding emmintrin.h This allows to compile raylib with tcc with no errors. * Remove __TINYC__ check from stb_image.h This will be placed under textures.c * Move tcc check to textures.c Avoiding to change stb_image.h
2021-08-16Remove trailing spacesRay
2021-07-29WARNING: BREAKING CHANGE: rlgl complete decoupling from raylib -WIP-raysan5
rlgl has been redesigned to avoid any dependency to `raylib` or `raymath`, all functions using some of those libs have been reviewed. - REMOVED: `Texture2D`, `Shader` structs dependency - REMOVED: `Vector3`, `Matrix` structs dependency - REMOVED: raymath functions dependency, all required math is implemented in rlgl - ADDED: `rlMatrix` custom rlgl type - ADDED: `utils.c`: `rlMatrixFromMatrix()` and `rlMatrixToMatrix()` for a safe conversion between raylib<->rlgl matrix types - ADDED: `rl` prefix to all `rlgl` structs - Other small tweaks here and there
2021-07-28REVIEWED: Info on image loading failureraysan5
2021-07-23Reviewed ImageDrawLine() formatingRay
2021-07-23Fixes #1873 Implemented remaining 7/8 of ImageDrawLine (#1874)Alexander Buhl
* Implemented remaining 7/8 of ImageDrawLine The existing code was correct for one octant, it now works for all 8 Added two internal functions, _ImageDrawLineHorizontal and _ImageDrawLineVertical, whithout which it would've been 4 times as much code. * ImageDrawLine: Replaced 3 functions with 1 Removed both freshly added internal functions Crammed it all into one * ImageDrawLine shortened significantly using maths Substituted X and Y, then wrote one abstract loop instead of 4 specific loops. Lots of comments to explain what I'm doing for future maintainers. * Now conforms with style conventions Also reworded a comment to sound more... fomal.
2021-06-30Remove trailing spacesraysan5
2021-06-28WARNING: BREAKING: Functions renamed for consistencyRay
RENAMED: GetTextureData() -> LoadImageFromTexture() RENAMED: GetScreenData() -> LoadImageFromScreen()
2021-06-26REVIEWED: Improved log info on image/textures laodingRay
ADDED: rlGetPixelFormatName()
2021-06-23WARNING: BREAKING: Functions renamed!Ray
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer. ADDED: UnloadCodepoints() to safely free loaded codepoints RENAMED: GetNextCodepoint() -> GetCodepoint()
2021-06-13Remove trail spacesRay
2021-06-10Review some commentsRay
2021-06-10Reviewed functions descriptionRay
Replaced: Returns -> Get
2021-06-05Minor format tweaksraysan5
2021-05-30Review config flags #1784Ray
2021-05-30Some code tweaksRay
2021-05-20Review ExportImage() to use SaveFileData() #1779Ray
2021-04-18Remove trailing spacesRay
2021-04-07Fix ImageClearBackground (#1711)Ergoold
- Dividing by height instead of width results in missing parts of the image.
2021-04-05Added security check to avoid internal render batch overflowraysan5
2021-04-04REDESIGNED: Shapes texture/rec moved to shapes moduleraysan5
2021-04-02REDESIGN: Move GenTexture*() functions to PBR example #721raysan5
Removed functions from rlgl module.
2021-04-01Remove trailing spacesraysan5
2021-03-28REVIEWED: DrawTexturePoly()raysan5
2021-03-25WARNING: BREAKING: rlgl redesign -WIP-Ray
rlgl module has been completely redesigned to move Mesh/Material structures to [models] module. Still some work to do, broken elements: - [models] OpenGL 1.1 mesh rendering: DrawMesh() - [models] Mesh Instancing: DrawMeshInstanced() - [models] Stereo rendering: DrawMesh() - [models] GL_FLOAT, GL_UNSIGNED_INT exposed - [models] GenMeshCustom() - [rlgl] GenTexture*() functions removal?
2021-03-25Add DrawTexturedPoly and example (#1677)chriscamacho
* adds DrawTexturedPoly with example * the actual example ... ahem * moved DrawTexturePoly to textures function and example NB function name changed to fit with other DrawTextureXXX functions (no "d" ) Co-authored-by: codifies <[email protected]>
2021-03-24Update textures.cRay
2021-03-23Fix 90 degree bug with DrawTexturePro and DrawRectanglePro (#1673)Chris
- The vertices did not map to where I expected causing rotation to be off by 90 degrees. I reorganized the vertices making it easier to reason about which fixes this. - The order for drawing is now topLeft, bottomLeft, bottomRight, topRight.
2021-03-22WARNING: BREAKING: REDESIGNED: rlgl moduleRay
- Many functions renamed to follow rl*() convention - Some internal functions exposed in the API - Some functionality moved to other modules - Reorganized all functions by categories - Make sure it keeps working with OpenGL 1.1 and 2.1
2021-03-19Removed trailing spacesRay
2021-03-19Reviewed latest PR: formatting and some commentsRay
2021-03-19Optimize DrawTexturePro and DrawRectanglePro transformations (#1632)Chris
* Optimize DrawTexturePro and DrawRectanglePro transformations - Add check so rotation is only applied if rotation != 0.0f. - Replace matrix usage by calculating the vertex data directly. * Fix error with windows build and trim whitespace
2021-03-19WARNING: BREAKING: REVIEWED some enums namingRay
Now enum names are more consistent between them.
2021-03-17Update textures.cRay
2021-03-14WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistencyRay
Some enums values have been renamed to be more consistent and also provide a more detailed description: - ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION - ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2 - MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO - PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-04ADDED: Config flag: SUPPORT_STANDARD_FILEIORay
This new flag allows omitting stdio.h library in case of a custom implementation is used.
2021-03-03Corrected issue with enums renamedRay
2021-03-03WARNING: BREAKING: RENAMED: enums valuesRay
RENAMED: TextureFilterMode values RENAMED: TextureWrapMode values
2021-03-03WARNING: BREAKING: RENAMED enum valuesRay
RENAMED: CubemapLayoutType and NPatchType
2021-03-02REVIEWED: GetFileExtension() to include the dot #1523Ray
2021-01-02Update year to 2021raysan5
2020-12-29Review code formattingraysan5
2020-12-29Faster version of ImageClearBackground and ImageDrawRectangleRec (#1487)Jeffery Myers
* Don't use DrawRect to clear an image, a pixel loop is an order of magnitude faster. * Update ImageDrawRectangle to be faster too.
2020-12-23Remove trailing spacesraysan5