OGLplus
(0.52.0)
a C++ wrapper for
OpenGL
Tweet
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
include
oglplus
images
png.hpp
Go to the documentation of this file.
1
12
#pragma once
13
#ifndef OGLPLUS_IMAGES_PNG_1107121519_HPP
14
#define OGLPLUS_IMAGES_PNG_1107121519_HPP
15
16
#include <
oglplus/images/image.hpp
>
17
18
#include <istream>
19
20
namespace
oglplus {
21
namespace
images {
22
24
27
class
PNGImage
28
:
public
Image
29
{
30
public
:
32
PNGImage
(
33
const
char
* file_path,
34
bool
y_is_up =
true
,
35
bool
x_is_right =
true
36
);
37
39
PNGImage
(
40
std::istream& input,
41
bool
y_is_up =
true
,
42
bool
x_is_right =
true
43
);
44
};
45
46
}
// images
47
}
// oglplus
48
49
#if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
50
#include <oglplus/images/png.ipp>
51
#endif // OGLPLUS_LINK_LIBRARY
52
53
#endif // include guard
oglplus::images::PNGImage::PNGImage
PNGImage(const char *file_path, bool y_is_up=true, bool x_is_right=true)
Load the image from a file with the specified file_path.
oglplus::images::Image
Wrapper for (texture) image data.
Definition:
image.hpp:45
oglplus::images::PNGImage
Loader of images in the PNG (Portable network graphics) format.
Definition:
png.hpp:27
image.hpp
Image data wrapper.
Copyright © 2010-2014
Matúš Chochlík
,
University of Žilina
, Žilina, Slovakia.
<
matus.chochlik -at- fri.uniza.sk
>
<
chochlik -at -gmail.com
>
Documentation generated on Mon Sep 22 2014 by
Doxygen
(version 1.8.6).