Main Page
Namespaces
Classes
Files
File List
File Members
src
Graphics
GteTexture1.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/GteTexture1.h
>
10
using namespace
gte
;
11
12
13
Texture1::Texture1
(DFType
format
,
unsigned
int
length
,
bool
hasMipmaps,
14
bool
createStorage)
15
:
16
TextureSingle
(format, 1, length, 1, 1, hasMipmaps, createStorage)
17
{
18
mType
=
GT_TEXTURE1
;
19
}
20
21
unsigned
int
Texture1::GetLength
()
const
22
{
23
return
TextureSingle::GetDimension
(0);
24
}
25
gte::Texture1::GetLength
unsigned int GetLength() const
Definition:
GteTexture1.cpp:21
GTEnginePCH.h
gte::GraphicsObject::mType
GraphicsObjectType mType
Definition:
GteGraphicsObject.h:156
gte::Texture1::Texture1
Texture1(DFType format, unsigned int length, bool hasMipmaps=false, bool createStorage=true)
Definition:
GteTexture1.cpp:13
gte
Definition:
GLX/GteWICFileIO.h:16
format
GLint GLint GLsizei GLint GLenum format
Definition:
glcorearb.h:103
gte::TextureSingle
Definition:
GteTextureSingle.h:15
GteTexture1.h
length
GLuint GLsizei GLsizei * length
Definition:
glcorearb.h:790
gte::Texture::GetDimension
unsigned int GetDimension(int i) const
Definition:
GteTexture.h:110
GT_TEXTURE1
GT_TEXTURE1
Definition:
GteGraphicsObject.h:79
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01