|
Marbellous
Marbellous, a WebApp to generate paper marbling patterns.
|
Singleton representing the visible WebGL Context. More...
#include <WGLContext.hpp>

Public Member Functions | |
| WGLContext ()=delete | |
| WGLContext (WGLContext const &)=delete | |
| void | operator= (WGLContext const &)=delete |
| WGLContext & | operator= (WGLContext &&)=delete |
| WGLContext (WGLContext &&)=delete | |
| void | setDropRes (size_t x) |
| Set the resolution for drop state. More... | |
| size_t | getDropRes () |
| Get the drop state resolution. More... | |
| void | setRakeRes (size_t x) |
| Set the resolution for drop state. More... | |
| size_t | getRakeRes () |
| Get the drop state resolution. More... | |
| void | updateBGColor () |
| Update the BG color using Options singleton. More... | |
Static Public Member Functions | |
| static WGLContext *const | getContext () |
| get the current context. More... | |
Friends | |
| void | _initWGLContext (const char *canvasID, size_t x) |
| < Friend function to use for initialization. More... | |
Singleton representing the visible WebGL Context.
Needs to be initialized on start up by initBackend() function. Directly refers to the html5 canvas in the front end. Usage of a html5 canvas is the only assumption on the frontend.
|
delete |
|
delete |
|
delete |
|
static |
get the current context.

| size_t WGLContext::getDropRes | ( | ) |
Get the drop state resolution.

| size_t WGLContext::getRakeRes | ( | ) |
Get the drop state resolution.

|
delete |
|
delete |
| void WGLContext::setDropRes | ( | size_t | x | ) |
Set the resolution for drop state.
| x | Side lenth in pixels. |
| void WGLContext::setRakeRes | ( | size_t | x | ) |
Set the resolution for drop state.
| x | Side lenth in pixels. |
| void WGLContext::updateBGColor | ( | ) |
Update the BG color using Options singleton.


|
friend |
< Friend function to use for initialization.
Friend function of WGLContext
| canvasID | CSS identifier of the HTML5 canvas to use. |
| x | Resolution of the canvas will be set to x times x. |