Java Code Examples for android.opengl.GLSurfaceView#getRight()
The following examples show how to use
android.opengl.GLSurfaceView#getRight() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OBViewController.java From GLEXP-Team-onebillion with Apache License 2.0 | 4 votes |
public Rect bounds() { GLSurfaceView gls = MainActivity.mainViewController.glView(); return new Rect(0,0,gls.getRight(),gls.getBottom()); }
Example 2
Source File: OBViewController.java From GLEXP-Team-onebillion with Apache License 2.0 | 4 votes |
public RectF boundsf() { GLSurfaceView gls = MainActivity.mainViewController.glView(); return new RectF(0,0,gls.getRight(),gls.getBottom()); }
Example 3
Source File: OC_PlayZoneAsset.java From GLEXP-Team-onebillion with Apache License 2.0 | 4 votes |
public static int[] thumbnailSize() { GLSurfaceView gls = MainActivity.mainViewController.glView(); return new int[]{(int)(gls.getRight()*0.15),(int)(gls.getBottom()*0.15)}; }