(self, text)
| 18 | """Plain GLSL text to insert inline""" |
| 19 | |
| 20 | def __init__(self, text): |
| 21 | super(TextExpression, self).__init__() |
| 22 | if not isinstance(text, str): |
| 23 | raise TypeError("Argument must be string.") |
| 24 | self._text = text |
| 25 | |
| 26 | def __repr__(self): |
| 27 | return '<TextExpression %r for at 0x%x>' % (self.text, id(self)) |