Merge branch 'master' of https://github.com/raysan5/raylib
This commit is contained in:
commit
51bc6ca834
7 changed files with 23 additions and 21 deletions
17
HISTORY.md
17
HISTORY.md
|
@ -471,3 +471,20 @@ Make sure to check raylib [CHANGELOG]([CHANGELOG](https://github.com/raysan5/ray
|
||||||
Undoubtedly, this is the **biggest raylib update in 10 years**. Many new features and improvements with a special focus on maintainability and long-term sustainability. **Undoubtedly, this is the raylib of the future**.
|
Undoubtedly, this is the **biggest raylib update in 10 years**. Many new features and improvements with a special focus on maintainability and long-term sustainability. **Undoubtedly, this is the raylib of the future**.
|
||||||
|
|
||||||
**Enjoy programming!** :)
|
**Enjoy programming!** :)
|
||||||
|
|
||||||
|
notes on raylib 5.5
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
It's been **1 year** since latest raylib release and **11 years** since raylib 1.0 was officially released...
|
||||||
|
|
||||||
|
Some numbers for this release:
|
||||||
|
|
||||||
|
- **+260** closed issues (for a TOTAL of **+1800**!)
|
||||||
|
- **+700** commits since previous RELEASE (for a TOTAL of **+7670**!)
|
||||||
|
- **+30** functions ADDED to raylib API (for a TOTAL of **580**!)
|
||||||
|
- **+110** functions REVIEWED with fixes and improvements
|
||||||
|
- **+135** new contributors (for a TOTAL of **+635**!)
|
||||||
|
|
||||||
|
Highlights for `raylib 5.5`:
|
||||||
|
|
||||||
|
TODO.
|
||||||
|
|
|
@ -2839,11 +2839,6 @@
|
||||||
"name": "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE",
|
"name": "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE",
|
||||||
"value": 4,
|
"value": 4,
|
||||||
"description": "Layout is defined by a 4x3 cross with cubemap faces"
|
"description": "Layout is defined by a 4x3 cross with cubemap faces"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "CUBEMAP_LAYOUT_PANORAMA",
|
|
||||||
"value": 5,
|
|
||||||
"description": "Layout is defined by a panorama image (equirrectangular map)"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -2839,11 +2839,6 @@ return {
|
||||||
name = "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE",
|
name = "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE",
|
||||||
value = 4,
|
value = 4,
|
||||||
description = "Layout is defined by a 4x3 cross with cubemap faces"
|
description = "Layout is defined by a 4x3 cross with cubemap faces"
|
||||||
},
|
|
||||||
{
|
|
||||||
name = "CUBEMAP_LAYOUT_PANORAMA",
|
|
||||||
value = 5,
|
|
||||||
description = "Layout is defined by a panorama image (equirrectangular map)"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -889,7 +889,7 @@ Enum 14: TextureWrap (4 values)
|
||||||
Value[TEXTURE_WRAP_CLAMP]: 1
|
Value[TEXTURE_WRAP_CLAMP]: 1
|
||||||
Value[TEXTURE_WRAP_MIRROR_REPEAT]: 2
|
Value[TEXTURE_WRAP_MIRROR_REPEAT]: 2
|
||||||
Value[TEXTURE_WRAP_MIRROR_CLAMP]: 3
|
Value[TEXTURE_WRAP_MIRROR_CLAMP]: 3
|
||||||
Enum 15: CubemapLayout (6 values)
|
Enum 15: CubemapLayout (5 values)
|
||||||
Name: CubemapLayout
|
Name: CubemapLayout
|
||||||
Description: Cubemap layouts
|
Description: Cubemap layouts
|
||||||
Value[CUBEMAP_LAYOUT_AUTO_DETECT]: 0
|
Value[CUBEMAP_LAYOUT_AUTO_DETECT]: 0
|
||||||
|
@ -897,7 +897,6 @@ Enum 15: CubemapLayout (6 values)
|
||||||
Value[CUBEMAP_LAYOUT_LINE_HORIZONTAL]: 2
|
Value[CUBEMAP_LAYOUT_LINE_HORIZONTAL]: 2
|
||||||
Value[CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR]: 3
|
Value[CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR]: 3
|
||||||
Value[CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE]: 4
|
Value[CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE]: 4
|
||||||
Value[CUBEMAP_LAYOUT_PANORAMA]: 5
|
|
||||||
Enum 16: FontType (3 values)
|
Enum 16: FontType (3 values)
|
||||||
Name: FontType
|
Name: FontType
|
||||||
Description: Font type, defines generation method
|
Description: Font type, defines generation method
|
||||||
|
|
|
@ -595,13 +595,12 @@
|
||||||
<Value name="TEXTURE_WRAP_MIRROR_REPEAT" integer="2" desc="Mirrors and repeats the texture in tiled mode" />
|
<Value name="TEXTURE_WRAP_MIRROR_REPEAT" integer="2" desc="Mirrors and repeats the texture in tiled mode" />
|
||||||
<Value name="TEXTURE_WRAP_MIRROR_CLAMP" integer="3" desc="Mirrors and clamps to border the texture in tiled mode" />
|
<Value name="TEXTURE_WRAP_MIRROR_CLAMP" integer="3" desc="Mirrors and clamps to border the texture in tiled mode" />
|
||||||
</Enum>
|
</Enum>
|
||||||
<Enum name="CubemapLayout" valueCount="6" desc="Cubemap layouts">
|
<Enum name="CubemapLayout" valueCount="5" desc="Cubemap layouts">
|
||||||
<Value name="CUBEMAP_LAYOUT_AUTO_DETECT" integer="0" desc="Automatically detect layout type" />
|
<Value name="CUBEMAP_LAYOUT_AUTO_DETECT" integer="0" desc="Automatically detect layout type" />
|
||||||
<Value name="CUBEMAP_LAYOUT_LINE_VERTICAL" integer="1" desc="Layout is defined by a vertical line with faces" />
|
<Value name="CUBEMAP_LAYOUT_LINE_VERTICAL" integer="1" desc="Layout is defined by a vertical line with faces" />
|
||||||
<Value name="CUBEMAP_LAYOUT_LINE_HORIZONTAL" integer="2" desc="Layout is defined by a horizontal line with faces" />
|
<Value name="CUBEMAP_LAYOUT_LINE_HORIZONTAL" integer="2" desc="Layout is defined by a horizontal line with faces" />
|
||||||
<Value name="CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR" integer="3" desc="Layout is defined by a 3x4 cross with cubemap faces" />
|
<Value name="CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR" integer="3" desc="Layout is defined by a 3x4 cross with cubemap faces" />
|
||||||
<Value name="CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE" integer="4" desc="Layout is defined by a 4x3 cross with cubemap faces" />
|
<Value name="CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE" integer="4" desc="Layout is defined by a 4x3 cross with cubemap faces" />
|
||||||
<Value name="CUBEMAP_LAYOUT_PANORAMA" integer="5" desc="Layout is defined by a panorama image (equirrectangular map)" />
|
|
||||||
</Enum>
|
</Enum>
|
||||||
<Enum name="FontType" valueCount="3" desc="Font type, defines generation method">
|
<Enum name="FontType" valueCount="3" desc="Font type, defines generation method">
|
||||||
<Value name="FONT_DEFAULT" integer="0" desc="Default font generation, anti-aliased" />
|
<Value name="FONT_DEFAULT" integer="0" desc="Default font generation, anti-aliased" />
|
||||||
|
|
|
@ -877,8 +877,7 @@ typedef enum {
|
||||||
CUBEMAP_LAYOUT_LINE_VERTICAL, // Layout is defined by a vertical line with faces
|
CUBEMAP_LAYOUT_LINE_VERTICAL, // Layout is defined by a vertical line with faces
|
||||||
CUBEMAP_LAYOUT_LINE_HORIZONTAL, // Layout is defined by a horizontal line with faces
|
CUBEMAP_LAYOUT_LINE_HORIZONTAL, // Layout is defined by a horizontal line with faces
|
||||||
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR, // Layout is defined by a 3x4 cross with cubemap faces
|
CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR, // Layout is defined by a 3x4 cross with cubemap faces
|
||||||
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE, // Layout is defined by a 4x3 cross with cubemap faces
|
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE // Layout is defined by a 4x3 cross with cubemap faces
|
||||||
CUBEMAP_LAYOUT_PANORAMA // Layout is defined by a panorama image (equirrectangular map)
|
|
||||||
} CubemapLayout;
|
} CubemapLayout;
|
||||||
|
|
||||||
// Font type, defines generation method
|
// Font type, defines generation method
|
||||||
|
|
|
@ -4100,7 +4100,6 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
{
|
{
|
||||||
if ((image.width/6) == image.height) { layout = CUBEMAP_LAYOUT_LINE_HORIZONTAL; cubemap.width = image.width/6; }
|
if ((image.width/6) == image.height) { layout = CUBEMAP_LAYOUT_LINE_HORIZONTAL; cubemap.width = image.width/6; }
|
||||||
else if ((image.width/4) == (image.height/3)) { layout = CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE; cubemap.width = image.width/4; }
|
else if ((image.width/4) == (image.height/3)) { layout = CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE; cubemap.width = image.width/4; }
|
||||||
else if (image.width >= (int)((float)image.height*1.85f)) { layout = CUBEMAP_LAYOUT_PANORAMA; cubemap.width = image.width/4; }
|
|
||||||
}
|
}
|
||||||
else if (image.height > image.width)
|
else if (image.height > image.width)
|
||||||
{
|
{
|
||||||
|
@ -4114,7 +4113,6 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
if (layout == CUBEMAP_LAYOUT_LINE_HORIZONTAL) cubemap.width = image.width/6;
|
if (layout == CUBEMAP_LAYOUT_LINE_HORIZONTAL) cubemap.width = image.width/6;
|
||||||
if (layout == CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR) cubemap.width = image.width/3;
|
if (layout == CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR) cubemap.width = image.width/3;
|
||||||
if (layout == CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE) cubemap.width = image.width/4;
|
if (layout == CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE) cubemap.width = image.width/4;
|
||||||
if (layout == CUBEMAP_LAYOUT_PANORAMA) cubemap.width = image.width/4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cubemap.height = cubemap.width;
|
cubemap.height = cubemap.width;
|
||||||
|
@ -4133,11 +4131,11 @@ TextureCubemap LoadTextureCubemap(Image image, int layout)
|
||||||
{
|
{
|
||||||
faces = ImageCopy(image); // Image data already follows expected convention
|
faces = ImageCopy(image); // Image data already follows expected convention
|
||||||
}
|
}
|
||||||
else if (layout == CUBEMAP_LAYOUT_PANORAMA)
|
/*else if (layout == CUBEMAP_LAYOUT_PANORAMA)
|
||||||
{
|
{
|
||||||
// TODO: Convert panorama image to square faces...
|
// TODO: implement panorama by converting image to square faces...
|
||||||
// Ref: https://github.com/denivip/panorama/blob/master/panorama.cpp
|
// Ref: https://github.com/denivip/panorama/blob/master/panorama.cpp
|
||||||
}
|
} */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (layout == CUBEMAP_LAYOUT_LINE_HORIZONTAL) for (int i = 0; i < 6; i++) faceRecs[i].x = (float)size*i;
|
if (layout == CUBEMAP_LAYOUT_LINE_HORIZONTAL) for (int i = 0; i < 6; i++) faceRecs[i].x = (float)size*i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue