OGLplus (0.52.0) a C++ wrapper for OpenGL

hints.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_CONTEXT_HINTS_1201040722_HPP
14 #define OGLPLUS_CONTEXT_HINTS_1201040722_HPP
15 
16 #include <oglplus/glfunc.hpp>
17 #include <oglplus/hint.hpp>
18 
19 namespace oglplus {
20 namespace context {
21 
23 
26 class Hints
27 {
28 public:
30 
36  static void Hint(HintTarget target, HintOption option)
37  {
38  OGLPLUS_GLFUNC(Hint)(GLenum(target), GLenum(option));
39  OGLPLUS_VERIFY_SIMPLE(Hint);
40  }
41 
43 
49  static HintOption Hint(HintTarget target)
50  {
51  GLint result = 0;
52  OGLPLUS_GLFUNC(GetIntegerv)(GLenum(target), &result);
53  OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
54  return HintOption(GLenum(result));
55  }
56 };
57 
58 } // namespace context
59 } // namespace oglplus
60 
61 #endif // include guard
static void Hint(HintTarget target, HintOption option)
Selects a hint option for a target.
Definition: hints.hpp:36
static HintOption Hint(HintTarget target)
Queries the current hint for a target.
Definition: hints.hpp:49
Enumeration of hint targets and options.
HintOption
Enumeration of hint options.
Definition: hint.hpp:46
Helper macro for optional checking of availability of GL function.
Wrapper for the hint-related operations.
Definition: hints.hpp:26
HintTarget
Enumeration of hint targets.
Definition: hint.hpp:27

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).