mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 09:47:46 +08:00
Tango: Fullscreen mode
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user