Package com.prineside.tdi2.managers
Class RenderingManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.RenderingManager
- All Implemented Interfaces:
Disposable,Manager
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShaderProgramvoiddispose()Releases all resources of this object.voidintintintstatic booleanisAdditiveBatch(Batch batch) voidpostRender(float deltaTime) Вызывается после отрисовки и обновления экранаstatic <T extends Batch>
TprepareBatch(T batch, boolean additive) Prepare batch - set blending mode, call begin() if not drawing yet, set white colorvoidpreRender(float deltaTime) Вызывается перед любыми обновлениями и отрисовками экранов и системvoidstatic voidsetBatchAdditiveBlending(Batch batch, boolean additive) voidsetup()Вызывается, когда объекты всех менеджеров созданы и можно к ним обращатьсяvoidstartFBO(FrameBuffer buffer, String name) voidMethods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
test
-
Field Details
-
shapeRenderer
-
batch
-
modelBatch
-
-
Constructor Details
-
RenderingManager
public RenderingManager()
-
-
Method Details
-
setup
public void setup()Description copied from interface:ManagerВызывается, когда объекты всех менеджеров созданы и можно к ним обращаться- Specified by:
setupin interfaceManager- Overrides:
setupin classManager.ManagerAdapter
-
getMSAASampleCount
public int getMSAASampleCount() -
getCurrentRenderTargetWidth
public int getCurrentRenderTargetWidth() -
getCurrentRenderTargetHeight
public int getCurrentRenderTargetHeight() -
getCurrentFBO
-
startFBO
-
endFBO
-
preRender
public void preRender(float deltaTime) Description copied from interface:ManagerВызывается перед любыми обновлениями и отрисовками экранов и систем- Specified by:
preRenderin interfaceManager- Overrides:
preRenderin classManager.ManagerAdapter
-
postRender
public void postRender(float deltaTime) Description copied from interface:ManagerВызывается после отрисовки и обновления экрана- Specified by:
postRenderin interfaceManager- Overrides:
postRenderin classManager.ManagerAdapter
-
resetTransformState
public void resetTransformState() -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classManager.ManagerAdapter
-
setBatchAdditiveBlending
-
isAdditiveBatch
-
prepareBatch
Prepare batch - set blending mode, call begin() if not drawing yet, set white color -
stopAnyBatchDrawing
public void stopAnyBatchDrawing() -
createDefaultShader
-