zenilib: zenilib/jni/external/zenilib/zeni_graphics/Zeni/Textures.hxx Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
28 bool Textures::get_bilinear_filtering() {
29 return m_bilinear_filtering;
30 }
31
32 bool Textures::get_mipmapping() {
33 return m_mipmapping;
34 }
35
36 bool Textures::get_trilinear_filtering() {
37 return m_bilinear_filtering && m_mipmapping;
38 }
39
40 int Textures::get_anisotropic_filtering() {
41 return m_anisotropic_filtering;
42 }
43
44 bool Textures::get_lazy_loading() {
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
Texture.h
Textures.h
Zeni::Textures::set_lazy_loading
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
Zeni::Textures::get_anisotropic_filtering
static int get_anisotropic_filtering()
Check the current level of anisotropy.
Definition: Textures.hxx:40
Zeni::Textures::get_trilinear_filtering
static bool get_trilinear_filtering()
Check if trilinear filtering (the combination of bilinear filtering and mipmapping) is in use...
Definition: Textures.hxx:36
Zeni::Textures::get_lazy_loading
static bool get_lazy_loading()
Definition: Textures.hxx:44
Texture.hxx
Zeni::Textures::get_mipmapping
static bool get_mipmapping()
Check if mipmapping is in use.
Definition: Textures.hxx:32
Zeni::Textures::get_bilinear_filtering
static bool get_bilinear_filtering()
Check if bilinear filtering is in use.
Definition: Textures.hxx:28