Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CaptureDevice + Starling #4

Open
napcat opened this issue Nov 13, 2012 · 2 comments
Open

CaptureDevice + Starling #4

napcat opened this issue Nov 13, 2012 · 2 comments

Comments

@napcat
Copy link

napcat commented Nov 13, 2012

Is it possible to combine Starling framework with this native extension?

I'm asking this because you use your own implementation of Stage3D to draw the webcam texture (GPUImage). Is there a simple way to implement this with Starling?

Thank you.

@CaptainN
Copy link

CaptureDevice just gives you a stream of ByteArray data that can be fed to a texture. I'm not sure how to wire that into Starling, but it certainly should be possible.

@CaptainN
Copy link

Looks like in Starling there is a Texture object, and that object has a uploadFromByteArray method on it:

http://forum.starling-framework.org/topic/upload-from-bytearray

Edit: Er, that may not be implemented yet... I'm not sure how you'd do that in Starling then (I don't use Starling, and just assumed there'd be a way to do it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants