* Get the data that the buffer points to
* @return raw pointer to the buffer data
*/
- unsigned char* const GetBufferData()
+ unsigned char* GetBufferData()
{
DALI_ASSERT_DEBUG( mBuffer.size() > 0 );
return &mBuffer[0];
namespace Internal
{
-class ActorObserver;
+struct ActorObserver;
class Stage;
/**
class Actor;
class Stage;
-class ActorObserver;
+struct ActorObserver;
/**
* <h3>Multi-Touch Event Processing:</h3>
SendPropertiesToSceneObject();
}
-const unsigned int Material::GetMapU() const
+unsigned int Material::GetMapU() const
{
return mProperties.mMapU;
}
SendPropertiesToSceneObject();
}
-const unsigned int Material::GetMapV() const
+unsigned int Material::GetMapV() const
{
return mProperties.mMapV;
}
SendPropertiesToSceneObject();
}
-const unsigned int Material::GetDiffuseUVIndex() const
+unsigned int Material::GetDiffuseUVIndex() const
{
return mProperties.mDiffuseUVIndex;
}
SendPropertiesToSceneObject();
}
-const unsigned int Material::GetOpacityUVIndex() const
+unsigned int Material::GetOpacityUVIndex() const
{
return mProperties.mOpacityUVIndex;
}
SendPropertiesToSceneObject();
}
-const unsigned int Material::GetNormalUVIndex() const
+unsigned int Material::GetNormalUVIndex() const
{
return mProperties.mNormalUVIndex;
}
SendPropertiesToSceneObject();
}
-const bool Material::GetHasHeightMap() const
+bool Material::GetHasHeightMap() const
{
return mProperties.mHasHeightMap;
}
/**
* @copydoc Dali::Material::GetMapU
*/
- const unsigned int GetMapU() const;
+ unsigned int GetMapU() const;
/**
* @copydoc Dali::Material::SetMapV
/**
* @copydoc Dali::Material::GetMapV
*/
- const unsigned int GetMapV() const;
+ unsigned int GetMapV() const;
/**
* @copydoc Dali::Material::SetDiffuseUVIndex
/**
* @copydoc Dali::Material::GetDiffuseUVIndex
*/
- const unsigned int GetDiffuseUVIndex() const;
+ unsigned int GetDiffuseUVIndex() const;
/**
* @copydoc Dali::Material::SetOpacityUVIndex
/**
* @copydoc Dali::Material::GetOpacityUVIndex
*/
- const unsigned int GetOpacityUVIndex() const;
+ unsigned int GetOpacityUVIndex() const;
/**
* @copydoc Dali::Material::SetNormalUVIndex
/**
* @copydoc Dali::Material::GetNormalUVIndex
*/
- const unsigned int GetNormalUVIndex() const;
+ unsigned int GetNormalUVIndex() const;
/**
* @copydoc Dali::Material::SetHasHeightMap
/**
* @copydoc Dali::Material::GetHasHeightMap
*/
- const bool GetHasHeightMap() const;
+ bool GetHasHeightMap() const;
const MaterialProperties& GetProperties() const
{
/**
* Get the archive version number read from the archive
*/
- const unsigned int GetFileVersion() const
+ unsigned int GetFileVersion() const
{
return mFileVersion;
}
mCacheIndex = 0;
}
-const int CustomUniform::GetUniformLocation( Program& program, const char* name )
+int CustomUniform::GetUniformLocation( Program& program, const char* name )
{
if( 0 == mCacheIndex )
{
* @param program to use
* @param name of the uniform
*/
- const int GetUniformLocation( Program& program, const char* name );
+ int GetUniformLocation( Program& program, const char* name );
private: // Data
#endif
}
-const int Actor::GetNumberOfJoints() const
+int Actor::GetNumberOfJoints() const
{
#ifdef DYNAMICS_SUPPORT
return GetImplementation(*this).GetNumberOfJoints();
*
* @return The number of DynamicsJoint objects added to this actor
*/
- const int GetNumberOfJoints() const;
+ int GetNumberOfJoints() const;
/**
* @brief Get a joint by index.
// Given a parameter s (NOT x), return the Y value. Checks that the
// segment index is valid. For bezier splines, the last segment is
// only used to specify the end point, so is not valid.
-const float Spline::GetY(unsigned int segmentIndex, float s) const
+float Spline::GetY(unsigned int segmentIndex, float s) const
{
DALI_ASSERT_ALWAYS( segmentIndex+1 < mKnots.size() && segmentIndex < mKnots.size() && "segmentIndex out of bounds");
DALI_ASSERT_ALWAYS( mOutTangents.size() == mKnots.size() && "Spline not fully initialized" );
// Use de Casteljau subdivision to approximate the parameter required to find x
// on a Bezier spline
// note, atX is already determined to be >= P0_X, <P1_X
-const float Spline::ApproximateCubicBezierParameter (
+float Spline::ApproximateCubicBezierParameter (
float atX, float P0_X, float C0_X, float C1_X, float P1_X ) const
{
if (fabs(atX - P0_X) < GetRangedEpsilon(atX, P0_X) )
}
-const bool Spline::FindSegment(float x, /*out*/ int& segmentIndex) const
+bool Spline::FindSegment(float x, /*out*/ int& segmentIndex) const
{
bool found = false;
unsigned int index=0;
return found;
}
-const float Spline::GetYFromMonotonicX(float x) const
+float Spline::GetYFromMonotonicX(float x) const
{
int segmentIndex=0;
float yValue = 0.0f;
* @param[in] x The X
* @return the Y value
*/
- const float GetYFromMonotonicX(float x) const;
+ float GetYFromMonotonicX(float x) const;
/**
* @brief For a 2 dimensional curve (z=0), given a parameter 0.0 - 1.0, return the
* @param[in] parameter - the parameter to use in the parametric formula
* @return y value - the interpolated point's Y value
*/
- const float GetY(unsigned int segmentIndex, float parameter) const;
+ float GetY(unsigned int segmentIndex, float parameter) const;
private:
* @param[out] segmentIndex - the returned segment index
* @return True if the segment was found.
*/
- const bool FindSegment(float x, int& segmentIndex) const;
+ bool FindSegment(float x, int& segmentIndex) const;
/**
* @brief Given two knots and control points, interpolate to find the
* @param[in] P1_X the ending knot's X.
* @return the corresponding parameter.
*/
- const float ApproximateCubicBezierParameter (float atX, float P0_X, float C0_X, float C1_X, float P1_X ) const;
+ float ApproximateCubicBezierParameter (float atX, float P0_X, float C0_X, float C1_X, float P1_X ) const;
private:
std::vector<Vector3> mKnots; ///< The set of knot points
*
* @return the duration in seconds
*/
- const float GetDuration() const { return mDuration; }
+ float GetDuration() const { return mDuration; }
private:
std::string mEntityName; ///< The entity name
GetImplementation(*this).SetMapU(map);
}
-const unsigned int Material::GetMapU() const
+unsigned int Material::GetMapU() const
{
return GetImplementation(*this).GetMapU();
}
GetImplementation(*this).SetMapV(map);
}
-const unsigned int Material::GetMapV() const
+unsigned int Material::GetMapV() const
{
return GetImplementation(*this).GetMapV();
}
GetImplementation(*this).SetDiffuseUVIndex(index);
}
-const unsigned int Material::GetDiffuseUVIndex() const
+unsigned int Material::GetDiffuseUVIndex() const
{
return GetImplementation(*this).GetDiffuseUVIndex();
}
GetImplementation(*this).SetOpacityUVIndex(index);
}
-const unsigned int Material::GetOpacityUVIndex() const
+unsigned int Material::GetOpacityUVIndex() const
{
return GetImplementation(*this).GetOpacityUVIndex();
}
GetImplementation(*this).SetNormalUVIndex(index);
}
-const unsigned int Material::GetNormalUVIndex() const
+unsigned int Material::GetNormalUVIndex() const
{
return GetImplementation(*this).GetNormalUVIndex();
}
GetImplementation(*this).SetHasHeightMap(flag);
}
-const bool Material::GetHasHeightMap() const
+bool Material::GetHasHeightMap() const
{
return GetImplementation(*this).GetHasHeightMap();
}
*
* @return The mapping mode
*/
- const unsigned int GetMapU() const;
+ unsigned int GetMapU() const;
/**
* @brief Set the V mapping mode.
*
* @return The mapping mode
*/
- const unsigned int GetMapV() const;
+ unsigned int GetMapV() const;
/**
* @brief Set the index into the bound mesh's array of UV's for the diffuse texture coordinates.
*
* @return The uv index
*/
- const unsigned int GetDiffuseUVIndex() const;
+ unsigned int GetDiffuseUVIndex() const;
/**
* @brief Set the index into the bound mesh's array of UV's for the opacity texture coordinates.
*
* @return The uv index
*/
- const unsigned int GetOpacityUVIndex() const;
+ unsigned int GetOpacityUVIndex() const;
/**
* @brief Set the index into the bound mesh's array of UV's for the normal/height map texture coordinates.
*
* @return The uv index
*/
- const unsigned int GetNormalUVIndex() const;
+ unsigned int GetNormalUVIndex() const;
/**
* @brief Set whether the normal texture contains a normal or height map.
*
* @return true if the normal map contains a height map, false otherwise
*/
- const bool GetHasHeightMap() const;
+ bool GetHasHeightMap() const;
public: // Not intended for application developers
const uint64_t PARAMETER_MASK = ~( -1l << PARAMETER_BITS );
// Shift values for attribute indices
-const unsigned int COMMON_INDEX_SHIFT = 0u; // starts at bit 0
+const unsigned int COMMON_INDEX_SHIFT __attribute__((unused)) = 0u; // starts at bit 0
const unsigned int WEIGHT_INDEX_SHIFT = PARAMETER_BITS * 1; // starts at bit 3
const unsigned int ITALICS_INDEX_SHIFT = PARAMETER_BITS * 2; // starts at bit 6
const unsigned int UNDERLINE_INDEX_SHIFT = PARAMETER_BITS * 3; // starts at bit 9
const uint64_t GLOW_EXISTS = ONE << ( PARAMETER_FLAGS + 15 ); // bit 39
const uint64_t OUTLINE_EXISTS = ONE << ( PARAMETER_FLAGS + 16 ); // bit 40
const uint64_t GRADIENT_EXISTS = ONE << ( PARAMETER_FLAGS + 17 ); // bit 41
-const uint64_t ATTRIBUTE_END = GRADIENT_EXISTS;
const std::string DEFAULT_NAME;
const Dali::PointSize DEFAULT_FONT_POINT_SIZE( 0.f );