|
PrOGL
processing open-gl interface
|
PrOGL renderer. More...

Package Functions | |
| Renderer (String path, int w, int h) | |
| Renderer Constructor without Uniforms. | |
| Renderer (String path, int w, int h, Uniform uniform) | |
| Renderer Constructor with Uniform. | |
| Renderer (String path, int w, int h, ArrayList< Uniform > uniforms) | |
| Renderer Constructor with Uniforms. | |
| void | render () |
| renders the shader and then draws it to the surface. | |
| void | update () |
| attempts to update all updatable internal Uniforms. | |
| void | print () |
| print Renderer class data for debugging purposes. | |
Package Attributes | |
| Shader | sh |
| shader object | |
| PGraphics | surface |
| surface to render to | |
| PVector | pos |
| position within the window | |
| int | w |
| width to render the surface as | |
| int | h |
| height to render the surface as | |
|
package |
Renderer Constructor without Uniforms.
This constructs the internal Shader object with only the default uniforms time, resolution, and mouse.
| path | relative path to shader file |
| w | width of surface in pixels |
| h | height of surface in pixels |
Definition at line 27 of file Renderer.pde.
|
package |
Renderer Constructor with Uniform.
This constructs the internal Shader object with the default uniforms along with whatever we add.
| path | relative path to shader file |
| w | width of surface in pixels |
| h | height of surface in pixels |
| uniform | uniform object to initialize with shader |
Definition at line 44 of file Renderer.pde.
|
package |
Renderer Constructor with Uniforms.
This constructs the internal Shader object with default uniforms and a list of other user defined Uniforms.
| path | relative path to shader file |
| w | width of surface in pixels |
| h | height of surface in pixels |
| uniforms | an ArrayList of uniform objects to initialize |
Definition at line 61 of file Renderer.pde.
|
package |
|
package |
renders the shader and then draws it to the surface.
Definition at line 72 of file Renderer.pde.
References pos, Shader.program, sh, surface, and update().

|
package |
attempts to update all updatable internal Uniforms.
Definition at line 84 of file Renderer.pde.
References sh, and Shader.update_uniforms().

|
package |
height to render the surface as
Definition at line 16 of file Renderer.pde.
|
package |
position within the window
Definition at line 14 of file Renderer.pde.
|
package |
shader object
Definition at line 12 of file Renderer.pde.
|
package |
surface to render to
Definition at line 13 of file Renderer.pde.
|
package |
width to render the surface as
Definition at line 15 of file Renderer.pde.