Package com.tinycat.games

Examples of com.tinycat.games.MutatableColor


    manager.setKeySetting(PointBlockKeySetting.NEXT_GENETIC_CHILD, Keyboard.KEY_N);
    manager.setKeySetting(PointBlockKeySetting.BREED_GENETIC_CHILD, Keyboard.KEY_B);
  }

  public PointBlockComponent(final Game game) {
    chooser.add("backgroundColor", new MutatableColor());
    chooser.add("cubeColor", new MutatableColor());
    this.game = game;
  }
View Full Code Here


    }
  }

  @Override
  public void render() {
    final MutatableColor background = chooser.get("backgroundColor");
    glClearColor((float) background.getRed(), (float) background.getGreen(), (float) background.getBlue(), 0f);
    final MutatableColor cube = chooser.get("cubeColor");
    glColor3d(cube.getRed(), cube.getGreen(), cube.getBlue());
    glBegin(GL_POINTS);
    for (int x = -5; x < 5; x++) {
      for (int y = -5; y < 5; y++) {
        for (int z = -5; z < 5; z++) {
          glVertex3d(x, y, z);
View Full Code Here

TOP

Related Classes of com.tinycat.games.MutatableColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.