G
Gernot Frisch
class A
{
A(int mode) {pF = F1;}
void F1() {}
void (*pF)();
};
How do I do something like this?
I need a function that depends on variable 'mode' and will be called
very very often. Thus, implementing a "if (mode)" in the function is
not possible.
The function returns a pointer to a screen pixel and determines
landscape/portrait mode.
{
A(int mode) {pF = F1;}
void F1() {}
void (*pF)();
};
How do I do something like this?
I need a function that depends on variable 'mode' and will be called
very very often. Thus, implementing a "if (mode)" in the function is
not possible.
The function returns a pointer to a screen pixel and determines
landscape/portrait mode.