Skip to content

Move renderer-dependent SurfaceView to renderer's PGraphics #64

Closed

Description

@codeanticode

After merging #61, Android mode allows to use custom renderers, with the limitation that they have to be either a descendant of PGraphicsAndroid2D, PGraphicsOpenGL, PGraphics2D or PGraphics3D. The only reason for this limitation is the hard-coded SketchSurfaceView and SketchSurfaceViewGL classes, now inside PApplet. But as suggested in #49 (comment), one could move out the renderer-specific implementation of SurfaceView into the renderer's PGraphics, and obtain and instance in PApplet.onCreate() using a static factory method with the following signature PGraphics.createSurfaceView(parent, context, width, hight, clazz).

Activity

  1. self-assigned this
    on Aug 13, 2014
  2. kiwistrongis commented on Aug 28, 2014

    @kiwistrongis
    Contributor

    Let me know if you work on this, I'd be up for helping out ( and testing ).

  3. codeanticode commented on May 4, 2016

    @codeanticode
    ContributorAuthor

    This has been take care of in the mode4 branch https://github.com/processing/processing-android/tree/mode4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions