Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement