Guest User

Geecko - gLib2D

a guest
Aug 29th, 2010
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. void drawBezier()
  2. {
  3.   Vertex* v = sceGuGetMemory(4 * sizeof(Vertex));
  4.  
  5.   v[0].x = 10, v[0].y = 10;
  6.   v[1].x = 10, v[1].y = SCR_H-10;
  7.   v[2].x = SCR_W-10, v[2].y = SCR_H-10;
  8.   v[3].x = SCR_W-10, v[3].y = 10;
  9.  
  10.   sceGuDisable(GU_DEPTH_TEST);
  11.   sceGuColor(WHITE);
  12.   sceGuDrawBezier(GU_VERTEX_32BITF|GU_TRANSFORM_2D,4,1,NULL,v);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment