GteSamplerState.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
10 #include <Mathematics/GteVector4.h>
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // The encoding involves minification (MIN), magnification (MAG), and
20  // mip-level filtering (MIP). After each is P (POINT) or L (LINEAR).
21  enum GTE_IMPEXP Filter
22  {
40  COMPARISON_ANISOTROPIC
41  };
42 
43  // Modes for handling texture coordinates at texture-image boundaries.
44  enum GTE_IMPEXP Mode
45  {
47  MIRROR,
48  CLAMP,
49  BORDER,
50  MIRROR_ONCE
51  };
52 
53  enum GTE_IMPEXP Comparison
54  {
56  LESS,
57  EQUAL,
58  LESS_EQUAL,
59  GREATER,
60  NOT_EQUAL,
62  ALWAYS
63  };
64 
65  // Construction.
66  SamplerState();
67 
68  // Member access. The members are intended to be write-once before
69  // you create an associated graphics state.
70  Filter filter;
71  Mode mode[3];
72  float mipLODBias;
73  unsigned int maxAnisotropy;
74  Comparison comparison;
76  float minLOD;
77  float maxLOD;
78 
79 public:
80  // For use by the Shader class for storing reflection information.
81  static int const shaderDataLookup = 6;
82 };
83 
84 }
unsigned int maxAnisotropy
WRAP
COMPARISON_MIN_L_MAG_P_MIP_L
COMPARISON_MIN_L_MAG_P_MIP_P
MIN_L_MAG_P_MIP_L
MIRROR
LESS_EQUAL
GREATER_EQUAL
COMPARISON_MIN_P_MAG_P_MIP_L
COMPARISON_MIN_L_MAG_L_MIP_P
MIN_P_MAG_L_MIP_L
LESS
NEVER
MIN_P_MAG_P_MIP_P
Vector4< float > borderColor
NOT_EQUAL
COMPARISON_MIN_P_MAG_L_MIP_L
COMPARISON_MIN_P_MAG_L_MIP_P
GLenum mode
Definition: glcorearb.h:94
MIN_P_MAG_L_MIP_P
EQUAL
MIN_P_MAG_P_MIP_L
COMPARISON_MIN_P_MAG_P_MIP_P
ANISOTROPIC
Comparison comparison
BORDER
MIN_L_MAG_P_MIP_P
MIN_L_MAG_L_MIP_P
COMPARISON_MIN_L_MAG_L_MIP_L
MIN_L_MAG_L_MIP_L
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63
GREATER
CLAMP


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:01