Download the PHP package jovian/venusian-ogx without Composer

On this page you can find all versions of the php package jovian/venusian-ogx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package venusian-ogx

jovian/venusian-opengl

The opengl graphics engine for Venusian Topside. OpenGL 4.1 core through CGL on the Mac, through ext-opengl. It hands out the four resources Graphics knows, on the GPU: framebuffers, a rasterizer, a raycaster and a painter.

Where it sits

Each resource is the engine's own version of a Graphics type: OpenGLFramebuffer is a GEFramebuffer, OpenGLRasterizer a GERasterizer, OpenGLRaycaster a GERaycaster, OpenGLGEPainter a GEPainter. Resources from one engine work only with each other.

Requirements

Install

The provider is discovered through extra.venusian.providers. It registers opengl with Graphics on the GPU backend when ext-opengl is loaded.

Usage

In an application, ask Graphics for it: Gfx::engine('opengl'). Standalone, make it yourself. Run as a script; printed values are its output (Apple M1 Pro):

What it does

Showing frames

On a stage that lends an NSView, attach() adds a child NSOpenGLView of the engine's, the stage's size, at full resolution, drawn by a context that shares the engine's textures. Showing a frame draws its texture into the view's back buffer and swaps; nothing comes back to the CPU. The stage paces showing. release() takes the view away. A stage that lends nothing is shown as pixels, through display().

Measured

Apple M1 Pro, ms, with no window; the timings end with a read, so unfinished GPU work counts.

OpenGL Metal Vulkan Velvet (C)
Kitchen sink shapes scene, 1100 × 360, a frame 0.40 0.40 0.43 1.20
The same, every frame resolved 0.48
Stroked wave, 1024 × 768, a call 0.76 0.78 0.80 3.68
A layer, added to a frame 0.08 0.025 0.06
Paint a raycast view, 1100 × 360 0.077 0.106 0.158
90 rays back to PHP (casts) 0.36–0.38 0.36 0.35–0.36

A layer costs one resolve blit of the sheet it is drawn in (0.048 ms of CPU whatever its size), since the frame reads it straight away.

Testing

Real GPU, no window. Each script takes the path to a venusian/topside checkout and uses its vendor/ and test helpers:

Runbook: .okf/runbooks/testing.md.

Security

See SECURITY.md.

License

MIT.


All versions of venusian-ogx with dependencies

PHP Build Version
Package Version
Requires php Version ~8.4.27||^8.5.12
ext-fb Version ^0.11.1
ext-opengl Version ^0.11.0
venusian-surface/contracts Version ^0.11.0
venusian-surface/drawing Version ^0.11.0
venusian-surface/framebuffers Version ^0.11.0
venusian-voyager/nuts-and-bolts Version ^0.11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jovian/venusian-ogx contains the following files

Loading the files please wait ...