Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
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
10
#include <
Graphics/GteTextureSingle.h
>
11
12
namespace
gte
13
{
14
15
class
GTE_IMPEXP
Texture2
:
public
TextureSingle
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
}
width
GLint GLsizei width
Definition:
glcorearb.h:98
gte::Texture2::mShared
bool mShared
Definition:
GteTexture2.h:33
GteTextureSingle.h
gte::Texture2
Definition:
GteTexture2.h:15
gte
Definition:
GLX/GteWICFileIO.h:16
format
GLint GLint GLsizei GLint GLenum format
Definition:
glcorearb.h:103
height
GLint GLsizei GLsizei height
Definition:
glcorearb.h:98
gte::TextureSingle
Definition:
GteTextureSingle.h:15
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01