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

#include <RedSquareES2.hpp>

Inheritance diagram for RedSquareES2:
Collaboration diagram for RedSquareES2:

Public Member Functions

 RedSquareES2 ()
 
 RedSquareES2 ()
 
bool animating () const noexcept
 
bool & animating () noexcept
 
void display (const WindowRef &, const jau::fraction_timespec &when) override
 Called by the drawable to initiate rendering by the client.
 
void display (const WindowRef &win, const jau::fraction_timespec &when) override
 Called by the drawable to initiate rendering by the client.
 
void dispose (const WindowRef &, const jau::fraction_timespec &) override
 Notifies the listener to perform the release of all renderer resources per context, such as memory buffers and shader programs.
 
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.
 
bool init (const WindowRef &, const jau::fraction_timespec &when) override
 Called by the drawable immediately after the render context is initialized.
 
bool init (const WindowRef &win, const jau::fraction_timespec &when) override
 Called by the drawable immediately after the render context is initialized.
 
const PMVMat4fpmv () const noexcept
 
const PMVMat4fpmv () const noexcept
 
PMVMat4fpmv () noexcept
 
PMVMat4fpmv () noexcept
 
void reshape (const WindowRef &, const jau::math::Recti &viewport, const jau::fraction_timespec &) override
 Called by the drawable during the first repaint after the component has been resized.
 
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.
 
std::string toStringImpl () const noexcept override
 
const Rectiviewport () const noexcept
 
const Rectiviewport () const noexcept
 
Rectiviewport () noexcept
 
Rectiviewport () 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
 

Detailed Description

Examples
RedSquareES2.cpp, and RedSquareES2.hpp.

Definition at line 124 of file RedSquare01.cpp.

Constructor & Destructor Documentation

◆ RedSquareES2() [1/2]

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

Definition at line 140 of file RedSquare01.cpp.

Here is the caller graph for this function:

◆ RedSquareES2() [2/2]

RedSquareES2::RedSquareES2 ( )
inline

Definition at line 40 of file RedSquareES2.hpp.

Member Function Documentation

◆ viewport() [1/4]

Recti & RedSquareES2::viewport ( )
inlinenoexcept
Examples
RedSquareES2.hpp.

Definition at line 143 of file RedSquare01.cpp.

Here is the caller graph for this function:

◆ viewport() [2/4]

const Recti & RedSquareES2::viewport ( ) const
inlinenoexcept

Definition at line 144 of file RedSquare01.cpp.

◆ pmv() [1/4]

PMVMat4f & RedSquareES2::pmv ( )
inlinenoexcept
Examples
RedSquareES2.hpp.

Definition at line 146 of file RedSquare01.cpp.

◆ pmv() [2/4]

const PMVMat4f & RedSquareES2::pmv ( ) const
inlinenoexcept

Definition at line 147 of file RedSquare01.cpp.

◆ init() [1/2]

bool RedSquareES2::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
RedSquareES2.cpp.

Definition at line 149 of file RedSquare01.cpp.

Here is the caller graph for this function:

◆ dispose() [1/2]

void RedSquareES2::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
RedSquareES2.cpp, and RedSquareES2.hpp.

Definition at line 204 of file RedSquare01.cpp.

Here is the caller graph for this function:

◆ display() [1/2]

void RedSquareES2::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
RedSquareES2.hpp.

Definition at line 209 of file RedSquare01.cpp.

◆ reshape() [1/2]

void RedSquareES2::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 231 of file RedSquare01.cpp.

◆ viewport() [3/4]

Recti & RedSquareES2::viewport ( )
inlinenoexcept

Definition at line 44 of file RedSquareES2.hpp.

◆ viewport() [4/4]

const Recti & RedSquareES2::viewport ( ) const
inlinenoexcept

Definition at line 45 of file RedSquareES2.hpp.

◆ pmv() [3/4]

PMVMat4f & RedSquareES2::pmv ( )
inlinenoexcept

Definition at line 47 of file RedSquareES2.hpp.

◆ pmv() [4/4]

const PMVMat4f & RedSquareES2::pmv ( ) const
inlinenoexcept

Definition at line 48 of file RedSquareES2.hpp.

◆ animating() [1/2]

bool RedSquareES2::animating ( ) const
inlinenoexcept
Examples
RedSquareES2.cpp, and RedSquareES2.hpp.

Definition at line 49 of file RedSquareES2.hpp.

Here is the caller graph for this function:

◆ animating() [2/2]

bool & RedSquareES2::animating ( )
inlinenoexcept

Definition at line 50 of file RedSquareES2.hpp.

◆ init() [2/2]

bool RedSquareES2::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.

Definition at line 52 of file RedSquareES2.hpp.

◆ dispose() [2/2]

void RedSquareES2::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.

Definition at line 114 of file RedSquareES2.hpp.

◆ reshape() [2/2]

void RedSquareES2::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 120 of file RedSquareES2.hpp.

◆ display() [2/2]

void RedSquareES2::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.

Definition at line 138 of file RedSquareES2.hpp.

◆ toStringImpl()

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

Reimplemented from gamp::wt::RenderListener.

Examples
RedSquareES2.hpp.

Definition at line 165 of file RedSquareES2.hpp.


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