package gameEngine.scenes; import gameEngine.entites.Entity; import gameEngine.entites.GameObject; import gameEngine.entites.gameComponents.ColorController; import gameEngine.entites.gameComponents.Mesh; import java.util.HashMap; import static org.lwjgl.opengl.GL11.glClearColor; public class EditorScene extends Scene { public EditorScene(){ System.out.println("Active Editor scene"); glClearColor(1, 1, 1, 0); /*//GameObjectの追加 addNewObject(); GameObject g0 = (GameObject) getEntity("0"); g0.addComponent(new ColorController()); g0.setName("ColorController");*/ } public EditorScene(HashMap<String, Entity> entities){ this.entities = entities; System.out.println("Active Editor scene"); glClearColor(1, 1, 1, 0); } @Override public void update(float dt) { changeScene(1, dt); //Gameシーンへの以降処理 } }