void FuncA(void);
void FuncB(void);
Init()
{
void (* function)(void);
if(card==R300)
{
function= FuncA;
}
else
{
function=FuncB;
}
.
.
.
}
render()
{
.
.
.
.
function();
.
.
.
.
}
void FuncA(void)
{
//ATI Code Path
}
void FuncB(void)
{
// NVidia Code path
}