forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextureMinificationFilter.js
77 lines (69 loc) · 2.15 KB
/
TextureMinificationFilter.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*global define*/
define(function() {
"use strict";
/**
* DOC_TBA
*
* @exports TextureMinificationFilter
*/
var TextureMinificationFilter = {
/**
* 0x2600. Nearest minification texture filtering.
*
* @type {Number}
* @constant
*/
NEAREST : 0x2600,
/**
* 0x2601. Linear (bilinear for 2D textures) minification texture filtering.
*
* @type {Number}
* @constant
*/
LINEAR : 0x2601,
/**
* 0x2700. Nearest-mipmap-nearest minification texture filtering.
*
* @type {Number}
* @constant
*/
NEAREST_MIPMAP_NEAREST : 0x2700,
/**
* 0x2701. Linear-mipmap-nearest minification texture filtering.
*
* @type {Number}
* @constant
*/
LINEAR_MIPMAP_NEAREST : 0x2701,
/**
* 0x2702. Nearest-mipmap-linear minification texture filtering.
*
* @type {Number}
* @constant
*/
NEAREST_MIPMAP_LINEAR : 0x2702,
/**
* 0x2703. Linear-mipmap-linear minification texture filtering.
*
* @type {Number}
* @constant
*/
LINEAR_MIPMAP_LINEAR : 0x2703,
/**
* DOC_TBA
*
* @param {TextureMinificationFilter} textureMinificationFilter
*
* @returns {Boolean}
*/
validate : function(textureMinificationFilter) {
return ((textureMinificationFilter === TextureMinificationFilter.NEAREST) ||
(textureMinificationFilter === TextureMinificationFilter.LINEAR) ||
(textureMinificationFilter === TextureMinificationFilter.NEAREST_MIPMAP_NEAREST) ||
(textureMinificationFilter === TextureMinificationFilter.LINEAR_MIPMAP_NEAREST) ||
(textureMinificationFilter === TextureMinificationFilter.NEAREST_MIPMAP_LINEAR) ||
(textureMinificationFilter === TextureMinificationFilter.LINEAR_MIPMAP_LINEAR));
}
};
return TextureMinificationFilter;
});