#include <glfx.h>
ITechnique* tec = effect->FindTechnique("Tec0");
tec->Begin();
for(int i = 0; i < tec->GetPassCount(); i++) {
tec->BeginPass(i);
RenderObject();
tec->EndPass();
}
tec->End();
Note that only valid techniques are compiled and can be used.
Public Member Functions | |
| virtual bool | Begin ()=0 |
| virtual bool | End ()=0 |
| virtual bool | BeginPass (int num)=0 |
| virtual bool | EndPass ()=0 |
| virtual long | GetPassCount ()=0 |
| virtual const char * | GetName ()=0 |
| virtual bool GLFX::ITechnique::Begin | ( | ) | [pure virtual] |
Begins rendering of a technique.
This methods has to be called prior to any BeginPass(). Each Begin() has to be matched with one End() call. Failing to do this will result in an error.
| virtual bool GLFX::ITechnique::End | ( | ) | [pure virtual] |
Ends rendering of a technique.
Will fail if called without prior Begin() or if within pass rendering.
| virtual bool GLFX::ITechnique::BeginPass | ( | int | num | ) | [pure virtual] |
| virtual bool GLFX::ITechnique::EndPass | ( | ) | [pure virtual] |
| virtual long GLFX::ITechnique::GetPassCount | ( | ) | [pure virtual] |
Returns number of render passes in this technique.
| virtual const char* GLFX::ITechnique::GetName | ( | ) | [pure virtual] |
Returns name of this technique.