Support Forum       G3D Web Page     
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
G3D::InterpolateMode Class Reference

Public Types

enum  Value {
  TRILINEAR_MIPMAP,
  BILINEAR_MIPMAP,
  NEAREST_MIPMAP,
  BILINEAR_NO_MIPMAP,
  NEAREST_NO_MIPMAP,
  LINEAR_MIPMAP_NEAREST,
  NEAREST_MIPMAP_LINEAR,
  NEAREST_MAGNIFICATION_TRILINEAR_MIPMAP_MINIFICATION
}
 

Public Member Functions

 InterpolateMode (const G3D::String &x)
 
 InterpolateMode (char v)
 
 InterpolateMode (int v)
 
 InterpolateMode (const G3D::Any &a)
 
 InterpolateMode ()
 
 InterpolateMode (const Value v)
 
void deserialize (G3D::BinaryInput &b)
 
unsigned int hashCode () const
 
 operator int () const
 
bool operator!= (const InterpolateMode other) const
 
bool operator!= (const InterpolateMode ::Value other) const
 
InterpolateMode operator+ (const int x) const
 
InterpolateModeoperator++ ()
 
InterpolateModeoperator+= (const int x)
 
InterpolateMode operator- (const int x) const
 
InterpolateModeoperator-- ()
 
InterpolateModeoperator-= (const int x)
 
bool operator< (const InterpolateMode other) const
 
bool operator< (const Value other) const
 
bool operator<= (const InterpolateMode other) const
 
bool operator<= (const Value other) const
 
InterpolateModeoperator= (const G3D::Any &a)
 
bool operator== (const InterpolateMode other) const
 
bool operator== (const InterpolateMode ::Value other) const
 
bool operator> (const InterpolateMode other) const
 
bool operator> (const Value other) const
 
bool operator>= (const Value other) const
 
bool operator>= (const InterpolateMode other) const
 
bool requiresMipMaps () const
 
void serialize (G3D::BinaryOutput &b) const
 
G3D::Any toAny () const
 
const char * toString () const
 

Static Public Member Functions

static const char * classname ()
 
static int count ()
 
static Value nthValue (int n)
 
static const char * toString (int i, Value &v)
 

Public Attributes

enum G3D::InterpolateMode::Value value
 

Member Enumeration Documentation

◆ Value

Enumerator
TRILINEAR_MIPMAP 

GL_LINEAR_MIPMAP_LINEAR.

BILINEAR_MIPMAP 

GL_LINEAR_MIPMAP_NEAREST.

NEAREST_MIPMAP 

GL_NEAREST_MIPMAP_NEAREST.

BILINEAR_NO_MIPMAP 

GL_LINEAR.

NEAREST_NO_MIPMAP 

GL_NEAREST.

LINEAR_MIPMAP_NEAREST 

Choose the nearest MIP level and perform linear interpolation within it.

NEAREST_MIPMAP_LINEAR 

Linearly blend between nearest pixels in the two closest MIP levels.

NEAREST_MAGNIFICATION_TRILINEAR_MIPMAP_MINIFICATION 

GL_LINEAR_MIPMAP_LINEAR for the minification filter, GL_NEAREST for the magnification filter.

Good for pixel art and Minecraft textures.

Constructor & Destructor Documentation

◆ InterpolateMode() [1/6]

G3D::InterpolateMode::InterpolateMode ( const G3D::String x)
inlineexplicit

◆ InterpolateMode() [2/6]

G3D::InterpolateMode::InterpolateMode ( const G3D::Any a)
inlineexplicit

◆ InterpolateMode() [3/6]

G3D::InterpolateMode::InterpolateMode ( char  v)
inlineexplicit

◆ InterpolateMode() [4/6]

G3D::InterpolateMode::InterpolateMode ( )
inline

◆ InterpolateMode() [5/6]

G3D::InterpolateMode::InterpolateMode ( const Value  v)
inline

◆ InterpolateMode() [6/6]

G3D::InterpolateMode::InterpolateMode ( int  v)
inlineexplicit

Member Function Documentation

◆ classname()

static const char* G3D::InterpolateMode::classname ( )
inlinestatic

◆ count()

static int G3D::InterpolateMode::count ( )
inlinestatic

◆ deserialize()

void G3D::InterpolateMode::deserialize ( G3D::BinaryInput b)
inline

◆ hashCode()

unsigned int G3D::InterpolateMode::hashCode ( ) const
inline

◆ nthValue()

static Value G3D::InterpolateMode::nthValue ( int  n)
inlinestatic

◆ operator int()

G3D::InterpolateMode::operator int ( ) const
inline

◆ operator!=() [1/2]

bool G3D::InterpolateMode::operator!= ( const InterpolateMode  other) const
inline

◆ operator!=() [2/2]

bool G3D::InterpolateMode::operator!= ( const InterpolateMode ::Value  other) const
inline

◆ operator+()

InterpolateMode G3D::InterpolateMode::operator+ ( const int  x) const
inline

◆ operator++()

InterpolateMode& G3D::InterpolateMode::operator++ ( )
inline

◆ operator+=()

InterpolateMode& G3D::InterpolateMode::operator+= ( const int  x)
inline

◆ operator-()

InterpolateMode G3D::InterpolateMode::operator- ( const int  x) const
inline

◆ operator--()

InterpolateMode& G3D::InterpolateMode::operator-- ( )
inline

◆ operator-=()

InterpolateMode& G3D::InterpolateMode::operator-= ( const int  x)
inline

◆ operator<() [1/2]

bool G3D::InterpolateMode::operator< ( const Value  other) const
inline

◆ operator<() [2/2]

bool G3D::InterpolateMode::operator< ( const InterpolateMode  other) const
inline

◆ operator<=() [1/2]

bool G3D::InterpolateMode::operator<= ( const InterpolateMode  other) const
inline

◆ operator<=() [2/2]

bool G3D::InterpolateMode::operator<= ( const Value  other) const
inline

◆ operator=()

InterpolateMode& G3D::InterpolateMode::operator= ( const G3D::Any a)
inline

◆ operator==() [1/2]

bool G3D::InterpolateMode::operator== ( const InterpolateMode  other) const
inline

◆ operator==() [2/2]

bool G3D::InterpolateMode::operator== ( const InterpolateMode ::Value  other) const
inline

◆ operator>() [1/2]

bool G3D::InterpolateMode::operator> ( const Value  other) const
inline

◆ operator>() [2/2]

bool G3D::InterpolateMode::operator> ( const InterpolateMode  other) const
inline

◆ operator>=() [1/2]

bool G3D::InterpolateMode::operator>= ( const InterpolateMode  other) const
inline

◆ operator>=() [2/2]

bool G3D::InterpolateMode::operator>= ( const Value  other) const
inline

◆ requiresMipMaps()

bool G3D::InterpolateMode::requiresMipMaps ( ) const
inline

◆ serialize()

void G3D::InterpolateMode::serialize ( G3D::BinaryOutput b) const
inline

◆ toAny()

G3D::Any G3D::InterpolateMode::toAny ( ) const
inline

◆ toString() [1/2]

static const char* G3D::InterpolateMode::toString ( int  i,
Value v 
)
inlinestatic

◆ toString() [2/2]

const char* G3D::InterpolateMode::toString ( ) const
inline

Member Data Documentation

◆ value

enum G3D::InterpolateMode::Value G3D::InterpolateMode::value

documentation generated on Wed Nov 24 2021 08:01:57 using doxygen 1.8.15