Merge "Remove uniform hash" into devel/master
[platform/core/uifw/dali-core.git] / dali / internal / common / internal-constants.h
index 951be29..5ec8560 100644 (file)
@@ -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.
  *
  */
 
-// INTERNAL INCLUDES
-#include <dali/public-api/common/constants.h>
-
 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