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 theGroupPlugsallows you to build a modularGroupStrategyout of routines you already implemented.
-
-
Constructor Summary
Constructors Constructor Description PluggableGroupStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterGroup(int group)Invoked directly after rendering of a group has completedvoidbeforeGroup(int group, Array<Decal> contents)Invoked directly before rendering the contents of a groupvoidplugIn(GroupPlug plug, int group)Set the plug used for a specific group.GroupPlugunPlug(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:GroupStrategyInvoked directly before rendering the contents of a group- Specified by:
beforeGroupin 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:GroupStrategyInvoked directly after rendering of a group has completed- Specified by:
afterGroupin 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
-
-