X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fcommon%2Finternal-constants.h;h=5ec85605c939227803eb7c9f466cf8885d9af76d;hb=100744f9f2b356c09ea16ea91e19ff3502d4b192;hp=951be29aec8489553782ec924bbcd3f30e135f80;hpb=df59eea2434495c32414fcf9ffafe4cb7dff5324;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/common/internal-constants.h b/dali/internal/common/internal-constants.h index 951be29..5ec8560 100644 --- a/dali/internal/common/internal-constants.h +++ b/dali/internal/common/internal-constants.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_CONSTANTS_H__ -#define __DALI_INTERNAL_CONSTANTS_H__ +#ifndef DALI_INTERNAL_CONSTANTS_H +#define DALI_INTERNAL_CONSTANTS_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -18,22 +18,16 @@ * */ -// INTERNAL INCLUDES -#include - namespace Dali { - namespace Internal { - // Constants used by renderers and actors to determine if something is visible. -extern const float FULLY_OPAQUE; ///< Alpha values must drop below this, before an object is considered to be transparent. -extern const float FULLY_TRANSPARENT; ///< Alpha values must rise above this, before an object is considered to be visible. +static constexpr float FULLY_OPAQUE(0.99f); ///< Alpha values must drop below this, before an object is considered to be transparent. +static constexpr float FULLY_TRANSPARENT(0.01f); ///< Alpha values must rise above this, before an object is considered to be visible. } // namespace Internal } // namespace Dali - -#endif // __DALI_INTERNAL_CONSTANTS_H__ +#endif // DALI_INTERNAL_CONSTANTS_H