Beatmup
|
Stores the rendering context: current program, current mapping in the scene space, common rendering properties, locked bitmaps, etc. More...
#include <rendering_context.h>
Classes | |
class | EventListener |
Public Member Functions | |
void | lockBitmap (AbstractBitmap *bitmap) |
void | unlockBitmap (AbstractBitmap *bitmap) |
GraphicPipeline & | getGpu () |
const ImageResolution & | getOutputResolution () const |
void | blend () |
Initiates the rendering operation. More... | |
void | enableProgram (GL::RenderingPrograms::Operation operation) |
GL::Program & | getProgram () |
void | bindMask (AbstractBitmap &mask) |
void | setMapping (const AffineMapping &mapping) |
const AffineMapping & | getMapping () const |
const float | getOutputWidth () const |
const bool | isRenderingOnScreen () const |
Public Member Functions inherited from Beatmup::BitmapContentLock | |
BitmapContentLock () | |
~BitmapContentLock () | |
void | readLock (GraphicPipeline *gpu, AbstractBitmap *bitmap, ProcessingTarget target) |
Locks content of a bitmap for reading using a specific processing target device. More... | |
void | writeLock (GraphicPipeline *gpu, AbstractBitmap *bitmap, ProcessingTarget target) |
Locks content of a bitmap for writing using a specific processing target device. More... | |
void | unlock (AbstractBitmap *bitmap) |
Drops a lock to the bitmap. More... | |
void | unlockAll () |
Unlocks all the locked bitmaps unconditionally. More... | |
template<const ProcessingTarget target> | |
void | lock (GraphicPipeline *gpu, AbstractBitmap *input, AbstractBitmap *output) |
void | lock (GraphicPipeline *gpu, ProcessingTarget target, AbstractBitmap *input, AbstractBitmap *output) |
template<const ProcessingTarget target> | |
void | lock (GraphicPipeline *gpu, std::initializer_list< AbstractBitmap * > read, std::initializer_list< AbstractBitmap * > write) |
template<typename ... Args> | |
void | unlock (AbstractBitmap *first, Args ... others) |
Private Member Functions | |
RenderingContext (GraphicPipeline &gpu, EventListener *eventListener, const ImageResolution &outputResolution, const float refWidth, const bool renderingOnScreen) | |
Private Attributes | |
EventListener * | eventListener |
AffineMapping | mapping |
ImageResolution | outputResolution |
const float | outputWidth |
const bool | renderingOnScreen |
GraphicPipeline & | gpu |
Friends | |
class | SceneRenderer |
Stores the rendering context: current program, current mapping in the scene space, common rendering properties, locked bitmaps, etc.
Provides a set of tools and shortcuts to access rendering programs routines.
Definition at line 30 of file rendering_context.h.
|
private |
Definition at line 23 of file rendering_context.cpp.
void RenderingContext::lockBitmap | ( | AbstractBitmap * | bitmap | ) |
Definition at line 30 of file rendering_context.cpp.
void RenderingContext::unlockBitmap | ( | AbstractBitmap * | bitmap | ) |
Definition at line 35 of file rendering_context.cpp.
|
inline |
Definition at line 52 of file rendering_context.h.
|
inline |
Definition at line 54 of file rendering_context.h.
void RenderingContext::blend | ( | ) |
Initiates the rendering operation.
Definition at line 40 of file rendering_context.cpp.
void RenderingContext::enableProgram | ( | GL::RenderingPrograms::Operation | operation | ) |
Definition at line 45 of file rendering_context.cpp.
GL::Program & RenderingContext::getProgram | ( | ) |
Definition at line 50 of file rendering_context.cpp.
void RenderingContext::bindMask | ( | AbstractBitmap & | mask | ) |
Definition at line 55 of file rendering_context.cpp.
|
inline |
Definition at line 66 of file rendering_context.h.
|
inline |
Definition at line 67 of file rendering_context.h.
|
inline |
Definition at line 69 of file rendering_context.h.
|
inline |
Definition at line 70 of file rendering_context.h.
|
friend |
Definition at line 31 of file rendering_context.h.
|
private |
Definition at line 39 of file rendering_context.h.
|
private |
Definition at line 40 of file rendering_context.h.
|
private |
Definition at line 42 of file rendering_context.h.
|
private |
Definition at line 43 of file rendering_context.h.
|
private |
Definition at line 44 of file rendering_context.h.
|
private |
Definition at line 46 of file rendering_context.h.