Is it possible to set a parameter for a function a button is calling? For example, I want to do this:
PANEL* allthebuttons ={
button(0,0,blah,blah,blah,NULL,NULL,superfunction(1));
button(0,0,blah,blah,blah,NULL,NULL,superfunction(2));
}
This doesn't work, but if it did I'd be able to have one function know which button is calling it, and have it do something slightly different.
Also, I have a question about vsync. If I understand correctly, the engine will automatically activate vsync if triple buffering is not on. Is there any way to disable/enable vsync no matter what? Some people don't mind tearing, and might not want the game automatically activating vsync depending on other settings.