Tango: Fullscreen mode

This commit is contained in:
matlabbe
2017-06-21 20:54:16 -04:00
parent 7a2d1c29f0
commit 3e7929bed6
3 changed files with 113 additions and 15 deletions
@@ -42,6 +42,7 @@ public class Renderer implements GLSurfaceView.Renderer {
private TextManager mTextManager = null;
private float mSurfaceHeight = 0.0f;
private float mTextColor = 1.0f;
private int mOffset = 0;
private Vector<TextObject> mTexts;
@@ -65,6 +66,11 @@ public class Renderer implements GLSurfaceView.Renderer {
{
mToast = toast;
}
public void setOffset(int offset)
{
mOffset = offset;
}
// Render loop of the Gl context.
public void onDrawFrame(GL10 useGLES20instead) {
@@ -94,7 +100,9 @@ public class Renderer implements GLSurfaceView.Renderer {
mTextManager.PrepareDraw(txtcollection);
}
mTextManager.Draw(mtrxProjectionAndView);
float[] mvp = new float[16];
Matrix.translateM(mvp, 0, mtrxProjectionAndView, 0, 0, mOffset, 0);
mTextManager.Draw(mvp);
}
if(value != 0 && mProgressDialog != null && mProgressDialog.isShowing())