OGLplus (0.52.0) a C++ wrapper for OpenGL

load.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_IMAGES_LOAD_1107121519_HPP
14 #define OGLPLUS_IMAGES_LOAD_1107121519_HPP
15 
16 #include <oglplus/images/image.hpp>
17 
18 #include <string>
19 
20 namespace oglplus {
21 namespace images {
22 
23 Image LoadByName(
24  std::string category,
25  std::string name,
26  bool y_is_up,
27  bool x_is_right
28 );
29 
31 
35  std::string name,
36  bool y_is_up = true,
37  bool x_is_right = true
38 )
39 {
40  return LoadByName("textures", name, y_is_up, x_is_right);
41 }
42 
43 } // images
44 } // oglplus
45 
46 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
47 #include <oglplus/images/load.ipp>
48 #endif // OGLPLUS_LINK_LIBRARY
49 
50 #endif // include guard
Wrapper for (texture) image data.
Definition: image.hpp:45
Image LoadTexture(std::string name, bool y_is_up=true, bool x_is_right=true)
Helper function for loading textures that come with OGLplus in the examples.
Definition: load.hpp:34
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).