JMGraphics
Loading...
Searching...
No Matches
JMGraphics::Buffer Class Reference

has an fbo and a linked texture. Anything drawn between the buffer.beginDraw() and buffer.endDraw() functions is drawn to the buffer instead of the window. More...

#include <JMGraphics.h>

Public Member Functions

 Buffer (float Width, float Height, JMGraphics *parentObject)
 Buffer (const Buffer &)=delete
Buffer & operator= (const Buffer &)=delete
 Buffer (Buffer &&)=default
Buffer & operator= (Buffer &&)=default
void beginDraw ()
void endDraw ()
float width () const
float height () const
void setSize (float x, float y)
bool isActive () const

Public Attributes

GLuint texture = (GLuint)0
JMGraphicsparent = nullptr

Detailed Description

has an fbo and a linked texture. Anything drawn between the buffer.beginDraw() and buffer.endDraw() functions is drawn to the buffer instead of the window.


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