|
Beatmup
|
Binding of different input/output storages/texture handlers to a GLSL program. More...
#include <storage.h>
Public Member Functions | |
| Binder (GraphicPipeline &gpu) | |
| bool | begin (GL::Program &program, Storage::View &output, int channel) |
| Starts binding things to a program. More... | |
| void | begin (GL::Program &program, AbstractBitmap &output) |
| Starts binding things to a program which renders to a bitmap. More... | |
| void | operator() (Storage::View &input, const char *name) |
| Binds a storage (all of its textures) to a uniform sampler array variable. More... | |
| void | operator() (Storage::View &input, const char *name, int channel) |
| Binds a single texture from a storage to a uniform sampler variable. More... | |
| void | operator() (GL::TextureHandler &input, const char *name) |
Private Attributes | |
| GraphicPipeline & | gpu |
| GL::Program * | program |
| GL::handle_t | outputTexture |
| int | unit |
Binding of different input/output storages/texture handlers to a GLSL program.
|
inline |
| bool Storage::Binder::begin | ( | GL::Program & | program, |
| Storage::View & | output, | ||
| int | channel | ||
| ) |
Starts binding things to a program.
| [in,out] | program | The program |
| [in,out] | output | Output storage |
| [in] | channel | Output storage channel to be filled |
true if the program and the output texture are already bound, i.e. are the same as in previous binding. Definition at line 543 of file storage.cpp.
| void Storage::Binder::begin | ( | GL::Program & | program, |
| AbstractBitmap & | output | ||
| ) |
Starts binding things to a program which renders to a bitmap.
| [in,out] | program | The program |
| [in,out] | output | The output bitmap |
Definition at line 588 of file storage.cpp.
| void Storage::Binder::operator() | ( | Storage::View & | input, |
| const char * | name | ||
| ) |
Binds a storage (all of its textures) to a uniform sampler array variable.
| [in] | input | The storage |
| [in] | name | The variable name |
Definition at line 597 of file storage.cpp.
| void Storage::Binder::operator() | ( | Storage::View & | input, |
| const char * | name, | ||
| int | channel | ||
| ) |
Binds a single texture from a storage to a uniform sampler variable.
| [in] | input | The storage |
| [in] | name | The variable name |
| [in] | channel | The channel number |
Definition at line 609 of file storage.cpp.
| void Storage::Binder::operator() | ( | GL::TextureHandler & | input, |
| const char * | name | ||
| ) |
Definition at line 626 of file storage.cpp.
|
private |
|
private |
|
private |