Combine all GenImageXNoise functions into one function (GenImageNoise)
This commit is contained in:
parent
36bf4372b8
commit
5ad0fdbc05
4 changed files with 599 additions and 413 deletions
|
|
@ -15,7 +15,7 @@
|
|||
{
|
||||
"name": "RAYLIB_VERSION_MINOR",
|
||||
"type": "INT",
|
||||
"value": 5,
|
||||
"value": 6,
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
{
|
||||
"name": "RAYLIB_VERSION",
|
||||
"type": "STRING",
|
||||
"value": "4.5",
|
||||
"value": "4.6-dev",
|
||||
"description": ""
|
||||
},
|
||||
{
|
||||
|
|
@ -1032,6 +1032,11 @@
|
|||
"type": "Transform **",
|
||||
"name": "framePoses",
|
||||
"description": "Poses array by frame"
|
||||
},
|
||||
{
|
||||
"type": "char[32]",
|
||||
"name": "name",
|
||||
"description": "Animation name"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -2545,6 +2550,63 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "NoiseType",
|
||||
"description": "Noise types",
|
||||
"values": [
|
||||
{
|
||||
"name": "NOISE_VALUE",
|
||||
"value": 0,
|
||||
"description": "Value noise"
|
||||
},
|
||||
{
|
||||
"name": "NOISE_WHITE",
|
||||
"value": 1,
|
||||
"description": "White noise"
|
||||
},
|
||||
{
|
||||
"name": "NOISE_PERLIN",
|
||||
"value": 2,
|
||||
"description": "Perlin noise"
|
||||
},
|
||||
{
|
||||
"name": "NOISE_LAYERED_PERLIN",
|
||||
"value": 3,
|
||||
"description": "Layered perlin noise"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GradientType",
|
||||
"description": "Gradient types",
|
||||
"values": [
|
||||
{
|
||||
"name": "GRADIENT_COLOR",
|
||||
"value": 0,
|
||||
"description": "Color gradient"
|
||||
},
|
||||
{
|
||||
"name": "GRADIENT_LINEAR",
|
||||
"value": 1,
|
||||
"description": "Horizontal gradient"
|
||||
},
|
||||
{
|
||||
"name": "GRADIENT_RADIAL",
|
||||
"value": 2,
|
||||
"description": "Vertical gradient"
|
||||
},
|
||||
{
|
||||
"name": "GRADIENT_SQUARE",
|
||||
"value": 3,
|
||||
"description": "Square gradient"
|
||||
},
|
||||
{
|
||||
"name": "GRADIENT_CONICAL",
|
||||
"value": 4,
|
||||
"description": "Conical gradient"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PixelFormat",
|
||||
"description": "Pixel formats",
|
||||
|
|
@ -6340,10 +6402,14 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"name": "GenImageWhiteNoise",
|
||||
"description": "Generate image: white noise",
|
||||
"name": "GenImageNoise",
|
||||
"description": "Generate image: noise",
|
||||
"returnType": "Image",
|
||||
"params": [
|
||||
{
|
||||
"type": "NoiseType",
|
||||
"name": "type"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "width"
|
||||
|
|
@ -6353,35 +6419,8 @@
|
|||
"name": "height"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "factor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "GenImagePerlinNoise",
|
||||
"description": "Generate image: perlin noise",
|
||||
"returnType": "Image",
|
||||
"params": [
|
||||
{
|
||||
"type": "int",
|
||||
"name": "width"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "height"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "offsetX"
|
||||
},
|
||||
{
|
||||
"type": "int",
|
||||
"name": "offsetY"
|
||||
},
|
||||
{
|
||||
"type": "float",
|
||||
"name": "scale"
|
||||
"type": "...",
|
||||
"name": "args"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ return {
|
|||
{
|
||||
name = "RAYLIB_VERSION_MINOR",
|
||||
type = "INT",
|
||||
value = 5,
|
||||
value = 6,
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
|
|
@ -27,7 +27,7 @@ return {
|
|||
{
|
||||
name = "RAYLIB_VERSION",
|
||||
type = "STRING",
|
||||
value = "4.5",
|
||||
value = "4.6-dev",
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
|
|
@ -1032,6 +1032,11 @@ return {
|
|||
type = "Transform **",
|
||||
name = "framePoses",
|
||||
description = "Poses array by frame"
|
||||
},
|
||||
{
|
||||
type = "char[32]",
|
||||
name = "name",
|
||||
description = "Animation name"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -2545,6 +2550,63 @@ return {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "NoiseType",
|
||||
description = "Noise types",
|
||||
values = {
|
||||
{
|
||||
name = "NOISE_VALUE",
|
||||
value = 0,
|
||||
description = "Value noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_WHITE",
|
||||
value = 1,
|
||||
description = "White noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_PERLIN",
|
||||
value = 2,
|
||||
description = "Perlin noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_LAYERED_PERLIN",
|
||||
value = 3,
|
||||
description = "Layered perlin noise"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GradientType",
|
||||
description = "Gradient types",
|
||||
values = {
|
||||
{
|
||||
name = "GRADIENT_COLOR",
|
||||
value = 0,
|
||||
description = "Color gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_LINEAR",
|
||||
value = 1,
|
||||
description = "Horizontal gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_RADIAL",
|
||||
value = 2,
|
||||
description = "Vertical gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_SQUARE",
|
||||
value = 3,
|
||||
description = "Square gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_CONICAL",
|
||||
value = 4,
|
||||
description = "Conical gradient"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "PixelFormat",
|
||||
description = "Pixel formats",
|
||||
|
|
@ -5038,25 +5100,14 @@ return {
|
|||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageWhiteNoise",
|
||||
description = "Generate image: white noise",
|
||||
name = "GenImageNoise",
|
||||
description = "Generate image: noise",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "NoiseType", name = "type"},
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "float", name = "factor"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImagePerlinNoise",
|
||||
description = "Generate image: perlin noise",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "int", name = "offsetX"},
|
||||
{type = "int", name = "offsetY"},
|
||||
{type = "float", name = "scale"}
|
||||
{type = "...", name = "args"}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -3,9 +3,9 @@
|
|||
<Defines count="56">
|
||||
<Define name="RAYLIB_H" type="GUARD" value="" desc="" />
|
||||
<Define name="RAYLIB_VERSION_MAJOR" type="INT" value="4" desc="" />
|
||||
<Define name="RAYLIB_VERSION_MINOR" type="INT" value="5" desc="" />
|
||||
<Define name="RAYLIB_VERSION_MINOR" type="INT" value="6" desc="" />
|
||||
<Define name="RAYLIB_VERSION_PATCH" type="INT" value="0" desc="" />
|
||||
<Define name="RAYLIB_VERSION" type="STRING" value="4.5" desc="" />
|
||||
<Define name="RAYLIB_VERSION" type="STRING" value="4.6-dev" desc="" />
|
||||
<Define name="__declspec(x)" type="MACRO" value="__attribute__((x))" desc="" />
|
||||
<Define name="RLAPI" type="UNKNOWN" value="__declspec(dllexport)" desc="We are building the library as a Win32 shared library (.dll)" />
|
||||
<Define name="PI" type="FLOAT" value="3.14159265358979323846" desc="" />
|
||||
|
|
@ -210,11 +210,12 @@
|
|||
<Field type="BoneInfo *" name="bones" desc="Bones information (skeleton)" />
|
||||
<Field type="Transform *" name="bindPose" desc="Bones base transformation (pose)" />
|
||||
</Struct>
|
||||
<Struct name="ModelAnimation" fieldCount="4" desc="ModelAnimation">
|
||||
<Struct name="ModelAnimation" fieldCount="5" desc="ModelAnimation">
|
||||
<Field type="int" name="boneCount" desc="Number of bones" />
|
||||
<Field type="int" name="frameCount" desc="Number of animation frames" />
|
||||
<Field type="BoneInfo *" name="bones" desc="Bones information (skeleton)" />
|
||||
<Field type="Transform **" name="framePoses" desc="Poses array by frame" />
|
||||
<Field type="char[32]" name="name" desc="Animation name" />
|
||||
</Struct>
|
||||
<Struct name="Ray" fieldCount="2" desc="Ray, ray for raycasting">
|
||||
<Field type="Vector3" name="position" desc="Ray position (origin)" />
|
||||
|
|
@ -290,7 +291,7 @@
|
|||
<Alias type="RenderTexture2D" name="RenderTexture" desc="RenderTexture2D, same as RenderTexture" />
|
||||
<Alias type="Camera" name="Camera3D" desc="Camera type fallback, defaults to Camera3D" />
|
||||
</Aliases>
|
||||
<Enums count="21">
|
||||
<Enums count="23">
|
||||
<Enum name="ConfigFlags" valueCount="15" desc="System/Window config flags">
|
||||
<Value name="FLAG_VSYNC_HINT" integer="64" desc="Set to try enabling V-Sync on GPU" />
|
||||
<Value name="FLAG_FULLSCREEN_MODE" integer="2" desc="Set to run program in fullscreen" />
|
||||
|
|
@ -538,6 +539,19 @@
|
|||
<Value name="SHADER_ATTRIB_VEC3" integer="2" desc="Shader attribute type: vec3 (3 float)" />
|
||||
<Value name="SHADER_ATTRIB_VEC4" integer="3" desc="Shader attribute type: vec4 (4 float)" />
|
||||
</Enum>
|
||||
<Enum name="NoiseType" valueCount="4" desc="Noise types">
|
||||
<Value name="NOISE_VALUE" integer="0" desc="Value noise" />
|
||||
<Value name="NOISE_WHITE" integer="1" desc="White noise" />
|
||||
<Value name="NOISE_PERLIN" integer="2" desc="Perlin noise" />
|
||||
<Value name="NOISE_LAYERED_PERLIN" integer="3" desc="Layered perlin noise" />
|
||||
</Enum>
|
||||
<Enum name="GradientType" valueCount="5" desc="Gradient types">
|
||||
<Value name="GRADIENT_COLOR" integer="0" desc="Color gradient" />
|
||||
<Value name="GRADIENT_LINEAR" integer="1" desc="Horizontal gradient" />
|
||||
<Value name="GRADIENT_RADIAL" integer="2" desc="Vertical gradient" />
|
||||
<Value name="GRADIENT_SQUARE" integer="3" desc="Square gradient" />
|
||||
<Value name="GRADIENT_CONICAL" integer="4" desc="Conical gradient" />
|
||||
</Enum>
|
||||
<Enum name="PixelFormat" valueCount="21" desc="Pixel formats">
|
||||
<Value name="PIXELFORMAT_UNCOMPRESSED_GRAYSCALE" integer="1" desc="8 bit per pixel (no alpha)" />
|
||||
<Value name="PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA" integer="2" desc="8*2 bpp (2 channels)" />
|
||||
|
|
@ -655,7 +669,7 @@
|
|||
<Param type="unsigned int" name="frames" desc="" />
|
||||
</Callback>
|
||||
</Callbacks>
|
||||
<Functions count="517">
|
||||
<Functions count="516">
|
||||
<Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context">
|
||||
<Param type="int" name="width" desc="" />
|
||||
<Param type="int" name="height" desc="" />
|
||||
|
|
@ -1575,17 +1589,11 @@
|
|||
<Param type="Color" name="col1" desc="" />
|
||||
<Param type="Color" name="col2" desc="" />
|
||||
</Function>
|
||||
<Function name="GenImageWhiteNoise" retType="Image" paramCount="3" desc="Generate image: white noise">
|
||||
<Function name="GenImageNoise" retType="Image" paramCount="4" desc="Generate image: noise">
|
||||
<Param type="NoiseType" name="type" desc="" />
|
||||
<Param type="int" name="width" desc="" />
|
||||
<Param type="int" name="height" desc="" />
|
||||
<Param type="float" name="factor" desc="" />
|
||||
</Function>
|
||||
<Function name="GenImagePerlinNoise" retType="Image" paramCount="5" desc="Generate image: perlin noise">
|
||||
<Param type="int" name="width" desc="" />
|
||||
<Param type="int" name="height" desc="" />
|
||||
<Param type="int" name="offsetX" desc="" />
|
||||
<Param type="int" name="offsetY" desc="" />
|
||||
<Param type="float" name="scale" desc="" />
|
||||
<Param type="..." name="args" desc="" />
|
||||
</Function>
|
||||
<Function name="GenImageCellular" retType="Image" paramCount="3" desc="Generate image: cellular algorithm, bigger tileSize means bigger cells">
|
||||
<Param type="int" name="width" desc="" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue