Reply To: Building a Syphon Cinder block application in Eclipse CDT

Home Forums Syphon Syphon Implementations – User Building a Syphon Cinder block application in Eclipse CDT Reply To: Building a Syphon Cinder block application in Eclipse CDT

#4693
bangnoise
Keymaster

Heyhey, glad you seem to be getting there…

publishFrameTexture… does no scaling. imageRegion defines a sub-area of the texture to be published – useful if you are using a 2D texture with power-of-two dimensions beyond the size of your image. Internally Syphon draws your texture onto the shared surface, so any texture format is supported.

If you have a large texture you want to crop and warp, then either create an intermediate cropped-and-warped texture, and pass that to Syphon, or don’t use publishFrameTexture… at all, and instead -bindToDrawFrameOfSize: and -unbindAndPublish with code to scale/crop/warp and then draw your large texture between the calls.

The latter would be the fastest.

That make sense?

The current SVN has support two new features which might be of interest

1. The ability to indicate a preferred internal texture format, if you want to pass formats other than BGRA8 around. Support for this is working but not perfect.

2. The ability to inspect the current frame from the Server side, so you could use bindToDrawFrameOfSize: and then use the frame image elsewhere for your own drawing in the Server app, if that’s something you need to do.