Last change
on this file since 504 was
504,
checked in by epyon, 9 years ago
|
- temporary add_base_path for image manager
- random - warning fix
- debug_draw - shader upgrade
|
File size:
885 bytes
|
Rev | Line | |
---|
[484] | 1 | // Copyright (C) 2015-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 | /**
|
---|
| 8 | * @file image_manager.hh
|
---|
| 9 | * @author Kornel Kisielewicz
|
---|
| 10 | * @brief image_manager
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef NV_ENGINE_IMAGE_MANAGER_HH
|
---|
| 14 | #define NV_ENGINE_IMAGE_MANAGER_HH
|
---|
| 15 |
|
---|
| 16 | #include <nv/common.hh>
|
---|
| 17 | #include <nv/core/resource.hh>
|
---|
| 18 | #include <nv/interface/image_data.hh>
|
---|
| 19 | #include <nv/engine/resource_system.hh>
|
---|
| 20 |
|
---|
| 21 | namespace nv
|
---|
| 22 | {
|
---|
| 23 |
|
---|
| 24 | NV_RTTI_DECLARE_NAME( image_data, "image_data" )
|
---|
| 25 |
|
---|
| 26 | class image_manager : public manual_resource_manager< image_data >
|
---|
| 27 | {
|
---|
| 28 | public:
|
---|
| 29 | image_manager() {}
|
---|
[504] | 30 | void add_base_path( const string_view& path );
|
---|
[484] | 31 | protected:
|
---|
| 32 | virtual bool load_resource( const string_view& id );
|
---|
[504] | 33 | vector< string128 > m_paths;
|
---|
[484] | 34 | };
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[487] | 40 | #endif // NV_ENGINE_IMAGE_MANAGER_HH
|
---|
Note: See
TracBrowser
for help on using the repository browser.