Gamp v0.0.7-67-g7798ac4
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, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
 Shape (Private, GraphRenderer &renderer)
 
 Shape (Private, GraphRenderer &renderer)
 
 Shape (Private, ShaderState &st, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
 Shape (Private, ShaderState &st, GraphRenderer &renderer)
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
void destroy (GL &gl)
 
void destroy (GL &gl)
 
void destroy (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
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 std::vector< OutlineShape > & outlineShapes () const noexcept
 
constexpr const std::vector< OutlineShape > & outlineShapes () const noexcept
 
constexpr std::vector< OutlineShape > & outlineShapes () noexcept
 
constexpr std::vector< OutlineShape > & outlineShapes () noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const 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 Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const 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 Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
void seal (GL &gl, bool seal)
 
constexpr void set_position (Vec3f new_pos) noexcept
 
constexpr void set_position (Vec3f new_pos) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void tick (float dt)
 Game ..
 
void tick (float dt)
 Game ..
 
void update (GL &gl)
 
void update (GL &gl)
 
void update (GL &gl)
 
void update (GL &gl)
 
float & velo () noexcept
 
float & velo () noexcept
 
constexpr const GLFloatArrayDataServerSRefvertices () const noexcept
 
constexpr GLFloatArrayDataServerSRefvertices () noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 

Static Public Member Functions

static ShapeRef createShared (GraphRenderer &renderer)
 
static ShapeRef createShared (GraphRenderer &renderer)
 
static ShapeRef createShared (ShaderState &st, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
static ShapeRef createShared (ShaderState &st, GraphRenderer &renderer)
 

Detailed Description

Examples
GraphShapes01.cpp, and Primitives02.cpp.

Definition at line 441 of file GraphShapes01.cpp.

Constructor & Destructor Documentation

◆ Shape() [1/5]

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

Definition at line 463 of file GraphShapes01.cpp.

◆ Shape() [2/5]

Shape::Shape ( Private ,
GraphRenderer & renderer )
inline

Definition at line 466 of file GraphShapes02.cpp.

◆ Shape() [3/5]

Shape::Shape ( GLenum type,
ShaderState & st,
GLUniformSyncPMVMat4f & pmvMatU,
GLUniformVec4f & color )
inline

Definition at line 60 of file Primitives01.cpp.

◆ Shape() [4/5]

Shape::Shape ( Private ,
ShaderState & st,
GLUniformSyncPMVMat4f & pmvMatU,
GLUniformVec4f & color )
inline

Definition at line 83 of file Primitives02.cpp.

◆ Shape() [5/5]

Shape::Shape ( Private ,
GraphRenderer & renderer )
inline

Definition at line 344 of file Primitives03.cpp.

Member Function Documentation

◆ createShared() [1/4]

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

Definition at line 470 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ destroy() [1/3]

void Shape::destroy ( GL & gl)
inline
Examples
GraphShapes01.cpp.

Definition at line 474 of file GraphShapes01.cpp.

◆ position() [1/10]

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

Definition at line 478 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ position() [2/10]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 479 of file GraphShapes01.cpp.

◆ zOffset() [1/8]

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

Definition at line 481 of file GraphShapes01.cpp.

◆ zOffset() [2/8]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 482 of file GraphShapes01.cpp.

◆ rotation() [1/10]

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

Definition at line 484 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ rotation() [2/10]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 485 of file GraphShapes01.cpp.

◆ rotationPivot() [1/8]

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

Definition at line 487 of file GraphShapes01.cpp.

◆ rotationPivot() [2/8]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 488 of file GraphShapes01.cpp.

◆ scale() [1/8]

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

Definition at line 490 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ scale() [2/8]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 491 of file GraphShapes01.cpp.

◆ outlines() [1/4]

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

Definition at line 493 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ outlines() [2/4]

OutlineShape & Shape::outlines ( )
inlineconstexprnoexcept

Definition at line 494 of file GraphShapes01.cpp.

◆ color() [1/5]

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

Definition at line 496 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ setColor() [1/5]

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

Definition at line 497 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ update() [1/4]

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

Definition at line 499 of file GraphShapes01.cpp.

Here is the caller graph for this function:

◆ draw() [1/5]

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

Definition at line 504 of file GraphShapes01.cpp.

◆ createShared() [2/4]

static ShapeRef Shape::createShared ( GraphRenderer & renderer)
inlinestatic

Definition at line 472 of file GraphShapes02.cpp.

◆ destroy() [2/3]

void Shape::destroy ( GL & gl)
inline

Definition at line 476 of file GraphShapes02.cpp.

◆ position() [3/10]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 480 of file GraphShapes02.cpp.

◆ position() [4/10]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 481 of file GraphShapes02.cpp.

◆ set_position() [1/2]

void Shape::set_position ( Vec3f new_pos)
inlineconstexprnoexcept

Definition at line 482 of file GraphShapes02.cpp.

◆ zOffset() [3/8]

const float & Shape::zOffset ( ) const
inlineconstexprnoexcept

Definition at line 484 of file GraphShapes02.cpp.

◆ zOffset() [4/8]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 485 of file GraphShapes02.cpp.

◆ rotation() [3/10]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 487 of file GraphShapes02.cpp.

◆ rotation() [4/10]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 488 of file GraphShapes02.cpp.

◆ rotationPivot() [3/8]

const Vec3f & Shape::rotationPivot ( ) const
inlineconstexprnoexcept

Definition at line 490 of file GraphShapes02.cpp.

◆ rotationPivot() [4/8]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 491 of file GraphShapes02.cpp.

◆ scale() [3/8]

const Vec3f & Shape::scale ( ) const
inlineconstexprnoexcept

Definition at line 493 of file GraphShapes02.cpp.

◆ scale() [4/8]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 494 of file GraphShapes02.cpp.

◆ outlineShapes() [1/4]

const std::vector< OutlineShape > & Shape::outlineShapes ( ) const
inlineconstexprnoexcept

Definition at line 496 of file GraphShapes02.cpp.

Here is the caller graph for this function:

◆ outlineShapes() [2/4]

std::vector< OutlineShape > & Shape::outlineShapes ( )
inlineconstexprnoexcept

Definition at line 497 of file GraphShapes02.cpp.

◆ color() [2/5]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 499 of file GraphShapes02.cpp.

◆ setColor() [2/5]

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

Definition at line 500 of file GraphShapes02.cpp.

◆ update() [2/4]

void Shape::update ( GL & gl)
inline

Definition at line 502 of file GraphShapes02.cpp.

◆ draw() [2/5]

void Shape::draw ( GL & gl)
inline

Definition at line 509 of file GraphShapes02.cpp.

◆ tick() [1/2]

void Shape::tick ( float dt)
inline

Game ..

Definition at line 522 of file GraphShapes02.cpp.

◆ velo() [1/2]

float & Shape::velo ( )
inlinenoexcept

Definition at line 533 of file GraphShapes02.cpp.

◆ position() [5/10]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 69 of file Primitives01.cpp.

◆ position() [6/10]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 70 of file Primitives01.cpp.

◆ rotation() [5/10]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 72 of file Primitives01.cpp.

◆ rotation() [6/10]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 73 of file Primitives01.cpp.

◆ vertices() [1/2]

const GLFloatArrayDataServerSRef & Shape::vertices ( ) const
inlineconstexprnoexcept

Definition at line 75 of file Primitives01.cpp.

◆ vertices() [2/2]

GLFloatArrayDataServerSRef & Shape::vertices ( )
inlineconstexprnoexcept

Definition at line 76 of file Primitives01.cpp.

◆ color() [3/5]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 78 of file Primitives01.cpp.

◆ setColor() [3/5]

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

Definition at line 79 of file Primitives01.cpp.

◆ seal()

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

Definition at line 81 of file Primitives01.cpp.

Here is the caller graph for this function:

◆ draw() [3/5]

void Shape::draw ( GL & gl)
inline

Definition at line 84 of file Primitives01.cpp.

◆ createShared() [3/4]

static ShapeRef Shape::createShared ( ShaderState & st,
GLUniformSyncPMVMat4f & pmvMatU,
GLUniformVec4f & color )
inlinestatic

Definition at line 93 of file Primitives02.cpp.

◆ position() [7/10]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 97 of file Primitives02.cpp.

◆ position() [8/10]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 98 of file Primitives02.cpp.

◆ zOffset() [5/8]

const float & Shape::zOffset ( ) const
inlineconstexprnoexcept

Definition at line 100 of file Primitives02.cpp.

◆ zOffset() [6/8]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 101 of file Primitives02.cpp.

◆ rotation() [7/10]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 103 of file Primitives02.cpp.

◆ rotation() [8/10]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 104 of file Primitives02.cpp.

◆ rotationPivot() [5/8]

const Vec3f & Shape::rotationPivot ( ) const
inlineconstexprnoexcept

Definition at line 106 of file Primitives02.cpp.

◆ rotationPivot() [6/8]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 107 of file Primitives02.cpp.

◆ scale() [5/8]

const Vec3f & Shape::scale ( ) const
inlineconstexprnoexcept

Definition at line 109 of file Primitives02.cpp.

◆ scale() [6/8]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 110 of file Primitives02.cpp.

◆ outlines() [3/4]

const OutlineShape & Shape::outlines ( ) const
inlineconstexprnoexcept

Definition at line 112 of file Primitives02.cpp.

◆ outlines() [4/4]

OutlineShape & Shape::outlines ( )
inlineconstexprnoexcept

Definition at line 113 of file Primitives02.cpp.

◆ color() [4/5]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 115 of file Primitives02.cpp.

◆ setColor() [4/5]

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

Definition at line 116 of file Primitives02.cpp.

◆ update() [3/4]

void Shape::update ( GL & gl)
inline

Definition at line 118 of file Primitives02.cpp.

◆ draw() [4/5]

void Shape::draw ( GL & gl)
inline

Definition at line 124 of file Primitives02.cpp.

◆ createShared() [4/4]

static ShapeRef Shape::createShared ( GraphRenderer & renderer)
inlinestatic

Definition at line 350 of file Primitives03.cpp.

◆ destroy() [3/3]

void Shape::destroy ( GL & gl)
inline

Definition at line 354 of file Primitives03.cpp.

◆ position() [9/10]

const Vec3f & Shape::position ( ) const
inlineconstexprnoexcept

Definition at line 358 of file Primitives03.cpp.

◆ position() [10/10]

Vec3f & Shape::position ( )
inlineconstexprnoexcept

Definition at line 359 of file Primitives03.cpp.

◆ set_position() [2/2]

void Shape::set_position ( Vec3f new_pos)
inlineconstexprnoexcept

Definition at line 360 of file Primitives03.cpp.

◆ zOffset() [7/8]

const float & Shape::zOffset ( ) const
inlineconstexprnoexcept

Definition at line 362 of file Primitives03.cpp.

◆ zOffset() [8/8]

float & Shape::zOffset ( )
inlineconstexprnoexcept

Definition at line 363 of file Primitives03.cpp.

◆ rotation() [9/10]

const Quat4f & Shape::rotation ( ) const
inlineconstexprnoexcept

Definition at line 365 of file Primitives03.cpp.

◆ rotation() [10/10]

Quat4f & Shape::rotation ( )
inlineconstexprnoexcept

Definition at line 366 of file Primitives03.cpp.

◆ rotationPivot() [7/8]

const Vec3f & Shape::rotationPivot ( ) const
inlineconstexprnoexcept

Definition at line 368 of file Primitives03.cpp.

◆ rotationPivot() [8/8]

Vec3f & Shape::rotationPivot ( )
inlineconstexprnoexcept

Definition at line 369 of file Primitives03.cpp.

◆ scale() [7/8]

const Vec3f & Shape::scale ( ) const
inlineconstexprnoexcept

Definition at line 371 of file Primitives03.cpp.

◆ scale() [8/8]

Vec3f & Shape::scale ( )
inlineconstexprnoexcept

Definition at line 372 of file Primitives03.cpp.

◆ outlineShapes() [3/4]

const std::vector< OutlineShape > & Shape::outlineShapes ( ) const
inlineconstexprnoexcept

Definition at line 374 of file Primitives03.cpp.

◆ outlineShapes() [4/4]

std::vector< OutlineShape > & Shape::outlineShapes ( )
inlineconstexprnoexcept

Definition at line 375 of file Primitives03.cpp.

◆ color() [5/5]

const Vec4f & Shape::color ( ) const
inlinenoexcept

Definition at line 377 of file Primitives03.cpp.

◆ setColor() [5/5]

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

Definition at line 378 of file Primitives03.cpp.

◆ update() [4/4]

void Shape::update ( GL & gl)
inline

Definition at line 380 of file Primitives03.cpp.

◆ draw() [5/5]

void Shape::draw ( GL & gl)
inline

Definition at line 387 of file Primitives03.cpp.

◆ tick() [2/2]

void Shape::tick ( float dt)
inline

Game ..

Definition at line 400 of file Primitives03.cpp.

◆ velo() [2/2]

float & Shape::velo ( )
inlinenoexcept

Definition at line 410 of file Primitives03.cpp.


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