C / opengl question:
Can i do this?
typedef struct
{
int i;
}widget;
display(void){
widget newWidget2;
newWidget2.i = 5;
newWidget1 = newWidget2; // Can i update widget1.i using this line?
}
void main(){
widget newWidget1;
...
glutDisplayFunc(display);
...
}
thanks!