Gamp v0.0.8
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 WindowSRef &win)
 Dispatch PointerShapeAction to given shape w/ matrix traversal.
 
void display (const WindowSRef &win, const jau::fraction_timespec &) override
 Called by the drawable to initiate rendering by the client.
 
void dispose (const WindowSRef &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 WindowSRef &win)
 Fast loop through all shapes using PointerShapeAction w/o matrix traversal using view-coordinates.
 
bool init (const WindowSRef &win, const jau::fraction_timespec &when) override
 Called by the drawable immediately after the render context is initialized.
 
constexpr Vec3fpan () noexcept
 
const PMVMat4fpmvMatrix () const noexcept
 
PMVMat4fpmvMatrix () noexcept
 
void reshape (const WindowSRef &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 WindowSRef &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 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 379 of file GearsES2.hpp.

Constructor & Destructor Documentation

◆ GearsES2()

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

Definition at line 409 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 428 of file GearsES2.hpp.

◆ setDoRotate()

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

Definition at line 429 of file GearsES2.hpp.

◆ setClearBuffers()

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

Definition at line 430 of file GearsES2.hpp.

◆ setFlipVerticalInGLOrientation()

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

Definition at line 431 of file GearsES2.hpp.

◆ pmvMatrix() [1/2]

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

Definition at line 432 of file GearsES2.hpp.

◆ pmvMatrix() [2/2]

const PMVMat4f & GearsES2::pmvMatrix ( ) const
inlinenoexcept

Definition at line 433 of file GearsES2.hpp.

◆ viewport()

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

Definition at line 434 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 435 of file GearsES2.hpp.

◆ rotEuler() [1/2]

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

Definition at line 436 of file GearsES2.hpp.

◆ setClearColor()

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

Definition at line 438 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 442 of file GearsES2.hpp.

◆ rotEuler() [2/2]

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

Definition at line 447 of file GearsES2.hpp.

◆ setZ()

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

Definition at line 449 of file GearsES2.hpp.

◆ init()

bool GearsES2::init ( const WindowSRef & ,
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 455 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ dispose()

void GearsES2::dispose ( const WindowSRef & ,
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 502 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ reshape()

void GearsES2::reshape ( const WindowSRef & ,
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 514 of file GearsES2.hpp.

◆ reshapeImpl()

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

Definition at line 521 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 571 of file GearsES2.hpp.

Here is the caller graph for this function:

◆ display()

void GearsES2::display ( const WindowSRef & ,
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 579 of file GearsES2.hpp.

◆ findPick()

GearsObjectES2 * GearsES2::findPick ( const PointerShapeAction & action,
const PointerEvent & e,
const WindowSRef & 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 613 of file GearsES2.hpp.

◆ dispatchForShape()

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

Dispatch PointerShapeAction to given shape w/ matrix traversal.

Examples
GearsES2.cpp, and GearsES2.hpp.

Definition at line 633 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: