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

GearsObjectES2. More...

#include <GearsES2.hpp>

Collaboration diagram for GearsObjectES2:

Public Member Functions

 GearsObjectES2 (int name, ShaderState &st, const jau::math::Vec4f &gearColor, float inner_radius, float outer_radius, float width, GLsizei teeth, float tooth_depth, jau::math::Vec3f tx, PMVMat4f &pmvMatrix, GLUniformDataRef pmvMatrixUniform, GLUniformVec4fRef colorUniform)
 
bool dispatchAction (const PointerShapeAction &action, const PointerEvent &e, const WindowRef &win)
 
void dispose (GL &gl)
 
void draw (GL &gl, float ang_rad)
 
void initGL (GL &gl)
 
const jau::math::Mat4fmatPMvi () const noexcept
 
constexpr int name () const noexcept
 
const jau::math::geom::AABBox3fobjBounds () const noexcept
 
bool & picked () noexcept
 
std::string toString () const noexcept
 
const jau::math::geom::AABBox3fviewBounds () const noexcept
 

Static Public Attributes

static constexpr jau::math::Vec4f blue = jau::math::Vec4f(0.2f, 0.2f, 1.0f, 0.7f)
 
static constexpr jau::math::Vec4f green = jau::math::Vec4f(0.0f, 0.8f, 0.2f, 0.7f)
 
static constexpr jau::math::Vec4f red = jau::math::Vec4f(0.8f, 0.1f, 0.0f, 0.7f)
 

Detailed Description

GearsObjectES2.

Author
Brian Paul (converted to C++ and added pixel-lightning by Sven Gothel)
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 55 of file GearsES2.hpp.

Constructor & Destructor Documentation

◆ GearsObjectES2()

GearsObjectES2::GearsObjectES2 ( int name,
ShaderState & st,
const jau::math::Vec4f & gearColor,
float inner_radius,
float outer_radius,
float width,
GLsizei teeth,
float tooth_depth,
jau::math::Vec3f tx,
PMVMat4f & pmvMatrix,
GLUniformDataRef pmvMatrixUniform,
GLUniformVec4fRef colorUniform )
inline
Examples
GearsES2.hpp.

Definition at line 129 of file GearsES2.hpp.

Member Function Documentation

◆ initGL()

void GearsObjectES2::initGL ( GL & gl)
inline

Definition at line 294 of file GearsES2.hpp.

◆ dispose()

void GearsObjectES2::dispose ( GL & gl)
inline
Examples
GearsES2.hpp.

Definition at line 303 of file GearsES2.hpp.

◆ draw()

void GearsObjectES2::draw ( GL & gl,
float ang_rad )
inline

Definition at line 331 of file GearsES2.hpp.

◆ dispatchAction()

bool GearsObjectES2::dispatchAction ( const PointerShapeAction & action,
const PointerEvent & e,
const WindowRef & win )
inline
Examples
GearsES2.hpp.

Definition at line 356 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ picked()

bool & GearsObjectES2::picked ( )
inlinenoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 366 of file GearsES2.hpp.

◆ objBounds()

const jau::math::geom::AABBox3f & GearsObjectES2::objBounds ( ) const
inlinenoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 367 of file GearsES2.hpp.

◆ viewBounds()

const jau::math::geom::AABBox3f & GearsObjectES2::viewBounds ( ) const
inlinenoexcept
Examples
GearsES2.hpp.

Definition at line 368 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ matPMvi()

const jau::math::Mat4f & GearsObjectES2::matPMvi ( ) const
inlinenoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 369 of file GearsES2.hpp.

◆ name()

int GearsObjectES2::name ( ) const
inlineconstexprnoexcept
Examples
GearsES2.hpp.

Definition at line 370 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ toString()

std::string GearsObjectES2::toString ( ) const
inlinenoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 371 of file GearsES2.hpp.

Member Data Documentation

◆ red

jau::math::Vec4f GearsObjectES2::red = jau::math::Vec4f(0.8f, 0.1f, 0.0f, 0.7f)
staticconstexpr
Examples
GearsES2.hpp.

Definition at line 57 of file GearsES2.hpp.

◆ green

jau::math::Vec4f GearsObjectES2::green = jau::math::Vec4f(0.0f, 0.8f, 0.2f, 0.7f)
staticconstexpr
Examples
GearsES2.hpp.

Definition at line 58 of file GearsES2.hpp.

◆ blue

jau::math::Vec4f GearsObjectES2::blue = jau::math::Vec4f(0.2f, 0.2f, 1.0f, 0.7f)
staticconstexpr
Examples
GearsES2.hpp.

Definition at line 59 of file GearsES2.hpp.


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