Exemplo n.º 1
0
 public void run() {
   listener.acceptBundle(new Date(), bundle);
   for (OSCPacket packet : bundle.getPackets()) {
     OSCMessage message = (OSCMessage) packet;
     listener.acceptMessage(new Date(), message);
   }
 }
Exemplo n.º 2
0
  public DrawView(Context context, OSCPortIn receiver, Stitch stitch) {
    super(context);

    // Create an OpenGL ES 2.0 context.
    setEGLContextClientVersion(2);

    // Set the Renderer for drawing on the GLSurfaceView

    mRenderer = new DrawViewRenderer();
    setRenderer(mRenderer);

    // Render the view only when there is a change in the drawing data
    setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);

    drawModel = new DrawModel(this);
    drawController = new DrawController(drawModel);

    this.receiver = receiver;

    uploadListener = new UploadListener(this);
    receiver.addListener(uploadListener.getAddress(), uploadListener);
    // drawController.startController();

    this.stitch = stitch;
  }