source: trunk/legacy/skeletal_mesh.hh @ 502

Last change on this file since 502 was 480, checked in by epyon, 10 years ago
  • cleanup of legacy code
  • resource updates
File size: 1.1 KB
Line 
1// Copyright (C) 2012-2015 ChaosForge Ltd
2// http://chaosforge.org/
3//
4// This file is part of Nova libraries.
5// For conditions of distribution and use, see copying.txt file in root folder.
6
7#ifndef NV_GFX_SKELETAL_MESH_HH
8#define NV_GFX_SKELETAL_MESH_HH
9
10#include <nv/common.hh>
11#include <nv/interface/context.hh>
12#include <nv/interface/animated_mesh.hh>
13#include <nv/stl/array.hh>
14#include <nv/gfx/skeleton_instance.hh>
15
16namespace nv
17{
18#if 0   
19        class skeletal_animation_entry : public animation_entry
20        {
21        public:
22                skeletal_animation_entry( shash64 name, const mesh_nodes_data* anim, uint32 fps, uint32 time_start, uint32 time_end, bool a_looping )
23                        : animation_entry( name, a_looping, fps, time_start, time_end )
24                        , m_temp_anim( anim )
25                {
26                }
27                const skeleton_binding& get_binding() const { return m_data; }
28                void prepare( const mesh_nodes_data* bones );
29                void update_skeleton( skeleton_instance& tr, uint32 a_ms_time ) const;
30               
31        protected:
32                const mesh_nodes_data* m_temp_anim;
33                skeleton_binding m_data;
34        };
35#endif
36
37} // namespace nv
38
39#endif // NV_GFX_SKELETAL_MESH_HH
Note: See TracBrowser for help on using the repository browser.