can i create my own TLVertex like this?
Type: sx as long , sy as long, tu as long, tv as long: end type
and would it be useable by dx8?
Printable View
can i create my own TLVertex like this?
Type: sx as long , sy as long, tu as long, tv as long: end type
and would it be useable by dx8?
Yea you can do that, you need to use an FVF (Flexible Vertex Format) for it.
For VB:
http://www.rookscape.com/vbgaming/tutBF.php
For C++:
http://msdn.microsoft.com/archive/de..._enum_3i9f.asp
is there a way to leave out Z? i dont see any flags for it
no success
VB Code:
Public Type TLVertex sx As Long sy As Long sz As Long tu As Long tv As Long End Type ... Call D3DD.SetVertexShader(D3DFVF_XYZ Or D3DFVF_TEX1)
Those are meant to be Single's not Long's ;)
but those are the problems the singles
What do you mean by problem? In the tutorial Electroman posted. It was singles....
ØØ
i think the single messes things up(see my second drawing thread problem)
how do you mean? It will only take singles, there is no way to make an FVF to use longs. Its because graphics cards are set up to use floats and in VB thats how you have to do them. ;)Quote:
Originally Posted by nareth
ok i understand that (but singles are inaccurate?) anyhow the ratio of 1 inacurateQuote:
Originally Posted by Electroman
look at my drawing problem thread please...
It's the HW implementation, and there is no way around that....and Singles are more accurate then longs when we are talking about small numbers.
And there is no way we can debug the code you have in the other thread when we don't even know what TileWidth and TileHeight is. And what the image size is and so on.
ØØ