zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Textures.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_TEXTURES_HXX
19 #define ZENI_TEXTURES_HXX
20 
21 // HXXed below
22 #include <Zeni/Texture.h>
23 
24 #include <Zeni/Textures.h>
25 
26 namespace Zeni {
27 
29  return m_bilinear_filtering;
30  }
31 
33  return m_mipmapping;
34  }
35 
37  return m_bilinear_filtering && m_mipmapping;
38  }
39 
41  return m_anisotropic_filtering;
42  }
43 
45  return m_lazy_loading;
46  }
47 
48  void Textures::set_lazy_loading(const bool &lazy_loading) {
49  m_lazy_loading = lazy_loading;
50  }
51 
52 }
53 
54 #include <Zeni/Texture.hxx>
55 
56 #endif
static void set_lazy_loading(const bool &lazy_loading=true)
Set whether Textures should use lazy loading if possible, or if it should always load Textures immedi...
Definition: Textures.hxx:48
static int get_anisotropic_filtering()
Check the current level of anisotropy.
Definition: Textures.hxx:40
static bool get_trilinear_filtering()
Check if trilinear filtering (the combination of bilinear filtering and mipmapping) is in use...
Definition: Textures.hxx:36
static bool get_lazy_loading()
Definition: Textures.hxx:44
static bool get_mipmapping()
Check if mipmapping is in use.
Definition: Textures.hxx:32
static bool get_bilinear_filtering()
Check if bilinear filtering is in use.
Definition: Textures.hxx:28