Gamp v0.0.8
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Primitives02 Class Reference
Inheritance diagram for Primitives02:
Collaboration diagram for Primitives02:

Public Member Functions

 Primitives02 ()
 
bool animating () const noexcept
 
bool & animating () noexcept
 
void display (const WindowSRef &win, const jau::fraction_timespec &when) 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.
 
bool init (const WindowSRef &win, const jau::fraction_timespec &when) override
 Called by the drawable immediately after the render context is initialized.
 
const PMVMat4fpmv () const noexcept
 
PMVMat4fpmv () 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 setOneFrame () noexcept
 
std::string toStringImpl () const noexcept override
 
const Rectiviewport () const 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
Primitives02.cpp.

Definition at line 212 of file Primitives02.cpp.

Constructor & Destructor Documentation

◆ Primitives02()

Primitives02::Primitives02 ( )
inline
Examples
Primitives02.cpp.

Definition at line 231 of file Primitives02.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ viewport() [1/2]

Recti & Primitives02::viewport ( )
inlinenoexcept
Examples
Primitives02.cpp.

Definition at line 243 of file Primitives02.cpp.

Here is the caller graph for this function:

◆ viewport() [2/2]

const Recti & Primitives02::viewport ( ) const
inlinenoexcept

Definition at line 244 of file Primitives02.cpp.

◆ pmv() [1/2]

PMVMat4f & Primitives02::pmv ( )
inlinenoexcept
Examples
Primitives02.cpp.

Definition at line 246 of file Primitives02.cpp.

◆ pmv() [2/2]

const PMVMat4f & Primitives02::pmv ( ) const
inlinenoexcept

Definition at line 247 of file Primitives02.cpp.

◆ animating() [1/2]

bool Primitives02::animating ( ) const
inlinenoexcept
Examples
Primitives02.cpp.

Definition at line 248 of file Primitives02.cpp.

Here is the caller graph for this function:

◆ animating() [2/2]

bool & Primitives02::animating ( )
inlinenoexcept

Definition at line 249 of file Primitives02.cpp.

◆ setOneFrame()

void Primitives02::setOneFrame ( )
inlinenoexcept
Examples
Primitives02.cpp.

Definition at line 250 of file Primitives02.cpp.

◆ init()

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

Definition at line 252 of file Primitives02.cpp.

Here is the caller graph for this function:

◆ dispose()

void Primitives02::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
Primitives02.cpp.

Definition at line 387 of file Primitives02.cpp.

Here is the caller graph for this function:

◆ reshape()

void Primitives02::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 393 of file Primitives02.cpp.

◆ display()

void Primitives02::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
Primitives02.cpp.

Definition at line 408 of file Primitives02.cpp.

◆ toStringImpl()

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

Reimplemented from gamp::wt::RenderListener.

Examples
Primitives02.cpp.

Definition at line 439 of file Primitives02.cpp.


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