Class PluggableGroupStrategy
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.decals.PluggableGroupStrategy
-
- All Implemented Interfaces:
GroupStrategy
public abstract class PluggableGroupStrategy extends java.lang.Object implements GroupStrategy
This class in combination with theGroupPlugs
allows you to build a modularGroupStrategy
out of routines you already implemented.
-
-
Constructor Summary
Constructors Constructor Description PluggableGroupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterGroup(int group)
Invoked directly after rendering of a group has completedvoid
beforeGroup(int group, Array<Decal> contents)
Invoked directly before rendering the contents of a groupvoid
plugIn(GroupPlug plug, int group)
Set the plug used for a specific group.GroupPlug
unPlug(int group)
Remove a plug from the strategy-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.badlogic.gdx.graphics.g3d.decals.GroupStrategy
afterGroups, beforeGroups, decideGroup, getGroupShader
-
-
-
-
Method Detail
-
beforeGroup
public void beforeGroup(int group, Array<Decal> contents)
Description copied from interface:GroupStrategy
Invoked directly before rendering the contents of a group- Specified by:
beforeGroup
in interfaceGroupStrategy
- Parameters:
group
- Group that will be renderedcontents
- Array of entries of arrays containing all the decals in the group
-
afterGroup
public void afterGroup(int group)
Description copied from interface:GroupStrategy
Invoked directly after rendering of a group has completed- Specified by:
afterGroup
in interfaceGroupStrategy
- Parameters:
group
- Group which completed rendering
-
plugIn
public void plugIn(GroupPlug plug, int group)
Set the plug used for a specific group. The plug will automatically be invoked.- Parameters:
plug
- Plug to usegroup
- Group the plug is for
-
unPlug
public GroupPlug unPlug(int group)
Remove a plug from the strategy- Parameters:
group
- Group to remove the plug from- Returns:
- removed plug, null if there was none for that group
-
-