HeavenWu / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

class SlimDX.Direct3D9Line member Pattern #643

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Member Patter should be uint type.

Original issue reported on code.google.com by alexande...@gmail.com on 29 Mar 2010 at 2:11

GoogleCodeExporter commented 8 years ago
uint is not a CLS compliant type, so we try to avoid exposing it in the API 
interface.

Besides, the docs say it only takes a 1 or a 0 anyway, so int is perfectly 
equipped
to handle those inputs.

Original comment by Mike.Popoloski on 29 Mar 2010 at 2:21

GoogleCodeExporter commented 8 years ago
When I use MDX to draw dotted line I use following pattern - 0x88888888. This 
pattern
is uint type. How can I convert uint to int?

Original comment by alexande...@gmail.com on 29 Mar 2010 at 2:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Cast it accordingly; the underlying bit pattern is the same so by the time it 
gets
marshalled across to the native code it should yield the same results.

Original comment by josh.petrie on 29 Mar 2010 at 3:16