bool BeginRender(bool clear)
Initialize the backbuffer for render. You need call
it before you start the render. After beginrender you need call the StartFrame function to refresh the keybuffer, and the timers.
clear: If it is true, the screen will be cleared.
Result:
If it was not successfull, it is false