1 #ifndef __SCENE_GRAPH_DYNAMICS_DEBUG_RENDERER_H__
2 #define __SCENE_GRAPH_DYNAMICS_DEBUG_RENDERER_H__
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
21 #include <dali/internal/common/buffer-index.h>
22 #include <dali/internal/common/message.h>
23 #include <dali/internal/common/owner-pointer.h>
24 #include <dali/internal/render/gl-resources/gpu-buffer.h>
25 #include <dali/integration-api/dynamics/dynamics-debug-vertex.h>
26 #include <dali/public-api/math/vector3.h>
27 #include <dali/public-api/math/vector4.h>
28 #include <dali/public-api/math/matrix.h>
44 * Dynamics world debug renderer
45 * Renderers an array of colored line sections
47 class DynamicsDebugRenderer
51 DynamicsDebugRenderer(const Shader& debugShader);
52 virtual ~DynamicsDebugRenderer();
54 void Initialize(Context& context);
56 void UpdateMatrices( BufferIndex bufferIndex, const Matrix& projectionMatrix, const Matrix& viewMatrix );
57 void UpdateBuffer( const Integration::DynamicsDebugVertexContainer& vertices );
62 BufferIndex mBufferIndex;
64 Matrix mProjectionMatrix;
65 OwnerPointer<GpuBuffer> mBuffer;
69 } // namespace SceneGraph
71 } // namespace Internal
75 #endif /* __SCENE_GRAPH_DYNAMICS_DEBUG_RENDERER_H__ */