MCPcopy Create free account
hub / github.com/OGRECave/ogre / getBlendOp

Function getBlendOp

RenderSystems/GL/src/OgreGLRenderSystem.cpp:1696–1712  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1694 }
1695 //-----------------------------------------------------------------------------
1696 static GLenum getBlendOp(SceneBlendOperation op)
1697 {
1698 switch (op)
1699 {
1700 case SBO_ADD:
1701 return GL_FUNC_ADD;
1702 case SBO_SUBTRACT:
1703 return GL_FUNC_SUBTRACT;
1704 case SBO_REVERSE_SUBTRACT:
1705 return GL_FUNC_REVERSE_SUBTRACT;
1706 case SBO_MIN:
1707 return GL_MIN;
1708 case SBO_MAX:
1709 return GL_MAX;
1710 }
1711 return GL_FUNC_ADD;
1712 }
1713 void GLRenderSystem::setColourBlendState(const ColourBlendState& state)
1714 {
1715 // record this

Callers 1

setColourBlendStateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected