Graphite  Version 3
An experimental 3D geometry processing program
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. More...
 
 Source (const std::string &src)
 Source constructor from a string. More...
 
 Source (const Source &rhs)
 Source copy constructor. More...
 
Sourceoperator= (const Source &rhs)
 Source assignment operator. More...
 
const char * text ()
 Gets the text. More...
 

Protected Member Functions

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

Detailed Description

A GLSL source.

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

Definition at line 97 of file GLSL.h.

Constructor & Destructor Documentation

◆ Source() [1/3]

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 110 of file GLSL.h.

◆ Source() [2/3]

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 118 of file GLSL.h.

◆ Source() [3/3]

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 126 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 155 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 135 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 146 of file GLSL.h.


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