globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
StaticStringSource.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <string>
5
6#include <globjects/globjects_api.h>
8
9
10namespace globjects
11{
12
13
20class GLOBJECTS_API StaticStringSource : public AbstractStringSource
21{
22public:
23 StaticStringSource(const std::string & string);
24 StaticStringSource(const char * data, size_t length);
25
26 virtual std::string shortInfo() const override;
27 virtual std::string string() const override;
28
29 void setString(const std::string & string);
30
31protected:
32 std::string m_string;
33};
34
35
36} // namespace globjects
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
Definition AbstractStringSource.h:26
StaticStringSource is a StringSource using an std::string as source.
Definition StaticStringSource.h:21
virtual std::string shortInfo() const override
StaticStringSource(const std::string &string)
void setString(const std::string &string)
StaticStringSource(const char *data, size_t length)
virtual std::string string() const override
std::string m_string
Definition StaticStringSource.h:32
Contains all the classes that wrap OpenGL functionality.