GLFX::ITechnique Struct Reference

#include <glfx.h>

List of all members.


Detailed Description

The parameters are controlled through IEffect interface. Used to render a effect. A technique consits of a number of passes. To render a technique proceed as in this code sample:
    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


Member Function Documentation

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.

Returns:
true if successful

virtual bool GLFX::ITechnique::End (  )  [pure virtual]

Ends rendering of a technique.

Will fail if called without prior Begin() or if within pass rendering.

Returns:
true if successful

virtual bool GLFX::ITechnique::BeginPass ( int  num  )  [pure virtual]

Begins rendering of a pass.

This call will fail if not within Begin(), End() block.

Parameters:
num pass number
Returns:
true if successful

virtual bool GLFX::ITechnique::EndPass (  )  [pure virtual]

Ends rendering current pass.

Fails if not called after BeginPass().

Returns:
true if successful

virtual long GLFX::ITechnique::GetPassCount (  )  [pure virtual]

Returns number of render passes in this technique.

Returns:
number of render passes

virtual const char* GLFX::ITechnique::GetName (  )  [pure virtual]

Returns name of this technique.

Returns:
technique name


The documentation for this struct was generated from the following file:
SourceForge.net Logo