Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 )
- type render_struct
- x as integer
- col2 as uinteger
- end type
- dim rBuffer() as render_struct
- dim as integer i = 0
- dim v(0 to 5) as integer
- dim uv(0 to 0) as integer
- v(0) = 0
- v(1) = rBuffer(i).x
- v(2) = rBuffer(i).x
- v(3) = rBuffer(i).x
- v(4) = rBuffer(i).x
- v(5) = rBuffer(i).x
- uv(0) = rBuffer(i).col2
- Triangle(0, v(0), v(1), v(2), v(3), v(4), v(5), uv(0))
- 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 )
- 'ok... so that theory is gone then.
- end sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement