X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fbitmap.cpp;h=373af9cca100f7aa255cc0b8151955ec463dcb41;hb=refs%2Fchanges%2F34%2F153534%2F4;hp=50c77c8cf97302e86f8608ee40ce200f10752e8f;hpb=24503c90b174b62a3d34e4d45366cb3b1d345105;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/bitmap.cpp b/dali/integration-api/bitmap.cpp index 50c77c8..373af9c 100644 --- a/dali/integration-api/bitmap.cpp +++ b/dali/integration-api/bitmap.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -408,6 +408,22 @@ void ConvertToGlFormat( Format pixelformat, unsigned& pixelDataType, unsigned& i break; } + // GLES 3.0 floating point formats. + case RGB16F: + { + DALI_LOG_INFO( Debug::Filter::gImage, Debug::Verbose, "Using GLES 3.0 GLES 3.0 floating point format.\n" ); + pixelDataType = GL_HALF_FLOAT; + internalFormat= GL_RGB; + break; + } + case RGB32F: + { + DALI_LOG_INFO( Debug::Filter::gImage, Debug::Verbose, "Using GLES 3.0 GLES 3.0 floating point format.\n" ); + pixelDataType = GL_FLOAT; + internalFormat= GL_RGB; + break; + } + case INVALID: { DALI_LOG_ERROR( "Invalid pixel format for bitmap\n" );