TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
G3D::RefractionQuality Class Reference

#include <constants.h>

Public Types

enum  Value {
  NONE = 0, STATIC_ENV = 25, DYNAMIC_FLAT = 50, DYNAMIC_FLAT_MULTILAYER = 55,
  DYNAMIC_ENV = 75, BEST = 100
}
 

Public Member Functions

 G3D_DECLARE_ENUM_CLASS_METHODS (RefractionQuality)
 

Static Private Member Functions

static const char * toString (int i, Value &v)
 

Private Attributes

Value value
 

Detailed Description

Values for UniversalSurface::GPUGeom::refractionHint.

Member Enumeration Documentation

Enumerator
NONE 

No refraction; a translucent object will appear as if it had the same index of refraction as the surrounding medium and objects will be undistorted in the background.

STATIC_ENV 

Use a static environment map (cube or paraboloid) for computing transmissivity.

DYNAMIC_FLAT 

Use a dynamically rendered 2D environment map; distort the background. This looks good for many scenes but avoids the cost of rendering a cube map for DYNAMIC_ENV.

DYNAMIC_FLAT_MULTILAYER 

Use a dynamically rendered 2D environment map that is re-captured per transparent object. This works well for transparent objects that are separated by a significant camera space z distance but overlap in screen space.

DYNAMIC_ENV 

Render a dynamic environment map

BEST 

Use the best method available, ideally true ray tracing.

48  {
51  NONE = 0,
52 
54  STATIC_ENV = 25,
55 
58  DYNAMIC_FLAT = 50,
59 
63 
65  DYNAMIC_ENV = 75,
66 
68  BEST = 100
69  };
Definition: constants.h:54
Definition: constants.h:68
Definition: constants.h:58
Definition: constants.h:51
Definition: constants.h:65

Member Function Documentation

G3D::RefractionQuality::G3D_DECLARE_ENUM_CLASS_METHODS ( RefractionQuality  )
const char * G3D::RefractionQuality::toString ( int  i,
Value v 
)
staticprivate
24  {
25  static const char* str[] = {"NONE", "STATIC_ENV", "DYNAMIC_FLAT", "DYNAMIC_FLAT_MULTILAYER", "DYNAMIC_ENV", "BEST", NULL};
27  const char* s = str[i];
28  if (s) {
29  v = val[i];
30  }
31  return s;
32  }
Definition: constants.h:54
Definition: constants.h:68
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: constants.h:58
Definition: constants.h:51
Definition: constants.h:65

Member Data Documentation

Value G3D::RefractionQuality::value
private

The documentation for this class was generated from the following files: