PrevUpHomeNext

Fragment output data

#include <oglplus/frag_data.hpp>

Basic location operations

template <>
class ProgVarLocOps<tag::FragData>
{
public:
	static void BindLocation(
		ProgramName program,
		FragDataSlot location,
		StrCRef identifier
	); 1

	static GLint GetLocation(
		ProgramName program,
		StrCRef identifier,
		bool active_only
	); 2
};

1

Binds the fragment data specified by identifier to the location in the specified program. See glBindFragDataLocation.

2

Finds the location of the fragment data output specified by identifier in a program. If active_only is true then throws ProgVarError if no such frag_data exists or if it is not active. See glGetFragDataLocation.

Common operations

template <>
class ProgVarCommonOps<tag::FragData>
 : public ProgVarLoc<tag::FragData>
{
public:
	void Bind(StrCRef identifier); 1
};

1

Binds the fragment output specified by identifier to this fragment data location. See glBindFragDataLocation.

Definition

typedef ProgVar<
	tag::ImplicitSel,
	tag::FragData,
	tag::NoTypecheck,
	void
> FragData; 1

typedef FragData FragmentData;

1

Indirectly inherits from ProgVarLocOps, ProgVarCommonOps.


PrevUpHomeNext