Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Shape Class Reference
Collaboration diagram for Shape:

Public Member Functions

 Shape (GLenum type, ShaderState &st, PMVMat4fUniform &pmvMatU)
 
 Shape (Private, ShaderState &st, PMVMat4fUniform &pmvMatU)
 
 Shape (Private, ShaderState &st, PMVMat4fUniform &pmvMatU, GraphRenderer &renderer)
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
void draw (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
constexpr const OutlineShapeoutlines () const noexcept
 
constexpr const OutlineShapeoutlines () const noexcept
 
constexpr OutlineShapeoutlines () noexcept
 
constexpr OutlineShapeoutlines () noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
void seal (GL &gl, bool seal)
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void update (GL &gl)
 
void update (GL &gl)
 
constexpr const GLFloatArrayDataServerRefvertices () const noexcept
 
constexpr GLFloatArrayDataServerRefvertices () noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 

Static Public Member Functions

static ShapeRef create (ShaderState &st, PMVMat4fUniform &pmvMatU)
 
static ShapeRef create (ShaderState &st, PMVMat4fUniform &pmvMatU, GraphRenderer &renderer)
 

Detailed Description

Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 401 of file GraphShapes01.cpp.

Constructor & Destructor Documentation

◆ Shape() [1/3]

Shape::Shape ( Private ,
ShaderState & st,
PMVMat4fUniform & pmvMatU,
GraphRenderer & renderer )
inline
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 425 of file GraphShapes01.cpp.

◆ Shape() [2/3]

Shape::Shape ( GLenum type,
ShaderState & st,
PMVMat4fUniform & pmvMatU )
inline

Definition at line 69 of file Primitives01.cpp.

◆ Shape() [3/3]

Shape::Shape ( Private ,
ShaderState & st,
PMVMat4fUniform & pmvMatU )
inline

Definition at line 92 of file Primitives02.cpp.

Member Function Documentation

◆ create() [1/2]

static ShapeRef Shape::create ( ShaderState & st,
PMVMat4fUniform & pmvMatU,
GraphRenderer & renderer )
inlinestatic
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 433 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ position() [1/6]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 437 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ position() [2/6]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 438 of file GraphShapes01.cpp.

◆ zOffset() [1/4]

const float & Shape::zOffset ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 440 of file GraphShapes01.cpp.

◆ zOffset() [2/4]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 441 of file GraphShapes01.cpp.

◆ rotation() [1/6]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 443 of file GraphShapes01.cpp.

◆ rotation() [2/6]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 444 of file GraphShapes01.cpp.

◆ rotationPivot() [1/4]

const Vec3f & Shape::rotationPivot ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 446 of file GraphShapes01.cpp.

◆ rotationPivot() [2/4]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 447 of file GraphShapes01.cpp.

◆ scale() [1/4]

const Vec3f & Shape::scale ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 449 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ scale() [2/4]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 450 of file GraphShapes01.cpp.

◆ outlines() [1/4]

const OutlineShape & Shape::outlines ( ) const
inlineconstexprnoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 452 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ outlines() [2/4]

OutlineShape & Shape::outlines ( )
inlineconstexprnoexcept

Definition at line 453 of file GraphShapes01.cpp.

◆ color() [1/3]

const Vec4f & Shape::color ( ) const
inlinenoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 455 of file GraphShapes01.cpp.

◆ setColor() [1/3]

void Shape::setColor ( const Vec4f & c)
inlinenoexcept
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 456 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ update() [1/2]

void Shape::update ( GL & gl)
inline
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 458 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ draw() [1/3]

void Shape::draw ( GL & gl)
inline
Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 463 of file GraphShapes01.cpp.

◆ position() [3/6]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 80 of file Primitives01.cpp.

◆ position() [4/6]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 81 of file Primitives01.cpp.

◆ rotation() [3/6]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 83 of file Primitives01.cpp.

◆ rotation() [4/6]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 84 of file Primitives01.cpp.

◆ vertices() [1/2]

const GLFloatArrayDataServerRef & Shape::vertices ( ) const
inlineconstexprnoexcept

Definition at line 86 of file Primitives01.cpp.

◆ vertices() [2/2]

GLFloatArrayDataServerRef & Shape::vertices ( )
inlineconstexprnoexcept

Definition at line 87 of file Primitives01.cpp.

◆ color() [2/3]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 89 of file Primitives01.cpp.

◆ setColor() [2/3]

void Shape::setColor ( const Vec4f & c)
inlinenoexcept

Definition at line 90 of file Primitives01.cpp.

◆ seal()

void Shape::seal ( GL & gl,
bool seal )
inline

Definition at line 92 of file Primitives01.cpp.

Here is the caller graph for this function:

◆ draw() [2/3]

void Shape::draw ( GL & gl)
inline

Definition at line 95 of file Primitives01.cpp.

◆ create() [2/2]

static ShapeRef Shape::create ( ShaderState & st,
PMVMat4fUniform & pmvMatU )
inlinestatic

Definition at line 104 of file Primitives02.cpp.

◆ position() [5/6]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 108 of file Primitives02.cpp.

◆ position() [6/6]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 109 of file Primitives02.cpp.

◆ zOffset() [3/4]

const float & Shape::zOffset ( ) const
inlineconstexprnoexcept

Definition at line 111 of file Primitives02.cpp.

◆ zOffset() [4/4]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 112 of file Primitives02.cpp.

◆ rotation() [5/6]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 114 of file Primitives02.cpp.

◆ rotation() [6/6]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 115 of file Primitives02.cpp.

◆ rotationPivot() [3/4]

const Vec3f & Shape::rotationPivot ( ) const
inlineconstexprnoexcept

Definition at line 117 of file Primitives02.cpp.

◆ rotationPivot() [4/4]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 118 of file Primitives02.cpp.

◆ scale() [3/4]

const Vec3f & Shape::scale ( ) const
inlineconstexprnoexcept

Definition at line 120 of file Primitives02.cpp.

◆ scale() [4/4]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 121 of file Primitives02.cpp.

◆ outlines() [3/4]

const OutlineShape & Shape::outlines ( ) const
inlineconstexprnoexcept

Definition at line 123 of file Primitives02.cpp.

◆ outlines() [4/4]

OutlineShape & Shape::outlines ( )
inlineconstexprnoexcept

Definition at line 124 of file Primitives02.cpp.

◆ color() [3/3]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 126 of file Primitives02.cpp.

◆ setColor() [3/3]

void Shape::setColor ( const Vec4f & c)
inlinenoexcept

Definition at line 127 of file Primitives02.cpp.

◆ update() [2/2]

void Shape::update ( GL & gl)
inline

Definition at line 129 of file Primitives02.cpp.

◆ draw() [3/3]

void Shape::draw ( GL & gl)
inline

Definition at line 135 of file Primitives02.cpp.


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