Crate fastnoise2_sys

Source
Expand description

§fastnoise2-sys

fastnoise2-sys provides unsafe Rust bindings for FastNoise2, a C++ library for modular node graph-based noise generation with SIMD. For a higher-level, mostly safe API, consider using fastnoise2.

These bindings are automatically generated using bindgen.

§Setup

fastnoise2-sys, the underlying bindings for fastnoise2, uses a build script that follows a specific order of preference for compiling and/or linking the FastNoise2 library:

  1. Building from source, if the build-from-source feature is enabled.
  2. If the FASTNOISE2_LIB_DIR environment variable is set to /path/to/lib/, that path will be searched for static FastNoise library.
  3. If not set, it falls back to building from source.

§Building from Source

To build FastNoise2 from source using fastnoise2-sys, ensure you have:

§Notes

  • If you prefer not to build from source, precompiled binaries are available for download from the FastNoise2 Releases.
  • The FASTNOISE2_SOURCE_DIR environment variable is generally not needed as fastnoise2-sys includes the FastNoise2 source code as a Git submodule. If you need to use a different source directory, set FASTNOISE2_SOURCE_DIR to point to the root of the FastNoise2 source code.

Functions§

fnDeleteNodeRef
fnGenPositionArray2D
fnGenPositionArray3D
fnGenPositionArray4D
fnGenSingle2D
fnGenSingle3D
fnGenSingle4D
fnGenTileable2D
fnGenUniformGrid2D
fnGenUniformGrid3D
fnGenUniformGrid4D
fnGetMetadataCount
fnGetMetadataEnumCount
fnGetMetadataEnumName
fnGetMetadataHybridCount
fnGetMetadataHybridDimensionIdx
fnGetMetadataHybridName
fnGetMetadataID
fnGetMetadataName
fnGetMetadataNodeLookupCount
fnGetMetadataNodeLookupDimensionIdx
fnGetMetadataNodeLookupName
fnGetMetadataVariableCount
fnGetMetadataVariableDimensionIdx
fnGetMetadataVariableName
fnGetMetadataVariableType
fnGetSIMDLevel
fnNewFromEncodedNodeTree
fnNewFromMetadata
fnSetHybridFloat
fnSetHybridNodeLookup
fnSetNodeLookup
fnSetVariableFloat
fnSetVariableIntEnum