OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreD3D11TextureManager.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2014 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __D3D11TEXTUREMANAGER_H__
29 #define __D3D11TEXTUREMANAGER_H__
30 
31 #include "OgreD3D11Prerequisites.h"
32 #include "OgreTextureManager.h"
33 
34 namespace Ogre
35 {
37  {
38  protected:
41  Resource* createImpl(const String& name, ResourceHandle handle,
42  const String& group, bool isManual, ManualResourceLoader* loader,
43  const NameValuePairList* createParams);
44 
45  public:
46  D3D11TextureManager( D3D11Device & device );
48 
53  void releaseDefaultPoolResources(void);
59 
61  PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage);
62 
64  bool isHardwareFilteringSupported(TextureType ttype, PixelFormat format, int usage,
65  bool preciseFormatOnly = false);
66 
67  };
68 }
69 #endif
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
Definition: OgreCommon.h:580
bool isHardwareFilteringSupported(TextureType ttype, PixelFormat format, int usage, bool preciseFormatOnly=false)
Returns whether this render system has hardware filtering supported for the texture format requested ...
Class for loading & managing textures.
Resource * createImpl(const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader, const NameValuePairList *createParams)
Create a new resource instance compatible with this manager (no custom parameters are populated at th...
Interface describing a manual resource loader.
Definition: OgreResource.h:498
void recreateDefaultPoolResources(void)
Recreate all textures in the default memory pool.
void releaseDefaultPoolResources(void)
Release all textures in the default memory pool.
D3D11TextureManager(D3D11Device &device)
PixelFormat
The pixel format used for images, textures, and render surfaces.
PixelFormat getNativeFormat(TextureType ttype, PixelFormat format, int usage)
Gets the format which will be natively used for a requested format given the constraints of the curre...
Abstract class representing a loadable resource (e.g.
Definition: OgreResource.h:77
unsigned long long int ResourceHandle
Definition: OgreResource.h:39
TextureType
Enum identifying the texture type.
Definition: OgreTexture.h:76
_StringBase String
Definition: OgreCommon.h:53