1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Android: better logging, more GL work.

This commit is contained in:
jules 2012-02-23 17:34:46 +00:00
parent 06895cefe1
commit d2a4173ab4
10 changed files with 49 additions and 55 deletions

View file

@ -347,43 +347,26 @@ public final class JuceAppActivity extends Activity
OpenGLView (Context context)
{
super (context);
setEGLContextClientVersion (2);
getHolder().setFormat(PixelFormat.TRANSLUCENT);
setVisibility (VISIBLE);
setRenderer (this);
//setRenderMode (RENDERMODE_CONTINUOUSLY);
//requestRender();
}
@Override
public void onSurfaceCreated (GL10 unused, EGLConfig config)
{
// contextCreated();
}
@Override
public void onDrawFrame (GL10 unused)
{
//GLES20.glClearColor (1.0f, 0.5f, 0.0f, 1.0f);
//GLES20.glClear (GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
// render();
contextCreated();
}
@Override
public void onSurfaceChanged (GL10 unused, int width, int height)
{
//GLES20.glViewport (0, 0, width, height);
contextCreated();
}
@Override
protected void onLayout (boolean changed, int left, int top, int right, int bottom)
public void onDrawFrame (GL10 unused)
{
super.onLayout (changed, left, top, right, bottom);
requestLayout();
((ViewGroup) getParent()).requestTransparentRegion (this);
render();
}
private native void contextCreated();