GteDX11GraphicsObject.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <Graphics/GteGEObject.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Abstract base class.
20  virtual ~DX11GraphicsObject();
21 protected:
22  DX11GraphicsObject(GraphicsObject const* gtObject);
23 
24 public:
25  // Member access.
26  inline ID3D11DeviceChild* GetDXDeviceChild() const;
27 
28  // Support for the DX11 debug layer. Set the name if you want to have
29  // ID3D11DeviceChild destruction messages show your name rather than
30  // "<unnamed>". The typical usage is
31  // std::shared_ptr<Texture2> texture = std::make_shared<Texture2>(...);
32  // engine->Bind(texture)->SetName("MyTexture");
33  // The virtual override is used to allow derived classes to use the
34  // same name for associated resources.
35  virtual void SetName(std::string const& name) override;
36 
37 protected:
38  ID3D11DeviceChild* mDXObject;
39 };
40 
41 inline ID3D11DeviceChild* DX11GraphicsObject::GetDXDeviceChild() const
42 {
43  return mDXObject;
44 }
45 
46 }
ID3D11DeviceChild * GetDXDeviceChild() const
GLuint const GLchar * name
Definition: glcorearb.h:781
GLsizei const GLchar *const * string
Definition: glcorearb.h:809
ID3D11DeviceChild * mDXObject
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 03:59:59