Cromon

Main.cpp

Oct 21st, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1.     GL::VertexElement positionElem(GL::Semantic::Position, 3);
  2.     float positionData[] = {
  3.         200, 30, 0,
  4.         500, 30, 0,
  5.         350, 100, 0
  6.     };
  7.  
  8.     positionElem.getStream().write(positionData);
  9.     buffer.addElement(positionElem);
  10.     buffer.reloadBuffer();
Advertisement
Add Comment
Please, Sign In to add comment