[GEM-dev] deprecated ?
Mathieu Bouchard
matju at artengine.ca
Mon Apr 5 08:09:18 CEST 2010
On Mon, 5 Apr 2010, Mathieu Bouchard wrote:
> or is it working ?
> i'm confused.
Had compiled with wrong headers. Ended up doing this :
struct GemState92 {
int dirty, inDisplayList, lighting, smooth, texture; pixBlock *image;
GemState92(); ~GemState92(); void reset();
};
struct GemState93 {
bool dirty, inDisplayList, lighting, smooth; int texture; pixBlock *image;
GemState93(); ~GemState93(); void reset(); virtual void your_mom() = 0;
};
...
void render(void *state) {
if (gem>=93) ((GemState93 *)state)->image = &m_pixBlock;
else ((GemState92 *)state)->image = &m_pixBlock;
}
etc
therefore I can support both with a single build.
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
More information about the GEM-dev
mailing list