Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
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
>
9
#include <
Graphics/GteTextureDS.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
{
20
mType
=
GT_TEXTURE_DS
;
21
}
22
23
void
TextureDS::MakeShaderInput
()
24
{
25
mShaderInput
=
true
;
26
}
27
28
bool
TextureDS::IsShaderInput
()
const
29
{
30
return
mShaderInput
;
31
}
width
GLint GLsizei width
Definition:
glcorearb.h:98
GTEnginePCH.h
gte::GraphicsObject::mType
GraphicsObjectType mType
Definition:
GteGraphicsObject.h:156
gte::TextureDS::MakeShaderInput
void MakeShaderInput()
Definition:
GteTextureDS.cpp:23
gte::Texture2
Definition:
GteTexture2.h:15
gte
Definition:
GLX/GteWICFileIO.h:16
gte::TextureDS::TextureDS
TextureDS(DFType format, unsigned int width, unsigned int height, bool createStorage=true)
Definition:
GteTextureDS.cpp:13
format
GLint GLint GLsizei GLint GLenum format
Definition:
glcorearb.h:103
height
GLint GLsizei GLsizei height
Definition:
glcorearb.h:98
GT_TEXTURE_DS
GT_TEXTURE_DS
Definition:
GteGraphicsObject.h:79
GteTextureDS.h
gte::TextureDS::IsShaderInput
bool IsShaderInput() const
Definition:
GteTextureDS.cpp:28
DF_D24_UNORM_S8_UINT
DF_D24_UNORM_S8_UINT
Definition:
GteDataFormat.h:20
gte::TextureDS::mShaderInput
bool mShaderInput
Definition:
GteTextureDS.h:26
gte::DataFormat
Definition:
GteDataFormat.h:159
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01