ImFusion C++ SDK 4.4.0
ImFusion::GL::FullscreenSquare Class Reference

#include <ImFusion/Core/GL/FullscreenSquare.h>

Helper class to easily render a full-screen quad. More...

Inheritance diagram for ImFusion::GL::FullscreenSquare:

Detailed Description

Helper class to easily render a full-screen quad.

The rectangle is created as a triangle strip with 4 vertices with the position ([-1..1], [-1..1], 0) and the texture coordinates ([0..1], [0..1], 0). Position attributes are always at location 0 and texture coordinate attributes at location 1 to be compatible with GL::FixedFunctionPipeline.

Note
This class is only a wrapper around a VertexBuffer. You need to set the shader environ that performs the actual rendering yourself, e.g. using FixedFunctionPipeline.
See also
GL::VertexBuffer::createFullscreenSquare()

Public Member Functions

void draw (Primitive primitive)
void drawOutline ()
void drawFilled ()

Additional Inherited Members

Static Public Member Functions inherited from ImFusion::GL::InstanceManager< FullscreenSquare >
static FullscreenSquarecachedInstance ()
 Returns the cached instance of type T for the currently active OpenGL context.

The documentation for this class was generated from the following file:
  • ImFusion/Core/GL/FullscreenSquare.h
Search Tab / S to search, Esc to close