Click here to Skip to main content
15,878,748 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello friends i am new in Game development and work on Rubik Cube Game In Android using OpenGL.

Problem is that i want to set cube color with black border but unable to perform this task

GLColor[] colors = new GLColor[6];

// Paint front green
i=dim-1;
for(j=0; j<dim;> for(k=0; k<dim;> cubes[i][j][k].setFaceColor(Cube.kFront, colors[faceColors[Cube.kFront][j][k]]);
}
}
In this code front paint total Green but i want to paint green with black border. so how can i include black border around it in OpenGL?

please help me i am unable to attach screen shot due to not enough reputation
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900