#include <dali-test-suite-utils.h>
using namespace Dali;
-using namespace std;
void utc_dali_gesture_detector_startup(void)
{
#include <dali-test-suite-utils.h>
using namespace Dali;
-using namespace std;
void renderable_actor_startup(void)
{
#include <dali-test-suite-utils.h>
using namespace Dali;
-using namespace std;
void stage_test_startup(void)
{
#include <dali/internal/event/common/stage-impl.h>
#include <dali/internal/update/node-attachments/scene-graph-camera-attachment.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/event/common/stage-impl.h>
#include <dali/public-api/common/dali-common.h>
-using namespace std;
-
-namespace
-{
-static Dali::Internal::SceneGraph::ImageAttachment::PixelArea EMPTY_PIXEL_AREA(0,0,0,0);
-}
-
namespace Dali
{
ImageAttachment::ImageAttachment( Stage& stage )
: RenderableAttachment(stage),
mSceneObject(NULL),
- mPixelArea(EMPTY_PIXEL_AREA),
+ mPixelArea(0,0,0,0),
mStyle(Dali::ImageActor::STYLE_QUAD),
mBorder(0.45,0.45,0.1,0.1),
mIsPixelAreaSet(false),
#include <dali/internal/event/common/stage-impl.h>
#include <dali/internal/update/nodes/node.h>
-using namespace std;
-
using Dali::Internal::MeshIPtr;
using Dali::Internal::MaterialIPtr;
using Dali::Internal::SceneGraph::AnimatableProperty;
using Dali::Internal::SceneGraph::PropertyBase;
-using namespace std;
-
namespace Dali
{
#include <dali/internal/event/effects/shader-effect-impl.h>
#include <dali/internal/event/common/thread-local-storage.h>
-using namespace std;
-
using Dali::Internal::SceneGraph::UpdateManager;
using Dali::Internal::SceneGraph::AnimatorBase;
using Dali::Internal::SceneGraph::Shader;
void Animation::Resize(Actor& actor, float width, float height, AlphaFunction alpha, float delaySeconds, float durationSeconds)
{
- Vector3 targetSize( width, height, min(width, height) );
+ Vector3 targetSize( width, height, std::min(width, height) );
ExtendDuration( TimePeriod(delaySeconds, durationSeconds) );
#include <dali/internal/update/common/scene-graph-property-notification.h>
#include <dali/internal/event/common/thread-local-storage.h>
-using namespace std;
-
using Dali::Internal::SceneGraph::UpdateManager;
namespace Dali
#include <dali/integration-api/dynamics/dynamics-world-settings.h>
#endif
-using namespace std;
-using namespace boost;
-
using Dali::Internal::SceneGraph::Node;
namespace Dali
// INTERNAL INCLUDES
#include <dali/internal/event/modeling/mesh-impl.h>
-using namespace std;
-
namespace Dali
{
namespace Internal
#include <dali/internal/update/manager/update-manager.h>
#include <dali/internal/update/modeling/internal-mesh-data.h>
-using namespace std;
-
namespace Dali
{
namespace Internal
#include <dali/internal/event/animation/key-frames-impl.h>
#include <dali/internal/event/modeling/model-impl.h>
-using namespace std;
+using std::cout;
+using std::endl;
+using std::string;
namespace Dali
{
#include <dali/internal/event/resources/image-ticket.h>
#include <dali/public-api/images/image-attributes.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/event/resources/resource-ticket-observer.h>
#include <dali/internal/event/resources/resource-ticket-lifetime-observer.h>
-using namespace std;
-
namespace // unnamed namespace
{
#include <dali/internal/render/common/render-manager.h>
#include <dali/integration-api/debug.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/shaders/shader.h>
#include <dali/internal/render/renderers/render-material.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/gl-resources/texture.h>
#include <dali/internal/update/controllers/scene-controller.h>
-using namespace std;
-
#if defined(DEBUG_ENABLED)
namespace
{
const GLint smoothingLoc = program.GetUniformLocation( Program::UNIFORM_SMOOTHING );
if( Program::UNIFORM_UNKNOWN != smoothingLoc )
{
- smoothWidth = min( min(mSmoothing, 1.0f - mSmoothing), smoothWidth );
+ smoothWidth = std::min( std::min(mSmoothing, 1.0f - mSmoothing), smoothWidth );
if( mPixelSize < SMOOTHING_ADJUSTMENT_PIXEL_SIZE )
{
const Vector4& outlineColor = mTextParameters->GetOutlineColor();
float outlineWidth = outline[1] + smoothWidth;
float outlineStart = outline[0];
- float outlineEnd = min( 1.0f, outlineStart + outlineWidth );
+ float outlineEnd = std::min( 1.0f, outlineStart + outlineWidth );
program.SetUniform2f(outlineLoc, outlineStart, outlineEnd);
program.SetUniform4f(outlineColorLoc, outlineColor.r, outlineColor.g, outlineColor.b, outlineColor.a);
// INTERNAL INCLUDES
#include <dali/internal/render/common/performance-monitor.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/update/common/scene-graph-property-notification.h>
#include <dali/internal/update/common/property-condition-functions.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/gl-resources/context.h>
#include <dali/internal/render/queue/render-queue.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/update/nodes/node.h>
#include <dali/public-api/common/dali-common.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/update/resources/resource-manager.h>
#include <dali/integration-api/debug.h>
-using namespace std;
-
namespace // unnamed namespace
{
-static unsigned int UPDATE_COUNT = 2u; // Update projection or view matrix this many frames after a change
-static unsigned int COPY_PREVIOUS_PROJECTION = 1u; // Copy projection matrix from previous frame
+const unsigned int UPDATE_COUNT = 2u; // Update projection or view matrix this many frames after a change
+const unsigned int COPY_PREVIOUS_PROJECTION = 1u; // Copy projection matrix from previous frame
}
namespace Dali
#include <dali/internal/update/node-attachments/scene-graph-image-attachment-debug.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/update/resources/resource-manager.h>
#include <dali/integration-api/debug.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/shaders/program.h>
#include <dali/internal/render/shaders/shader.h>
-
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/shaders/shader.h>
#include <dali/internal/common/image-sampler.h>
-using namespace std;
-
namespace Dali
{
// INTERNAL INCLUDES
#include <dali/public-api/common/dali-common.h>
-
-using namespace std;
-
namespace Dali
{
#include <dali/internal/render/common/texture-cache-dispatcher.h>
#include <dali/internal/render/common/post-process-resource-dispatcher.h>
-using namespace std;
using namespace Dali::Integration;
using Dali::Internal::SceneGraph::DiscardQueue;
namespace Internal
{
-typedef set<ResourceId> LiveRequestContainer;
-typedef LiveRequestContainer::iterator LiveRequestIter;
-typedef LiveRequestContainer::size_type LiveRequestSize;
+typedef std::set<ResourceId> LiveRequestContainer;
+typedef LiveRequestContainer::iterator LiveRequestIter;
+typedef LiveRequestContainer::size_type LiveRequestSize;
-typedef map<ResourceId, ResourceTypeId> DeadRequestContainer;
-typedef DeadRequestContainer::iterator DeadRequestIter;
-typedef pair<ResourceId, ResourceTypeId> DeadRequestPair;
+typedef std::map<ResourceId, ResourceTypeId> DeadRequestContainer;
+typedef DeadRequestContainer::iterator DeadRequestIter;
+typedef std::pair<ResourceId, ResourceTypeId> DeadRequestPair;
-typedef vector<ResourceId> NotifyQueue;
-typedef NotifyQueue::iterator NotifyQueueIter;
+typedef std::vector<ResourceId> NotifyQueue;
+typedef NotifyQueue::iterator NotifyQueueIter;
-typedef map<ResourceId, BitmapMetadata> BitmapMetadataCache;
-typedef BitmapMetadataCache::iterator BitmapMetadataIter;
-typedef pair<ResourceId, BitmapMetadata> BitmapMetadataPair;
+typedef std::map<ResourceId, BitmapMetadata> BitmapMetadataCache;
+typedef BitmapMetadataCache::iterator BitmapMetadataIter;
+typedef std::pair<ResourceId, BitmapMetadata> BitmapMetadataPair;
-typedef map<ResourceId, ModelDataPtr> ModelCache;
-typedef ModelCache::iterator ModelCacheIter;
-typedef pair<ResourceId, ModelDataPtr> ModelDataPair;
+typedef std::map<ResourceId, ModelDataPtr> ModelCache;
+typedef ModelCache::iterator ModelCacheIter;
+typedef std::pair<ResourceId, ModelDataPtr> ModelDataPair;
-typedef map<ResourceId, SceneGraph::Mesh*> MeshCache;
-typedef MeshCache::iterator MeshCacheIter;
-typedef pair<ResourceId, SceneGraph::Mesh*> MeshDataPair;
+typedef std::map<ResourceId, SceneGraph::Mesh*> MeshCache;
+typedef MeshCache::iterator MeshCacheIter;
+typedef std::pair<ResourceId, SceneGraph::Mesh*> MeshDataPair;
-typedef map<ResourceId, ShaderDataPtr> ShaderCache;
-typedef ShaderCache::iterator ShaderCacheIter;
-typedef ShaderCache::size_type ShaderCacheSize;
-typedef pair<ResourceId, ShaderDataPtr> ShaderDataPair;
+typedef std::map<ResourceId, ShaderDataPtr> ShaderCache;
+typedef ShaderCache::iterator ShaderCacheIter;
+typedef ShaderCache::size_type ShaderCacheSize;
+typedef std::pair<ResourceId, ShaderDataPtr> ShaderDataPair;
static inline bool RemoveId( LiveRequestContainer& container, ResourceId id )
{
#include <dali/internal/event/dynamics/dynamics-world-impl.h>
#endif
-using namespace std;
-
namespace Dali
{
#include <dali/public-api/common/dali-common.h>
#include <dali/internal/event/actors/custom-actor-internal.h>
-using namespace std;
-
namespace Dali
{
#include <dali/internal/event/dynamics/dynamics-world-impl.h>
#endif
-using namespace std;
-
namespace Dali
{
#include <dali/public-api/math/matrix.h>
#include <dali/integration-api/debug.h>
-using namespace std;
-
namespace Dali
{
namespace // unnamed namespace
{
-static const float kBoundsDefault = 1e10f;
+const float kBoundsDefault = 1e10f;
} // unnamed namespace
using Dali::Vector4;
#include <dali/internal/event/common/stage-impl.h>
#include <dali/internal/event/common/type-registry-impl.h>
-using namespace std;
-
namespace Dali
{
// Dali includes
#include "actor.h"
-using namespace std;
-
namespace // unnamed namespace start
{