GteTexture2.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 
11 
12 namespace gte
13 {
14 
16 {
17 public:
18  // Construction.
19  Texture2(DFType format, unsigned int width, unsigned int height,
20  bool hasMipmaps = false, bool createStorage = true);
21 
22  // Texture dimensions.
23  unsigned int GetWidth() const;
24  unsigned int GetHeight() const;
25 
26  // If you intend to share this texture among DX11Engine objects, call this
27  // function before binding the texture to the engine. The Texture2 usage
28  // must be Resource::GPU_RW.
29  void MakeShared();
30  bool IsShared() const;
31 
32 protected:
33  bool mShared;
34 };
35 
36 }
GLint GLsizei width
Definition: glcorearb.h:98
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:103
GLint GLsizei GLsizei height
Definition: glcorearb.h:98
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01