#include <texture.h>
Public Member Functions | |
Texture (int _width, int _height, int _bits=32) | |
void | upload (float4 *data) |
void | download (float4 *data) |
void | clear (float4 *val=NULL) |
float4 | reduce (FragmentProgram *prg) |
float4 | max () |
float4 | min () |
float4 | avg () |
float4 | sum () |
void | show () |
|
Constructor
|
|
Calculate the average of the values in the texture.
|
|
Clear the texture.
|
|
Download data from the texture.
|
|
Find the maximum value in the texture.
|
|
Find the minimum value in the texture.
|
|
Reduces the texture according to at program. The program must contain two parameters: a texture called texture and a float called I, these will be fed to the program.
|
|
Show the texture on screen for debugging. |
|
Sum the values in the texture.
|
|
Upload data to the texture.
|