OGLplus (0.52.0) a C++ wrapper for OpenGL

logical_ops.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_CONTEXT_LOGICAL_OPS_1201040722_HPP
14 #define OGLPLUS_CONTEXT_LOGICAL_OPS_1201040722_HPP
15 
16 #include <oglplus/glfunc.hpp>
18 
19 namespace oglplus {
20 namespace context {
21 
23 
27 {
28 public:
29 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_0
30 
35  static void LogicOp(ColorLogicOperation op)
36  {
37  OGLPLUS_GLFUNC(LogicOp)(GLenum(op));
38  OGLPLUS_VERIFY(
39  LogicOp,
40  Error,
41  EnumParam(op)
42  );
43  }
44 
46 
52  {
53  GLint result;
54  OGLPLUS_GLFUNC(GetIntegerv)(GL_LOGIC_OP_MODE, &result);
55  OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
56  return ColorLogicOperation(result);
57  }
58 #endif // GL_VERSION_3_0
59 };
60 
61 } // namespace context
62 } // namespace oglplus
63 
64 #endif // include guard
static void LogicOp(ColorLogicOperation op)
Sets the color logical operation.
Definition: logical_ops.hpp:35
OpenGL color logic operation enumeration.
Helper macro for optional checking of availability of GL function.
Exception class for general OpenGL errors.
Definition: basic.hpp:43
ColorLogicOperation
Color logic operation enumeration.
Definition: color_logic_operation.hpp:27
static ColorLogicOperation LogicOpMode(void)
Returns the color logical operation.
Definition: logical_ops.hpp:51
Wrapper for the color buffer logical operations.
Definition: logical_ops.hpp:26

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).