;----------------------------------------------------------…

Twetch ·

;----------------------------------------------------------------------------
; File: Triangle-Strip.asm
;
; Desc: This is the ninth example for using Direct3D8. In this example, all
; we are doing is creating a Direct3D8 device, creating a Direct3D8

Replies

Twetch ·

; vertice buffer as a Triangle-Strip, using it to render a flat square
; in the window from the top, then destroying the Direct3D8 vertice
; buffer, and shutting down the Direct3D8 device.

Twetch ·

; The only interesting thing in here is the Triangle-Strip creation code.
; Thanks go to Walter for the initial creation code.
;
; The creation code actually generates hidden *garbage-vertices* at each

Twetch ·

; change directions when the end of a row is reached.
; If I'm wrong in this, please let me know. The only way to get a *clean*
; square, is if a Triangle-List is used. However, that's not the point
; of this example.
;

Twetch ·

@1494 I've posted the source code to https://gist.github.com/auxon/ed295ba7d3934a1b2088710f4f041186

Twetch ·

; side (left and right) of the square. This is unavoidable, as it's in
; the nature of a Triangle-Strip to alternate every second vertice in a
; counter-clockwise direction. This makes it impossible to cleanly

Twetch ·

; Source: http://scrontsoft.cjb.net/
; scronty70@hotmail.com
;
; Copyright (c) 2000 ScrontSoft(tm). All rights reserved.
;-----------------------------------------------------------------------------

@1494 I found this code again, from Scronty