public Line3D GetRayFromScreenCoordinates(Position2D position, CameraSceneNode camera) { IntPtr cam = (camera == null ? IntPtr.Zero : camera.Raw); float[] outray = new float[6]; SceneCollisionManager_GetRayFromScreenCoordinates(_raw, position.ToUnmanaged(), cam, outray); return Line3D.FromUnmanaged(outray); }
public virtual void Move(Position2D absolutemovement) { GuiElem_Move(_raw, absolutemovement.ToUnmanaged()); }
public GUIElement GetElementFromPoint(Position2D point) { return (GUIElement)NativeElement.GetObject(GuiElem_GetElementFromPoint(_raw, point.ToUnmanaged()), typeof(GUIElement)); }
public void DrawW(string text, Position2D pos, Color color, bool hcenter, bool vcenter) { GUIFont_DrawW(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null); }
public void DrawW(string text, Position2D pos, Color color, bool hcenter, bool vcenter, Rect cliprect) { GUIFont_DrawW(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged()); }
public override void Move (Position2D absolutemovement) { CGE_PVOID_METHODS(_raw, CGE_VOID_METHOD.MOVE, IntPtr.Zero, 0, 0, absolutemovement.ToUnmanaged()); }
/// <summary> /// Creates an 1bit alpha channel of the texture based on a pixel position color /// </summary> /// <param name="texture">Input texture that will be modified</param> /// <param name="colorKeyPixelPos">Position of the pixel with the color key</param> public void MakeColorKeyTexture(Texture texture, Position2D colorKeyPixelPos) { VideoDriver_MakeColorKeyTexture(_raw, texture.Raw, colorKeyPixelPos.ToUnmanaged()); }
public void Draw2DPolygon(Position2D center, float radius, Color color, int vertexCount) { VideoDriver_Draw2DPolygon(_raw, center.ToUnmanaged(), radius, color.ToUnmanaged(), vertexCount); }
public void Draw2DLine(Position2D start, Position2D end, Color color) { VideoDriver_Draw2DLine(_raw, start.ToUnmanaged(), end.ToUnmanaged(), color.ToUnmanaged()); }
public void Draw2DImage(Texture image, Position2D destPos) { VideoDriver_Draw2DImageA(_raw, image.Raw, destPos.ToUnmanaged()); }
public void Draw2DImage(Texture image, Position2D destPos, Rect sourceRect, Color color, bool useAlpha) { VideoDriver_Draw2DImageB(_raw, image.Raw, destPos.ToUnmanaged(), sourceRect.ToUnmanaged(), color.ToUnmanaged(), useAlpha); }
public GUIImage AddImage(Texture image, Position2D position, bool useAlphaChannel, GUIElement parent, int id, string text) { IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw); return (GUIImage)NativeElement.GetObject(GuiEnv_AddImageA(_raw, image.Raw, position.ToUnmanaged(), useAlphaChannel, par, id, text), typeof(GUIImage)); }
public void DrawW(string text, Position2D pos, Color color, bool hcenter, bool vcenter) { #if !LINUX GUIFont_DrawW(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null); #else GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null); #endif }
public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates, int idBitMask, bool noDebug) { return (SceneNode) NativeElement.GetObject(SceneCollisionManager_GetSceneNodeFromScreenCoordinatesBB(_raw, screenCoordinates.ToUnmanaged(), idBitMask, noDebug), typeof(SceneNode)); }