PrevUpHomeNext

GLSL Source code

#include <oglplus/glsl_source.hpp>

GLSLSource class can be used to load and store GLSL source code.

class GLSLSource
{
public:
	GLSLSource(GLSLSource&& tmp);

	explicit
	GLSLSource(const StrCRef& source);

	GLSLSource(const std::vector<StrCRef>& lits);

	template <size_t N>
	GLSLSource(const StrCRef (&lits)[N]);

	GLSLSource(const std::vector<String>& strs);

	GLSLSource(std::initializer_list<StrCRef> lits);

	GLSLSource(std::initializer_list<String> strs);

	explicit
	GLSLSource(const String& source);

	explicit
	GLSLSource(String&& source);

	static
	GLSLSource FromStream(std::istream& input); 1

	static
	GLSLSource FromFile(const char* path); 2
	static
	GLSLSource FromFile(const String& path);
};

1

Constructs a new GLSLSource from the data read from the specified standard input stream.

2

Constructs a new GLSLSource from the data read from a file located at the specified path.


PrevUpHomeNext