Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1.  void matrix_unit(MATRIX output) {
  2.  
  3.   // Create a unit matrix.
  4.   memset(output, 0, sizeof(MATRIX));
  5.   output[0x00] = 1.00f;
  6.   output[0x05] = 1.00f;
  7.   output[0x0A] = 1.00f;
  8.   output[0x0F] = 1.00f;
  9.  
  10.  }
  11.  
  12.  //////////////////////
  13.  // CREATE FUNCTIONS //
  14.  //////////////////////
  15.  
  16.  void create_local_world(MATRIX local_world, VECTOR translation, VECTOR rotation) {
  17.  
  18.   // Create the local_world matrix.
  19.   matrix_unit(local_world);
  20.   matrix_rotate(local_world, local_world, rotation);
  21.   matrix_translate(local_world, local_world, translation);
  22.  
  23.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement