Commit dc63a4c9a742005a90ac82cc2e979a94f48ef48e

Authored by Tom Robinson
1 parent e9c2b31a

FrameBuffer::Format changed to bit-mask Attachment: Demo

Change-Id: Ia6f1c7db32069f80bcaecd562dd487f65702ae22
examples/native-image-source/native-image-source-example.cpp
@@ -200,7 +200,9 @@ public: @@ -200,7 +200,9 @@ public:
200 200
201 // create a offscreen renderer task to render content into the native image source 201 // create a offscreen renderer task to render content into the native image source
202 Texture nativeTexture = Texture::New( *nativeImageSourcePtr ); 202 Texture nativeTexture = Texture::New( *nativeImageSourcePtr );
203 - FrameBuffer targetBuffer = FrameBuffer::New( nativeTexture.GetWidth(), nativeTexture.GetHeight(), FrameBuffer::COLOR ); 203 + // Create a FrameBuffer object with no default attachments.
  204 + FrameBuffer targetBuffer = FrameBuffer::New( nativeTexture.GetWidth(), nativeTexture.GetHeight(), FrameBuffer::Attachment::NONE );
  205 + // Add a color attachment to the FrameBuffer object.
204 targetBuffer.AttachColorTexture( nativeTexture ); 206 targetBuffer.AttachColorTexture( nativeTexture );
205 207
206 CameraActor cameraActor = CameraActor::New(imageSize); 208 CameraActor cameraActor = CameraActor::New(imageSize);