13 #ifndef OGLPLUS_FRAG_DATA_1107121519_HPP
14 #define OGLPLUS_FRAG_DATA_1107121519_HPP
25 #if OGLPLUS_DOCUMENTATION_ONLY || GL_VERSION_3_0
33 static const char* MsgGettingInactive(
void);
35 static const char* MsgUsingInactive(
void);
45 static void BindLocation(
47 FragDataSlot location,
51 OGLPLUS_GLFUNC(BindFragDataLocation)(
60 Identifier(identifier).
61 Index(GLuint(location))
73 static GLint GetLocation(
79 GLint result = OGLPLUS_GLFUNC(GetFragDataLocation)(
87 Identifier(identifier)
89 OGLPLUS_HANDLE_ERROR_IF(
90 active_only && (result < 0),
95 Identifier(identifier)
102 class ProgVarCommonOps<tag::
FragData>
103 :
public ProgVarLoc<tag::FragData>
106 ProgVarCommonOps(FragDataLoc fdloc)
135 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
136 #include <oglplus/frag_data.ipp>
139 #endif // GL_VERSION_3_0
141 #endif // include guard
const Char * c_str(void) const
Returns the null-terminated c-string.
Definition: ref_tpl.hpp:200
Program variable wrapper.
Program variable location wrapper.
ProgVarLoc(void)
Default construction.
Definition: location.hpp:55
ProgVar< tag::ImplicitSel, tag::FragData, tag::NoTypecheck, void > FragData
Encapsulates frag data operations.
Definition: frag_data.hpp:131
GLuint GetGLName(ObjectName< ObjTag > named)
Returns the GLuint OpenGL name assigned to named object.
Definition: name.hpp:38
String const reference wrapper template.
Definition: ref_tpl.hpp:72
Helper macro for optional checking of availability of GL function.
Declaration of OGLplus program-variable-related error.