namespace
{
-TypeRegistration mType( typeid( Dali::FrameBufferImage ), typeid( Dali::Image ), NULL );
-
const int RenderBufferFormatToFrameBufferAttachments[] = { Dali::FrameBuffer::Attachment::NONE,
Dali::FrameBuffer::Attachment::DEPTH,
Dali::FrameBuffer::Attachment::STENCIL,
FrameBufferImagePtr image = new FrameBufferImage( width, height );
image->Initialize();
- image->mTexture = NewTexture::New( Dali::TextureType::TEXTURE_2D, pixelFormat, width, height );
+ image->mTexture = Texture::New( Dali::TextureType::TEXTURE_2D, pixelFormat, width, height );
image->mFrameBufferObject = FrameBuffer::New( width, height, RenderBufferFormatToFrameBufferAttachments[bufferformat] );
image->mFrameBufferObject->AttachColorTexture( image->mTexture, 0u, 0u );
FrameBufferImagePtr image = new FrameBufferImage( nativeImage );
image->Initialize();
- image->mTexture = NewTexture::New( nativeImage );
+ image->mTexture = Texture::New( nativeImage );
image->mFrameBufferObject = FrameBuffer::New( image->mTexture->GetWidth(), image->mTexture->GetHeight(), Dali::FrameBuffer::Attachment::NONE );
image->mFrameBufferObject->AttachColorTexture( image->mTexture, 0u, 0u );