WriteUp: Assignment04
A downloadable game
1. Summery
I think this assignment is mainly about how to deal with multi-threading. In order to make a better structure, I put the data in MyGame and pass the vector to Graphics, like the background color.
And I learned that we should always consider the situation about null pointers, like running without building the shader assets.
I think I have a better understanding about multi-threading and how to manage the data from different thread.
2. Screenshots
3. Codes
1) submits the background color
float colorRGB[3] = { 0.0f, 0.0f, 1.0f };
float transparency = 1.0f;
const auto result = eae6320::Graphics::ChangeBgColor(colorRGB[0], colorRGB[1], colorRGB[2], transparency);
2) submits an object/effect pair to be drawn
I do this way because I think it's very convenient to users to submit data. Users just need to tell engine which vertexes and effects to use, and pass the dataList to Engine.
4. Others
[OpenGL]
[D3D]
5. Gameplay
Use Backspace to delete a object, use space to change the effect
Leave a comment
Log in with itch.io to leave a comment.