Skip to content

j3d_renderer_create

Derme edited this page Apr 11, 2014 · 3 revisions

Creates a new renderer.

Syntax

Arguments:

  1. type - The type of renderer you want to create (see constants)

Constants:

  • RENDERER_CANVAS - Renders to a second canvas, allows for browsers that don't support WebGL
  • RENDERER_WEBGL - Renders with WebGL, this will give the best performance but requires the browser to support WebGL

Returns: Real

Example

renderer = j3d_renderer_create(RENDERER_WEBGL);

This will create a WebGL renderer and store it's id in the renderer variable.

Clone this wiki locally