APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.decals

public abstract Class PluggableGroupStrategy

extends Object
implements GroupStrategy
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.graphics.g3d.decals.GroupStrategy
Imports
com.badlogic.gdx.utils.Array, .IntMap

This class in combination with the GroupPlugs allows you to build a modular GroupStrategy out of routines you already implemented.

Field Summary

Modifier and TypeField and Description
private IntMap<GroupPlug>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterGroup(int group)

Implements com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.afterGroup.

Invoked directly after rendering of a group has completed

public void
beforeGroup(int group, Array<Decal> contents)

Implements com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.beforeGroup.

Invoked directly before rendering the contents of a group

public void
plugIn(GroupPlug
Plug to use
plug
,
int
Group the plug is for
group
)

Set the plug used for a specific group.

public GroupPlug

Returns:

removed plug, null if there was none for that group
unPlug
(int
Group to remove the plug from
group
)

Remove a plug from the strategy

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

plugsback to summary
private IntMap<GroupPlug> plugs

Constructor Detail

PluggableGroupStrategyback to summary
public PluggableGroupStrategy()

Method Detail

afterGroupback to summary
public void afterGroup(int group)

Implements com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.afterGroup.

Doc from com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.afterGroup.

Invoked directly after rendering of a group has completed

Annotations
@Override
beforeGroupback to summary
public void beforeGroup(int group, Array<Decal> contents)

Implements com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.beforeGroup.

Doc from com.badlogic.gdx.graphics.g3d.decals.GroupStrategy.beforeGroup.

Invoked directly before rendering the contents of a group

Annotations
@Override
plugInback to summary
public void plugIn(GroupPlug plug, int group)

Set the plug used for a specific group. The plug will automatically be invoked.

Parameters
plug:GroupPlug

Plug to use

group:int

Group the plug is for

unPlugback to summary
public GroupPlug unPlug(int group)

Remove a plug from the strategy

Parameters
group:int

Group to remove the plug from

Returns:GroupPlug

removed plug, null if there was none for that group