From 2aa833a332000979d7e33df7a80aeb195c52affc Mon Sep 17 00:00:00 2001 From: fhntv24 Date: Sun, 8 Jun 2014 13:42:32 +0400 Subject: [PATCH 1/2] Only-rendering Object object , that just rendering , and not updating / inputing stuff. this.update(delta) here for updating transform , if you will not update it...heh , it will crash with null exception , when checking isModified(or how it called?) --- .../engine/components/GameRenderObject.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/com/base/engine/components/GameRenderObject.java diff --git a/src/com/base/engine/components/GameRenderObject.java b/src/com/base/engine/components/GameRenderObject.java new file mode 100644 index 0000000..d29238a --- /dev/null +++ b/src/com/base/engine/components/GameRenderObject.java @@ -0,0 +1,17 @@ +package com.base.engine.components; + +import com.base.engine.core.GameObject; +import com.base.engine.rendering.RenderingEngine; +import com.base.engine.rendering.Shader; + +public class GameRenderObject extends GameObject { + public GameRenderObject() + { + super(); + } + @Override + public void inputAll(float delta) { this.input(delta); } + + @Override + public void updateAll(float delta){ this.update(delta); } +} From 96630b6eb979637d84737155f22c0641088282bc Mon Sep 17 00:00:00 2001 From: fhntv24 Date: Sun, 8 Jun 2014 18:14:41 +0400 Subject: [PATCH 2/2] Update GameRenderObject.java More removing of Input&Update stuff.(Again , for big rendering chain , but without updating / inputing.) --- .../engine/components/GameRenderObject.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/com/base/engine/components/GameRenderObject.java b/src/com/base/engine/components/GameRenderObject.java index d29238a..bb26d49 100644 --- a/src/com/base/engine/components/GameRenderObject.java +++ b/src/com/base/engine/components/GameRenderObject.java @@ -7,11 +7,14 @@ public class GameRenderObject extends GameObject { public GameRenderObject() { - super(); - } - @Override - public void inputAll(float delta) { this.input(delta); } - - @Override - public void updateAll(float delta){ this.update(delta); } + super(); + } + @Override + public void inputAll(float delta) { this.getTransform().update(); } + @Override + public void updateAll(float delta) {} + @Override + public void input(float delta) {} + @Override + public void update(float delta) {} }