Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Mapping.cpp File Reference
#include "precompiled.h"
#include "Mapping.h"
#include "lib/code_annotation.h"
#include "lib/config2.h"
Include dependency graph for Mapping.cpp:

Namespaces

namespace  Renderer
 
namespace  Renderer::Backend
 
namespace  Renderer::Backend::GL
 
namespace  Renderer::Backend::GL::Mapping
 

Macros

#define CASE(NAME, GL_NAME)   case CompareOp::NAME: op = GL_NAME; break
 
#define CASE(NAME, GL_NAME)   case StencilOp::NAME: op = GL_NAME; break
 
#define CASE(NAME)   case BlendFactor::NAME: factor = GL_##NAME; break
 

Functions

GLenum Renderer::Backend::GL::Mapping::FromCompareOp (const CompareOp compareOp)
 
GLenum Renderer::Backend::GL::Mapping::FromStencilOp (const StencilOp stencilOp)
 
GLenum Renderer::Backend::GL::Mapping::FromBlendFactor (const BlendFactor blendFactor)
 
GLenum Renderer::Backend::GL::Mapping::FromBlendOp (const BlendOp blendOp)
 

Macro Definition Documentation

◆ CASE [1/3]

#define CASE (   NAME)    case BlendFactor::NAME: factor = GL_##NAME; break

◆ CASE [2/3]

#define CASE (   NAME,
  GL_NAME 
)    case CompareOp::NAME: op = GL_NAME; break

◆ CASE [3/3]

#define CASE (   NAME,
  GL_NAME 
)    case StencilOp::NAME: op = GL_NAME; break