Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public static final class ScenePresets.Preset

  1. Object
  2. ScenePresets.Preset
A light, environment, post chain and sky dome that belong together.

Methods

public Light getLight()The sun.
public Environment getEnvironment()The fog, sky light and tone mapping.
public PostProcess getPost()Bloom, grade, vignette and grain.
public ShaderMaterial getSky()A Sky.gradient dome material set to match.
public int getClearColor()The colour to clear to, the horizon’s, for scenes without a dome.
public void apply(GraphicsDevice device)Installs the light and the environment on a device.

Inherited methods

Method details

getLight

public Light getLight()
The sun.

Returns

the light

getEnvironment

public Environment getEnvironment()
The fog, sky light and tone mapping.

Returns

the environment

getPost

public PostProcess getPost()
Bloom, grade, vignette and grain.

Returns

the post chain

getSky

public ShaderMaterial getSky()
A Sky.gradient dome material set to match.

Returns

the sky shader

getClearColor

public int getClearColor()
The colour to clear to, the horizon’s, for scenes without a dome.

Returns

an ARGB colour

apply

public void apply(GraphicsDevice device)
Installs the light and the environment on a device.

Parameters

device GraphicsDevice
the device to draw with