I'm trying to implement FPS and DeltaTime for my program (C++ Win32). Below is the current code that I have. FPS and DeltaTime should have implemented int the right manner. If not, please tell me how I may fix my problem.
The current problem I am facing is how I should use DeltaTime. That is to Update and Render. And yes I did use a wrapper class. Before I implemented this, I was using WindowProcedure to handle my messages and I no problem with that. But now, trying to implement this is tilting me. So before I was using a back buffer and WM_PAINT to draw and i had to take in hwnd in order to draw. And updated is via input from WindowProcedure which had to take in arguments like LPARAM and WPARAM But after reading articles and forums on this topic. Update and Render is needed but they didnt have to take in hwnd for the Render Method. As for update they didnt have to take that in.
So basically i just want to know how do i write the Update and Render Method ?
Look I don't know what the problem is as I am only starting off but when I ran it it said undeclared use of baseWindow? I dont know I f this helps but this is the best I could do for you