globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
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 
10 namespace globjects
11 {
12 
13 
20 class GLOBJECTS_API StaticStringSource : public AbstractStringSource
21 {
22 public:
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 
31 protected:
32  std::string m_string;
33 };
34 
35 
36 } // namespace globjects
Contains all the classes that wrap OpenGL functionality.
Superclass for all types of static and dynamic strings, e.g. for the use as Shader code.
Definition: AbstractStringSource.h:25
std::string m_string
Definition: StaticStringSource.h:32
StaticStringSource is a StringSource using an std::string as source.
Definition: StaticStringSource.h:20