Class CameraGroupStrategy
java.lang.Object
gaiasky.render.gdx.g3d.decals.CameraGroupStrategy
- All Implemented Interfaces:
com.badlogic.gdx.graphics.g3d.decals.GroupStrategy, com.badlogic.gdx.utils.Disposable
public class CameraGroupStrategy
extends Object
implements com.badlogic.gdx.graphics.g3d.decals.GroupStrategy, com.badlogic.gdx.utils.Disposable
-
Constructor Summary
ConstructorsConstructorDescriptionCameraGroupStrategy(com.badlogic.gdx.graphics.Camera camera) CameraGroupStrategy(com.badlogic.gdx.graphics.Camera camera, Comparator<com.badlogic.gdx.graphics.g3d.decals.Decal> sorter) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterGroup(int group) voidvoidbeforeGroup(int group, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.decals.Decal> contents) voidintdecideGroup(com.badlogic.gdx.graphics.g3d.decals.Decal decal) voiddispose()com.badlogic.gdx.graphics.Cameracom.badlogic.gdx.graphics.glutils.ShaderProgramgetGroupShader(int group) voidsetCamera(com.badlogic.gdx.graphics.Camera camera)
-
Constructor Details
-
CameraGroupStrategy
public CameraGroupStrategy(com.badlogic.gdx.graphics.Camera camera) -
CameraGroupStrategy
public CameraGroupStrategy(com.badlogic.gdx.graphics.Camera camera, Comparator<com.badlogic.gdx.graphics.g3d.decals.Decal> sorter)
-
-
Method Details
-
getCamera
public com.badlogic.gdx.graphics.Camera getCamera() -
setCamera
public void setCamera(com.badlogic.gdx.graphics.Camera camera) -
decideGroup
public int decideGroup(com.badlogic.gdx.graphics.g3d.decals.Decal decal) - Specified by:
decideGroupin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
beforeGroup
public void beforeGroup(int group, com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g3d.decals.Decal> contents) - Specified by:
beforeGroupin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
afterGroup
public void afterGroup(int group) - Specified by:
afterGroupin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
beforeGroups
public void beforeGroups()- Specified by:
beforeGroupsin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
afterGroups
public void afterGroups()- Specified by:
afterGroupsin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
getGroupShader
public com.badlogic.gdx.graphics.glutils.ShaderProgram getGroupShader(int group) - Specified by:
getGroupShaderin interfacecom.badlogic.gdx.graphics.g3d.decals.GroupStrategy
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-