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