Hi,
I have a problem doing a hero drawing over a 2D pattern which generates by a single pattern unit...
It would be a huge huge huge favour if anyone could help me, Thank you!!!!!
-
//draw my herovoid drawDoraemon(){
Draw Hero code here
}
//draw pme unit of a pattern//and position it according to x and y parameters//draw surprising patternvoid drawPatternUnit(int xxx, int yyy){pushMatrix();//isolates transformations in memory//transformations happen in reversetranslate(xxx, yyy);//move the Pattern by this muchPattern drawing code herepopMatrix();//done isolating memory}
void drawSuprisingPattern(){//draw pattern unit horizontal line down many timesfor(int j=0; j < 4; j++){//code we want repeated//entire horz line of units//draw pattern unit across this many timesfor(int i=0; i < 4; i++){//code we want repeateddrawPatternUnit(i*100 , j*100);}}}
So it's basically what I have got so far...
I know I've miss something to make my hero drawing to be overlaying the pattern drawing.
1