0

I am writing a tabbar app. I am entering some values in the first view (usual UIView). I want drawing to change in the second view in the tabbar (This is an EAGLView). This code so far draws default constructor (or default values) very well. However, drawing does not change after I enter the data and press the "Draw" button. How can I refresh the EAGLView to draw according to the new data? Or how can I refresh EAGLView?

meghaljani
  • 61
  • 9
  • Do you want to clear the view first, and then redraw new data? In that case, calling `glClear(GL_COLOR_BUFFER_BIT);` will clear the screen for you. Then you would just need to call your render method again to draw the new stuff. Hope that helps! – msgambel Aug 27 '11 at 03:05
  • When I tap on the SecondView tab, the method is called automatically with the same default values. I have checked that copy constructor works just fine. Somehow, there is not a new drawing with new variables. – meghaljani Aug 27 '11 at 21:06

0 Answers0