GteTextureDS.cpp
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.1 (2016/11/13)
7 
8 #include <GTEnginePCH.h>
10 using namespace gte;
11 
12 
13 TextureDS::TextureDS(DFType format, unsigned int width, unsigned int height,
14  bool createStorage)
15  :
16  Texture2(DataFormat::IsDepth(format) ? format : DF_D24_UNORM_S8_UINT,
17  width, height, false, createStorage),
18  mShaderInput(false)
19 {
21 }
22 
24 {
25  mShaderInput = true;
26 }
27 
29 {
30  return mShaderInput;
31 }
GLint GLsizei width
Definition: glcorearb.h:98
GraphicsObjectType mType
void MakeShaderInput()
TextureDS(DFType format, unsigned int width, unsigned int height, bool createStorage=true)
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:103
GLint GLsizei GLsizei height
Definition: glcorearb.h:98
GT_TEXTURE_DS
bool IsShaderInput() const
DF_D24_UNORM_S8_UINT
Definition: GteDataFormat.h:20


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