public static HitStatus Hitscan(dpoint3d start, dpoint3d direction, out lpoint3d voxel, out Color color, out Face face) { IntPtr ind; hitscan(ref start, ref direction, out voxel, out ind, out face); if (ind == IntPtr.Zero) { color = Color.Transparent; return HitStatus.Nohit; } color = Color.FromArgb(Marshal.ReadInt32(ind)); return HitStatus.Hit; }
public static HitStatus Hitscan(dpoint3d start, dpoint3d direction, out lpoint3d voxel, out Color color, out Face face) { IntPtr ind; hitscan(ref start, ref direction, out voxel, out ind, out face); if (ind == IntPtr.Zero) { color = Color.Transparent; return(HitStatus.Nohit); } color = Color.FromArgb(Marshal.ReadInt32(ind)); return(HitStatus.Hit); }
public static void SetRectBrightness(lpoint3d p1, lpoint3d p2, byte brightness) { setRectBrightness(ref p1, ref p2, brightness); }
public static void SetRectWithWoodTexture(lpoint3d p1, lpoint3d p2, Color c, byte brightness = 128) { setRectWoodColor(ref p1, ref p2, c.ToArgb() & 0xffffff | (brightness << 24)); }
public static void SetRect(lpoint3d p1, lpoint3d p2, Color c) { setRectOneColor(ref p1, ref p2, c.ToArgb()); }
extern static void setRectBrightness(ref lpoint3d p1, ref lpoint3d p2, byte brightness);
extern static void setRectWoodColor(ref lpoint3d p1, ref lpoint3d p2, int c);
extern static void setrect(ref lpoint3d hit, ref lpoint3d hit2, int dacol);
public static void SetRectBrightness(lpoint3d p1, lpoint3d p2, byte brightness) { setRectBrightness(ref p1, ref p2, brightness); }
public static void ClearRect(lpoint3d p1, lpoint3d p2) { setrect(ref p1, ref p2, -1); }
static extern void setRectWoodColor(ref lpoint3d p1, ref lpoint3d p2, int c);
static extern void setRectBrightness(ref lpoint3d p1, ref lpoint3d p2, byte brightness);
static extern void setrect(ref lpoint3d hit, ref lpoint3d hit2, int dacol);
static extern void hitscan(ref dpoint3d startpos, ref dpoint3d direction, out lpoint3d coordOfVoxelHit, out IntPtr color, out Face face);
public static void SetRectWithWoodTexture(lpoint3d p1, lpoint3d p2, Color c, byte brightness = 128) { setRectWoodColor(ref p1, ref p2, c.ToArgb() & 0xffffff | (brightness << 24)); }
public static void ClearRect(lpoint3d p1, lpoint3d p2) { setrect(ref p1, ref p2, -1); }
extern static void hitscan(ref dpoint3d startpos, ref dpoint3d direction, out lpoint3d coordOfVoxelHit, out IntPtr color, out Face face);
public static void SetRect(lpoint3d p1, lpoint3d p2, Color c) { setRectOneColor(ref p1, ref p2, c.ToArgb()); }