Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. declare sub Triangle ( byval dst as any ptr, byval x1 as integer, byval y1 as integer, byval x2 as integer, byval y2 as integer, byval x3 as integer, byval y3 as integer, byval cola as uinteger )
  2.  
  3. type render_struct
  4.     x as integer
  5.     col2 as uinteger
  6. end type
  7.  
  8. dim rBuffer() as render_struct
  9. dim as integer i = 0
  10.  
  11. dim v(0 to 5) as integer
  12. dim uv(0 to 0) as integer
  13. v(0) = 0
  14. v(1) = rBuffer(i).x
  15. v(2) = rBuffer(i).x
  16. v(3) = rBuffer(i).x
  17. v(4) = rBuffer(i).x
  18. v(5) = rBuffer(i).x
  19. uv(0) = rBuffer(i).col2
  20.  
  21. Triangle(0, v(0), v(1), v(2), v(3), v(4), v(5), uv(0))
  22.  
  23.  
  24.  
  25. sub Triangle ( byval dst as any ptr, byval x1 as integer, byval y1 as integer, byval x2 as integer, byval y2 as integer, byval x3 as integer, byval y3 as integer, byval cola as uinteger )
  26.     'ok... so that theory is gone then.
  27. end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement