I have set my app for SDL and CEGUI
i have put some events to fire . like when pushing a button drawing a square or tea pot.
my code is like this
Code: Select all
bool DrawSquare(const CEGUI::EventArgs &e)
{
glutDisplayFunc(dene);
return true;
}
and the dene function is
Code: Select all
void dene()
{
glutWireTeapot(3.2)
}
what may be the problem ? when i click draw square it crashes without any warning and in debug it doesnt seem to show me where the problem is