Merge "Remove dead code: BitmapExternal; not been used for a while, not even included...
[platform/core/uifw/dali-core.git] / dali / internal / render / renderers / scene-graph-renderer-debug.h
1 #ifndef __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__
2 #define __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 #include <dali/public-api/math/matrix.h>
21 #include <dali/public-api/math/rect.h>
22
23 // Uncomment to debug bounding boxes of objects
24 //#define DEBUG_DISPLAY_BOUNDING_BOX 1
25
26 namespace Dali
27 {
28 namespace Internal
29 {
30 class Context;
31
32 namespace SceneGraph
33 {
34 class NodeDataProvider;
35
36 void DebugBoundingBox(Context& context, Rect<float> boundingBox, const Matrix& mvp);
37
38 #if defined(DEBUG_ENABLED) && defined(DEBUG_DISPLAY_BOUNDING_BOX)
39 #define DEBUG_BOUNDING_BOX( context, boundingBox, mvp )                     \
40   DebugBoundingBox( context, boundingBox, mvp )
41 #else
42 #define DEBUG_BOUNDING_BOX( context, boundingBox, mvp )
43 #endif
44
45 } // SceneGraph
46 } // Internal
47 } // Dali
48
49
50 #endif // __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__