Geogram Version 1.10.2
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::GLSL::Source Class Reference

A GLSL source. More...

#include <geogram_gfx/basic/GLSL.h>

Public Member Functions

 Source ()
 Source constructor.
 Source (const char *src)
 Source constructor from a char pointer.
 Source (const std::string &src)
 Source constructor from a string.
 Source (const Source &rhs)
 Source copy constructor.
Source & operator= (const Source &rhs)
 Source assignment operator.
const char * text ()
 Gets the text.

Protected Member Functions

void copy (const Source &rhs)
 Copies a Source.

Detailed Description

A GLSL source.

Can be a pointer to a static string in constant memory or a dynamically created string.

Definition at line 114 of file GLSL.h.

Constructor & Destructor Documentation

◆ Source() [1/4]

GEO::GLSL::Source::Source ( )
inline

Source constructor.

Definition at line 119 of file GLSL.h.

◆ Source() [2/4]

GEO::GLSL::Source::Source ( const char * src)
inline

Source constructor from a char pointer.

Parameters
[in]srca pointer to the source text. Can be a constant string. It is not copied.

Definition at line 127 of file GLSL.h.

◆ Source() [3/4]

GEO::GLSL::Source::Source ( const std::string & src)
inline

Source constructor from a string.

Parameters
[in]srca const reference to a string. It is copied into this Source.

Definition at line 135 of file GLSL.h.

◆ Source() [4/4]

GEO::GLSL::Source::Source ( const Source & rhs)
inline

Source copy constructor.

Parameters
[in]rhsa const reference to the Source to be copied

Definition at line 143 of file GLSL.h.

Member Function Documentation

◆ copy()

void GEO::GLSL::Source::copy ( const Source & rhs)
inlineprotected

Copies a Source.

Parameters
[in]rhsa const reference to the Source to be copied.

Definition at line 172 of file GLSL.h.

◆ operator=()

Source & GEO::GLSL::Source::operator= ( const Source & rhs)
inline

Source assignment operator.

Parameters
[in]rhsa const reference to the Source to be copied.
Returns
this Source after assignment

Definition at line 152 of file GLSL.h.

◆ text()

const char * GEO::GLSL::Source::text ( )
inline

Gets the text.

Returns
a const pointer to the text of this source.

Definition at line 163 of file GLSL.h.


The documentation for this class was generated from the following file: