SHARE
TWEET

Untitled

a guest Oct 10th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     float ty = -1;
  2.     ty = ty * time;
  3.  
  4.     ty = sin(ty);
  5.     glm::mat4 translation = glm::mat4(
  6.         1,0,0,0,
  7.         0,1,0,0,
  8.         0,0,1,0,
  9.         0,ty,0,1);
  10.    
  11.     // ZADANIE: Wyswietl poruszajacy sie czworokat
  12.     //
  13.  
  14.     float vertexArray[16] = { -0.5, -.5, 0, 1,
  15.         -0.5, 0.5, 0, 1,
  16.         0.5, 0.5, 0, 1,
  17.         0.5, -0.5, 0, 1 };
  18.  
  19.     int indexArray[6] = { 0, 1, 3, 1,
  20.     2, 3 };
  21.  
  22.     Core::DrawVertexArrayIndexed(vertexArray, indexArray, 6, 4);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top