1 #ifndef __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__
2 #define __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #include <dali/public-api/math/matrix.h>
21 #include <dali/public-api/math/rect.h>
23 // Uncomment to debug bounding boxes of objects
24 //#define DEBUG_DISPLAY_BOUNDING_BOX 1
34 class NodeDataProvider;
36 void DebugBoundingBox(Context& context, Rect<float> boundingBox, const Matrix& mvp);
38 #if defined(DEBUG_ENABLED) && defined(DEBUG_DISPLAY_BOUNDING_BOX)
39 #define DEBUG_BOUNDING_BOX( context, boundingBox, mvp ) \
40 DebugBoundingBox( context, boundingBox, mvp )
42 #define DEBUG_BOUNDING_BOX( context, boundingBox, mvp )
50 #endif // __DALI_INTERNAL_SCENEGRAPH_RENDERER_DEBUG_H__