public MainInterface(Activity mainActivity, float[][] camMatrix, float[] distortionCoefficients) {
   this.log = Messenger.getInstance();
   log.log(TAG, "Constructing framework.");
   this.mainActivity = mainActivity;
   this.listeners = new ArrayList<HomographyListener>();
   this.allTrackables = new ArrayList<Entity>();
   this.detectedTrackables = new ArrayList<Trackable>();
   // Set camera matrix:
   this.camMatrix = camMatrix;
   this.distCoef = distortionCoefficients;
 }
 /**
  * Constructor.
  *
  * @param mainInterface Pointer to MainInterface.
  */
 protected OpenGLRenderer(MainInterface mainInterface) {
   this.log = Messenger.getInstance();
   this.mainInterface = mainInterface;
   this.toRender = new ArrayList<Trackable>();
 }