#include <ProFX2.h>
Public Types | |
| typedef void(CALLBACK * | ProgressCallbackFunc )(int progress, int progressMax) |
Public Member Functions | |
| PROFX2_EXPORT | ProFX2Handle (const ProFX2Parameters ¶meters) |
| PROFX2_EXPORT | ~ProFX2Handle () |
| PROFX2_EXPORT bool | load (std::istream &textureSetStream) |
| PROFX2_EXPORT bool | render (int frame=0) |
| PROFX2_EXPORT ProFX2Texture | grabResult (unsigned int index=0) |
| PROFX2_EXPORT void | resetResults () |
| PROFX2_EXPORT unsigned int | numberOfOutputs () const |
| PROFX2_EXPORT bool | isValid () const |
| PROFX2_EXPORT const char * | getErrorDesc () const |
| PROFX2_EXPORT ProFX2ErrorCodes | getErrorCode () const |
| PROFX2_EXPORT void | changeTarget (const ProFX2Texture &texture, unsigned int index=0) |
| PROFX2_EXPORT void | changeSource (const ProFX2Texture &texture, bool ownership, unsigned int index=0) |
| PROFX2_EXPORT bool | isTimeSensitive (unsigned int index=0) |
| PROFX2_EXPORT int | getOutputIndexFromName (const std::string &tag) |
| PROFX2_EXPORT const std::string & | getOutputNameFromIndex (unsigned int index=0) |
| PROFX2_EXPORT void | switchOutput (unsigned int index, SwitchState switchOut) |
| PROFX2_EXPORT ProFX2Size | getOutputSize (unsigned int index=0) |
| PROFX2_EXPORT void | setProgressCallback (ProgressCallbackFunc callbackPtr) |
| PROFX2_EXPORT void | releaseRessources () |
Static Public Member Functions | |
| static PROFX2_EXPORT bool | isCompatibleHardware () |
|
|
Type of the progress callback function The first parameter 'progress' varies between 0 and 'progressMax'-1 |
|
|
PROFX2 Handle constructor.
|
|
|
PROFX2 Handle destructor Releases created buffers (except the output textures that were grabbed using 'grabResult'). |
|
||||||||||||||||
|
Specify / change an input texture used during rendering of the texture set.
|
|
||||||||||||
|
Specify an existing texture to use for storing the result corresponding to number 'index'.
|
|
|
Accessor on current error code.
|
|
|
Accessor on current error description.
|
|
|
Return the index of the output corresponding to the name 'tag'
|
|
|
Return the output 'tag' name corresponding to the index
|
|
|
Get the size of a specific output
|
|
|
Grab render texture result.
|
|
|
Static function that tests if the current hardware support GPU-powered ProFX2 texture generation. If no compatible hardware is found, computations are automaticaly ran on the CPU: it can be MUCH slower!
|
|
|
Ask for output texture time sensitivity
|
|
|
Return TRUE if current handle is valid.
|
|
|
PROFX2 Texture set loading from stream (ASCII Format).
|
|
|
Return the number of outputs defined by the current texture set.
|
|
|
Free memory and D3D objects This function can be used for deleting intermediate objects before releasing the handle. Please note that it is not mandatory to call this function. Ressources are released at handle destruction time. |
|
|
Render current texture set.
|
|
|
Reset ALL render texture result. During this call, texture without ownership (No grabbed) are deleted. |
|
|
Progress callback function definition
|
|
||||||||||||
|
Enable/Disable a specific output
|
1.4.6-NO