Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void matrix_unit(MATRIX output) {
- // Create a unit matrix.
- memset(output, 0, sizeof(MATRIX));
- output[0x00] = 1.00f;
- output[0x05] = 1.00f;
- output[0x0A] = 1.00f;
- output[0x0F] = 1.00f;
- }
- //////////////////////
- // CREATE FUNCTIONS //
- //////////////////////
- void create_local_world(MATRIX local_world, VECTOR translation, VECTOR rotation) {
- // Create the local_world matrix.
- matrix_unit(local_world);
- matrix_rotate(local_world, local_world, rotation);
- matrix_translate(local_world, local_world, translation);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement