Giter Club home page Giter Club logo

extnoise's Introduction

ext-noise

Completely pure PHP extension containing Perlin Octaves Generator, Simplex Octaves Generator, Noise Map Generator, and Random class written in C++ from VanillaGenerator. This project is in the progress of being rewritten to be a standalone-generator extension, the source code for the new generator can be found here.

Building the sources for Windows

Prerequisite

You will have to install Microsoft Visual Code Studio in order to successfully compile the extension. The following VC++ versions are required to install PHP specific versions:

  • Visual C++ 14.0 (Visual Studio 2015) for PHP 7.0 or PHP 7.1.
  • Visual C++ 15.0 (Visual Studio 2017) for PHP 7.2, PHP 7.3 or PHP 7.4.
  • Visual C++ 16.0 (Visual Studio 2019) for PHP 8.0 and above.

Setup

In your .github folder, run install.ps1 script in a powershell console. The script will download all requires files to compile the extension. After this step, you will have to clone ext-chunkutils2 and ext-morton into C:\php\devel\include\ext folder. The folder generated by the scripts can be different for each PHP versions, (e.g: install-7.4.ps1 will install PHP 7.4 in C:\php_7.4).

After doing the steps above, you can finally execute build.ps1 or build-7.x.ps1 in the project root folder.

Your extension will be located in x64\Release_TS. Please ensure you have ext-noise extension enabled in your php.ini first.

Building the sources for Linux

It is highly recommended to build the source using our php-build-scripts since the project depends on ext-chunkutils2 and ext-morton.

Stubs

Project stubs for PHPStorm auto-completion can be found here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.