// Path: openCVTutorial1CameraPreview/src/main/java/aruco/min3d/Shared.java
// public class Shared 
// {
// 	private static Context _context;
// 	private static MyRenderer _renderer;
// 	private static TextureManager _textureManager;
// 
// 	
// 	public static Context context()
// 	{
// 		return _context;
// 	}
// 	public static void context(Context $c)
// 	{
// 		_context = $c;
// 	}
// 
// 	public static MyRenderer renderer()
// 	{
// 		return _renderer;
// 	}
// 	public static void renderer(MyRenderer $r)
// 	{
// 		_renderer = $r;
// 	}
// 	
// 	/**
// 	 * You must access the TextureManager instance through this accessor
// 	 */
// 	public static TextureManager textureManager()
// 	{
// 		return _textureManager;
// 	}
// 	public static void textureManager(TextureManager $bm)
// 	{
// 		_textureManager = $bm;
// 	}
// }


import javax.microedition.khronos.opengles.GL;
import min3d.interfaces.ISceneController;
import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.os.Handler;
import aruco.min3d.Shared;
package min3d.core;



/**
 * Extend this class when creating your min3d-based Activity. 
 * Then, override initScene() and updateScene() for your main
 * 3D logic.
 * 
 * Override onCreateSetContentView() to change layout, if desired.
 * 
 * To update 3d scene-related variables from within the the main UI thread,  
 * override onUpdateScene() and onUpdateScene() as needed.
 */
public abstract class RendererActivity extends Activity implements ISceneController
{
	public Scene scene;
	protected GLSurfaceView _glSurfaceView;
	
	protected Handler _initSceneHander;
	protected Handler _updateSceneHander;
	
    private boolean _renderContinuously;
    
    
	final Runnable _initSceneRunnable = new Runnable() 
	{
        public void run() {
            onInitScene();
        }
    };
    
	final Runnable _updateSceneRunnable = new Runnable() 
    {
        public void run() {
            onUpdateScene();
        }
    };
    

    @Override
	protected void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);

		_initSceneHander = new Handler();
		_updateSceneHander = new Handler();
		
		//
		// These 4 lines are important.
		//
// Path: openCVTutorial1CameraPreview/src/main/java/aruco/min3d/Shared.java
// public class Shared 
// {
// 	private static Context _context;
// 	private static MyRenderer _renderer;
// 	private static TextureManager _textureManager;
// 
// 	
// 	public static Context context()
// 	{
// 		return _context;
// 	}
// 	public static void context(Context $c)
// 	{
// 		_context = $c;
// 	}
// 
// 	public static MyRenderer renderer()
// 	{
// 		return _renderer;
// 	}
// 	public static void renderer(MyRenderer $r)
// 	{
// 		_renderer = $r;
// 	}
// 	
// 	/**
// 	 * You must access the TextureManager instance through this accessor
// 	 */
// 	public static TextureManager textureManager()
// 	{
// 		return _textureManager;
// 	}
// 	public static void textureManager(TextureManager $bm)
// 	{
// 		_textureManager = $bm;
// 	}
// }


// Path: openCVTutorial1CameraPreview/src/main/java/min3d/core/RendererActivity.java
import javax.microedition.khronos.opengles.GL;
import min3d.interfaces.ISceneController;
import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.os.Handler;
import aruco.min3d.Shared;

package min3d.core;



/**
 * Extend this class when creating your min3d-based Activity. 
 * Then, override initScene() and updateScene() for your main
 * 3D logic.
 * 
 * Override onCreateSetContentView() to change layout, if desired.
 * 
 * To update 3d scene-related variables from within the the main UI thread,  
 * override onUpdateScene() and onUpdateScene() as needed.
 */
public abstract class RendererActivity extends Activity implements ISceneController
{
	public Scene scene;
	protected GLSurfaceView _glSurfaceView;
	
	protected Handler _initSceneHander;
	protected Handler _updateSceneHander;
	
    private boolean _renderContinuously;
    
    
	final Runnable _initSceneRunnable = new Runnable() 
	{
        public void run() {
            onInitScene();
        }
    };
    
	final Runnable _updateSceneRunnable = new Runnable() 
    {
        public void run() {
            onUpdateScene();
        }
    };
    

    @Override
	protected void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);

		_initSceneHander = new Handler();
		_updateSceneHander = new Handler();
		
		//
		// These 4 lines are important.
		//
		Shared.context(this);