Write-Up: Assignment03
A downloadable game
1. Summery
I think the third assignment is mainly about how to design your own coding structure and make platform-independent interface . By doing this assignment, I think I got a better understanding about how to deal with different platforms.
I made cMyGraphics.h and cMyGraphics.h files to deal with the differences in Graphics.cpp file. So now the Graphics.cpp is completely platform-independent. And I already separated geometry and effect parts, so adding another geometry and effect are easy.
2. Codes
1) clear the back buffer color
2) game with a clear color (i.e. background) other than black
3)initializes an effect
User only need to pass two shader names
4) the memory of a single effect & a single Object takes up in both platforms
5) initializes a 3D object
User only need to pass the vertextData and the number of vertex
3. Others
I think I have a better understanding about how to make a platform-independent interface that make users don't need to worry about the platform differences.
I checked the memory of a single effect & a single Object takes up in both platforms, but I don't know how to make it smaller, and I know smaller the data becomes the better. So I think I will think about this and discuss to others.
Leave a comment
Log in with itch.io to leave a comment.