com.badlogic.gdx.graphics.g3d.decals
Class PluggableGroupStrategy

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.decals.PluggableGroupStrategy
All Implemented Interfaces:
GroupStrategy

public abstract class PluggableGroupStrategy
extends Object
implements GroupStrategy

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


Constructor Summary
PluggableGroupStrategy()
           
 
Method Summary
 void afterGroup(int group)
          Invoked directly after rendering of a group has completed
 void beforeGroup(int group, Array<Decal> contents)
          Invoked directly before rendering the contents of a group
 void 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.badlogic.gdx.graphics.g3d.decals.GroupStrategy
afterGroups, beforeGroups, decideGroup, getGroupShader
 

Constructor Detail

PluggableGroupStrategy

public PluggableGroupStrategy()
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 interface GroupStrategy
Parameters:
group - Group that will be rendered
contents - 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 interface GroupStrategy
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 use
group - 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


Copyright © 2014. All Rights Reserved.