Android Open Source - block-composer Camera From Project Back to project page block-composer .
License The source code is released under:
MIT License
If you think the Android project block-composer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package bwr.blockcomposer;
/ * f r o m w w w . j a v a 2 s . c o m * /
import javax.microedition.khronos.opengles.GL10;
import bwr.blockcomposer.types.FloatValue;
import bwr.blockcomposer.types.FloatValueVector3;
import android.opengl.GLU;
public class Camera {
public final FloatValueVector3 eye = new FloatValueVector3(0f, 0f, 0f);
public final FloatValueVector3 center = new FloatValueVector3(0f, 0f, 0f);
public final FloatValueVector3 up = new FloatValueVector3(0f, 1f, 0f);
public final FloatValue zoom = new FloatValue(1.0f);
public void update(long dt) {
eye.update(dt);
center.update(dt);
up.update(dt);
zoom.update(dt);
}
public void translateView(GL10 gl) {
GLU.gluLookAt(gl, eye.getX(), eye.getY(), eye.getZ(), center.getX(), center.getY(), center.getZ(), up.getX(), up.getY(), up.getZ());
}
public void zoom(GL10 gl, float zoom) {
}
}
Java Source Code List bwr.blockcomposer.AnimationFinishedListener.java bwr.blockcomposer.BlockComposerActivity.java bwr.blockcomposer.BlockComposerRenderer.java bwr.blockcomposer.BlockComposer.java bwr.blockcomposer.Camera.java bwr.blockcomposer.GameResources.java bwr.blockcomposer.OnUpdateAction.java bwr.blockcomposer.gamedata.Block.java bwr.blockcomposer.gamedata.GameEntity.java bwr.blockcomposer.gamedata.GameState.java bwr.blockcomposer.gamedata.LevelDimensions.java bwr.blockcomposer.gamedata.LevelMask.java bwr.blockcomposer.gamedata.LevelMetadata.java bwr.blockcomposer.gamedata.LevelStore.java bwr.blockcomposer.gamedata.Level.java bwr.blockcomposer.gamedata.Move.java bwr.blockcomposer.gamedata.StaticLevelStore.java bwr.blockcomposer.gamedata.UserLevelStore.java bwr.blockcomposer.misc.GLUtility.java bwr.blockcomposer.misc.Timer.java bwr.blockcomposer.models.AxisRenderer.java bwr.blockcomposer.models.Model.java bwr.blockcomposer.models.SelectBoxRenderer.java bwr.blockcomposer.modes.EditMode.java bwr.blockcomposer.modes.GameDialogMode.java bwr.blockcomposer.modes.GameMode.java bwr.blockcomposer.modes.LevelImportMode.java bwr.blockcomposer.modes.LevelSelectMode.java bwr.blockcomposer.modes.LogoDisplayMode.java bwr.blockcomposer.modes.ModeController.java bwr.blockcomposer.modes.Mode.java bwr.blockcomposer.modes.OverlayMode.java bwr.blockcomposer.types.FlipRotateFloat.java bwr.blockcomposer.types.FloatValueVector3.java bwr.blockcomposer.types.FloatValue.java bwr.blockcomposer.types.IntVector.java bwr.blockcomposer.types.RotatingFloat.java bwr.blockcomposer.ui.TextRenderer.java bwr.blockcomposer.ui.UIElementPicture.java bwr.blockcomposer.ui.UIElementText.java bwr.blockcomposer.ui.UIElement.java