Main Page
Namespaces
Classes
Files
File List
File Members
include
Applications
GLX
GLX/GteWICFileIO.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/GteTexture2.h
>
11
#include <memory>
12
13
// The supported texture types are DF_R8G8B8A8_UNORM, DF_R8_UNORM, and
14
// DF_R8G8_UNORM (gray+alpha).
15
16
namespace
gte
17
{
18
19
class
GTE_IMPEXP
WICFileIO
20
{
21
public
:
22
// Support for loading from PNG. If the load is not successful, the
23
// function returns a null object.
24
static
std::shared_ptr<Texture2> Load(
std::string
const
& filename,
25
bool
wantMipmaps);
26
27
// Support for saving to PNG format. The function returns true when
28
// successful.
29
static
bool
SaveToPNG(
std::string
const
& filename,
30
std::shared_ptr<Texture2>
const
&
texture
);
31
};
32
33
}
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:809
gte
Definition:
GLX/GteWICFileIO.h:16
texture
GLuint texture
Definition:
glcorearb.h:410
gte::WICFileIO
Definition:
GLX/GteWICFileIO.h:19
GteTexture2.h
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:02