GteTexture2.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.0 (2016/06/19)
7 
8 #include <GTEnginePCH.h>
9 #include <Graphics/GteTexture2.h>
10 using namespace gte;
11 
12 
13 Texture2::Texture2(DFType format, unsigned int width, unsigned int height,
14  bool hasMipmaps, bool createStorage)
15  :
16  TextureSingle(format, 2, width, height, 1, hasMipmaps, createStorage),
17  mShared(false)
18 {
20 }
21 
22 unsigned int Texture2::GetWidth() const
23 {
25 }
26 
27 unsigned int Texture2::GetHeight() const
28 {
30 }
31 
33 {
34  // Shared textures are required to be GPU writable.
35  mUsage = SHADER_OUTPUT;
36  mShared = true;
37 }
38 
39 bool Texture2::IsShared() const
40 {
41  return mShared;
42 }
43 
bool IsShared() const
Definition: GteTexture2.cpp:39
unsigned int GetWidth() const
Definition: GteTexture2.cpp:22
GT_TEXTURE2
GLint GLsizei width
Definition: glcorearb.h:98
void MakeShared()
Definition: GteTexture2.cpp:32
GraphicsObjectType mType
Texture2(DFType format, unsigned int width, unsigned int height, bool hasMipmaps=false, bool createStorage=true)
Definition: GteTexture2.cpp:13
unsigned int GetHeight() const
Definition: GteTexture2.cpp:27
GLint GLint GLsizei GLint GLenum format
Definition: glcorearb.h:103
GLint GLsizei GLsizei height
Definition: glcorearb.h:98
unsigned int GetDimension(int i) const
Definition: GteTexture.h:110


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