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

GearsES2. More...

#include <GearsES2.hpp>

Inheritance diagram for GearsES2:
Collaboration diagram for GearsES2:

Public Member Functions

 GearsES2 ()
 
bool dispatchForShape (GearsObjectES2 &shape, const PointerShapeAction &action, const PointerEvent &e, const WindowRef &win)
 Dispatch PointerShapeAction to given shape w/ matrix traversal.
 
void display (const WindowRef &win, const jau::fraction_timespec &) override
 Called by the drawable to initiate rendering by the client.
 
void dispose (const WindowRef &win, const jau::fraction_timespec &when) override
 Notifies the listener to perform the release of all renderer resources per context, such as memory buffers and shader programs.
 
constexpr bool doRotate () const noexcept
 
GearsObjectES2findPick (const PointerShapeAction &action, const PointerEvent &e, const WindowRef &win)
 Fast loop through all shapes using PointerShapeAction w/o matrix traversal using view-coordinates.
 
const PMVMat4fgetPMVMatrix () const noexcept
 
bool init (const WindowRef &win, const jau::fraction_timespec &when) override
 Called by the drawable immediately after the render context is initialized.
 
constexpr Vec3fpan () noexcept
 
constexpr const PMVMat4fpmvMatrix () const noexcept
 
constexpr PMVMat4fpmvMatrix () noexcept
 
void reshape (const WindowRef &win, const jau::math::Recti &viewport, const jau::fraction_timespec &when) override
 Called by the drawable during the first repaint after the component has been resized.
 
void reshapeImpl (const WindowRef &win, const jau::math::Recti &viewport, float imageWidth, float imageHeight, const jau::fraction_timespec &when)
 
constexpr const jau::math::Vec3frotEuler () const noexcept
 
constexpr jau::math::Vec3frotEuler () noexcept
 
constexpr void setClearBuffers (bool v) noexcept
 
void setClearColor (const jau::math::Vec4f &clearColor) noexcept
 
constexpr void setDoRotate (bool rotate) noexcept
 
constexpr void setFlipVerticalInGLOrientation (bool v) noexcept
 
void setGearsColors (const jau::math::Vec4f &gear1Color, const jau::math::Vec4f &gear2Color, const jau::math::Vec4f &gear3Color) noexcept
 
void setZ (float zNear, float zFar, float zViewDist)
 
std::string toStringImpl () const noexcept override
 
constexpr bool usingMappedBuffers () const noexcept
 
constexpr const jau::math::Rectiviewport () const noexcept
 
- Public Member Functions inherited from gamp::wt::RenderListener
constexpr RenderListener (Private) noexcept
 Private ctor for shared_ptr<RenderListener> instance method w/o public ctor.
 
virtual ~RenderListener () noexcept=default
 
RenderActions pendingActions () const noexcept
 
RenderActionspendingActions () noexcept
 
void setPendingActions (RenderActions v) noexcept
 
std::string toString () const noexcept
 

Static Public Member Functions

static constexpr float getTeethRotation (int name, float adeg) noexcept
 

Detailed Description

GearsES2.

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

Definition at line 378 of file GearsES2.hpp.

Constructor & Destructor Documentation

◆ GearsES2()

GearsES2::GearsES2 ( )
inline
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 408 of file GearsES2.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ doRotate()

bool GearsES2::doRotate ( ) const
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 423 of file GearsES2.hpp.

◆ setDoRotate()

void GearsES2::setDoRotate ( bool rotate)
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 424 of file GearsES2.hpp.

◆ setClearBuffers()

void GearsES2::setClearBuffers ( bool v)
inlineconstexprnoexcept
Examples
GearsES2.hpp.

Definition at line 425 of file GearsES2.hpp.

◆ setFlipVerticalInGLOrientation()

void GearsES2::setFlipVerticalInGLOrientation ( bool v)
inlineconstexprnoexcept
Examples
GearsES2.hpp.

Definition at line 426 of file GearsES2.hpp.

◆ pmvMatrix() [1/2]

PMVMat4f & GearsES2::pmvMatrix ( )
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 427 of file GearsES2.hpp.

◆ pmvMatrix() [2/2]

const PMVMat4f & GearsES2::pmvMatrix ( ) const
inlineconstexprnoexcept

Definition at line 428 of file GearsES2.hpp.

◆ viewport()

const jau::math::Recti & GearsES2::viewport ( ) const
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 429 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ pan()

Vec3f & GearsES2::pan ( )
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 430 of file GearsES2.hpp.

◆ rotEuler() [1/2]

jau::math::Vec3f & GearsES2::rotEuler ( )
inlineconstexprnoexcept
Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 431 of file GearsES2.hpp.

◆ setClearColor()

void GearsES2::setClearColor ( const jau::math::Vec4f & clearColor)
inlinenoexcept
Examples
GearsES2.hpp.

Definition at line 433 of file GearsES2.hpp.

◆ setGearsColors()

void GearsES2::setGearsColors ( const jau::math::Vec4f & gear1Color,
const jau::math::Vec4f & gear2Color,
const jau::math::Vec4f & gear3Color )
inlinenoexcept
Examples
GearsES2.hpp.

Definition at line 437 of file GearsES2.hpp.

◆ rotEuler() [2/2]

const jau::math::Vec3f & GearsES2::rotEuler ( ) const
inlineconstexprnoexcept

Definition at line 442 of file GearsES2.hpp.

◆ usingMappedBuffers()

bool GearsES2::usingMappedBuffers ( ) const
inlineconstexprnoexcept
Examples
GearsES2.hpp.

Definition at line 443 of file GearsES2.hpp.

◆ setZ()

void GearsES2::setZ ( float zNear,
float zFar,
float zViewDist )
inline
Examples
GearsES2.hpp.

Definition at line 445 of file GearsES2.hpp.

◆ getPMVMatrix()

const PMVMat4f & GearsES2::getPMVMatrix ( ) const
inlinenoexcept
Examples
GearsES2.hpp.

Definition at line 450 of file GearsES2.hpp.

◆ init()

bool GearsES2::init ( const WindowRef & ,
const jau::fraction_timespec &  )
inlineoverridevirtual

Called by the drawable immediately after the render context is initialized.

Can be used to perform one-time renderer initialization per context, such as setup of lights and display lists.

Note that this method may be called more than once if the underlying render context for the drawable is destroyed and recreated.

Returns
true if initialization is completed, false if not initialized yet and init shall be called again

Implements gamp::wt::RenderListener.

Examples
GearsES2.cpp.

Definition at line 452 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ dispose()

void GearsES2::dispose ( const WindowRef & ,
const jau::fraction_timespec &  )
inlineoverridevirtual

Notifies the listener to perform the release of all renderer resources per context, such as memory buffers and shader programs.

Called by the drawable before the render context is destroyed by an external event.

Note that this event does not imply the end of life of the application.

Implements gamp::wt::RenderListener.

Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 505 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ reshape()

void GearsES2::reshape ( const WindowRef & ,
const jau::math::Recti & ,
const jau::fraction_timespec &  )
inlineoverridevirtual

Called by the drawable during the first repaint after the component has been resized.

The client can update it's viewport associated data and view volume of the window/surface appropriately.

For efficiency the renderer viewport has already been updated, e.g. via glViewport(x, y, width, height) when this method is called.

Parameters
drawablethe triggering GLAutoDrawable
viewportthe viewport in pixel units

Implements gamp::wt::RenderListener.

Definition at line 517 of file GearsES2.hpp.

◆ reshapeImpl()

void GearsES2::reshapeImpl ( const WindowRef & win,
const jau::math::Recti & viewport,
float imageWidth,
float imageHeight,
const jau::fraction_timespec & when )
inline
Examples
GearsES2.hpp.

Definition at line 524 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ getTeethRotation()

static constexpr float GearsES2::getTeethRotation ( int name,
float adeg )
inlinestaticconstexprnoexcept
Examples
GearsES2.hpp.

Definition at line 573 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ display()

void GearsES2::display ( const WindowRef & ,
const jau::fraction_timespec &  )
inlineoverridevirtual

Called by the drawable to initiate rendering by the client.

After all listener have been notified of a display event, the drawable will swap its buffers.

Implements gamp::wt::RenderListener.

Examples
GearsES2.hpp.

Definition at line 581 of file GearsES2.hpp.

◆ findPick()

GearsObjectES2 * GearsES2::findPick ( const PointerShapeAction & action,
const PointerEvent & e,
const WindowRef & win )
inline

Fast loop through all shapes using PointerShapeAction w/o matrix traversal using view-coordinates.

Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 614 of file GearsES2.hpp.

◆ dispatchForShape()

bool GearsES2::dispatchForShape ( GearsObjectES2 & shape,
const PointerShapeAction & action,
const PointerEvent & e,
const WindowRef & win )
inline

Dispatch PointerShapeAction to given shape w/ matrix traversal.

Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 634 of file GearsES2.hpp.

◆ toStringImpl()

std::string GearsES2::toStringImpl ( ) const
inlineoverridevirtualnoexcept

Reimplemented from gamp::wt::RenderListener.

Examples
GearsES2.hpp.

Definition at line 665 of file GearsES2.hpp.


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