Page 7 of 7

Re: Call overhead stats

Posted: Fri Dec 28, 2012 10:45 am
by hendu
I would've used tri strips or tri fans though, saves two indices ;)

Re: Call overhead stats

Posted: Fri Dec 28, 2012 1:21 pm
by Nadro
Good idea, I'll change it in next commit.

Re: Call overhead stats

Posted: Fri Dec 28, 2012 6:29 pm
by hendu
Oh, since the indices are static, they should be static const, and not initialized in code.

I do that in my screenquad, the syntax is

Code: Select all

const u16 screenQuad::indices[4] = {0, 1, 2, 3}; // in a file
static const u16 indices[4]; // in the header