|
| 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 |
|
GearsObjectES2 * | findPick (const PointerShapeAction &action, const PointerEvent &e, const WindowRef &win) |
| Fast loop through all shapes using PointerShapeAction w/o matrix traversal using view-coordinates.
|
|
const PMVMat4f & | getPMVMatrix () 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 Vec3f & | pan () noexcept |
|
constexpr const PMVMat4f & | pmvMatrix () const noexcept |
|
constexpr PMVMat4f & | pmvMatrix () 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::Vec3f & | rotEuler () const noexcept |
|
constexpr jau::math::Vec3f & | rotEuler () 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::Recti & | viewport () const noexcept |
|
constexpr | RenderListener (Private) noexcept |
| Private ctor for shared_ptr<RenderListener> instance method w/o public ctor.
|
|
virtual | ~RenderListener () noexcept=default |
|
RenderActions | pendingActions () const noexcept |
|
RenderActions & | pendingActions () noexcept |
|
void | setPendingActions (RenderActions v) noexcept |
|
std::string | toString () const noexcept |
|
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.
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.
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.
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
-
drawable | the triggering GLAutoDrawable |
viewport | the viewport in pixel units |
Implements gamp::wt::RenderListener.
Definition at line 517 of file GearsES2.hpp.