public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates, int idBitMask, bool noDebug)
 {
     return (SceneNode)
         NativeElement.GetObject(SceneCollisionManager_GetSceneNodeFromScreenCoordinatesBB(_raw, screenCoordinates.ToUnmanaged(), idBitMask, noDebug),
                                 typeof(SceneNode));
 }
Example #2
0
 public GUIImage AddImage(Texture image, Position2D position, bool useAlphaChannel, GUIElement parent, int id, string text)
 {
     return (GUIImage)NativeElement.GetObject(GuiEnv_AddImageA(_raw, image.Raw, position.ToUnmanaged(), useAlphaChannel, GetPtr(parent), id, text),
                                               typeof(GUIImage));
 }
 public Line3D GetRayFromScreenCoordinates(Position2D position, CameraSceneNode camera)
 {
     float[] outray = new float[6];
     SceneCollisionManager_GetRayFromScreenCoordinates(_raw, position.ToUnmanaged(), GetPtr(camera), outray);
     return Line3D.FromUnmanaged(outray);
 }
Example #4
0
 public void Draw2DPolygon(Position2D center, float radius, Color color, int vertexCount)
 {
     VideoDriver_Draw2DPolygon(_raw, center.ToUnmanaged(), radius, color.ToUnmanaged(), vertexCount);
 }
Example #5
0
 /// <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());
 }
Example #6
0
 public void Draw(string text, Position2D pos, Color color, bool hcenter, bool vcenter)
 {
     GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null);
 }
Example #7
0
 public void Draw2DLine(Position2D start, Position2D end, Color color)
 {
     VideoDriver_Draw2DLine(_raw, start.ToUnmanaged(), end.ToUnmanaged(), color.ToUnmanaged());
 }
Example #8
0
 public void Draw2DImage(Texture image, Position2D destPos)
 {
     VideoDriver_Draw2DImageA(_raw, image.Raw, destPos.ToUnmanaged());
 }
Example #9
0
 public void Draw2DImage(Texture image, Position2D destPos, Color color, bool useAlphaChannel)
 {
     Draw2DImage(image, destPos, new Rect(new Position2D(0, 0), image.OriginalSize), color, useAlphaChannel);
 }
Example #10
0
 public virtual void Move(Position2D absolutemovement)
 {
     GuiElem_Move(_raw, absolutemovement.ToUnmanaged());
 }
Example #11
0
 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);
 }
Example #12
0
 public GUIElement GetElementFromPoint(Position2D point)
 {
     return (GUIElement)NativeElement.GetObject(GuiElem_GetElementFromPoint(_raw, point.ToUnmanaged()),
                                                typeof(GUIElement));
 }
Example #13
0
 public void MakeColorKey(VideoDriver drv, Position2D colorKeyPixelPos)
 {
     drv.MakeColorKeyTexture(this, colorKeyPixelPos);
 }
Example #14
0
 public static Position2D From(int X, int Y)
 {
     Position2D toR = new Position2D();
     toR.Set(X, Y);
     return toR;
 }
 public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates)
 {
     return GetSceneNodeFromScreenCoordinates(screenCoordinates, 0, false);
 }
Example #16
0
 public void Draw2DImage(Texture image, Position2D destPos, bool useAlphaChannel)
 {
     Draw2DImage(image, destPos, Color.White, useAlphaChannel);
 }
        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
        }
Example #18
0
 public void Draw(string text, Position2D pos, Color color, bool hcenter, bool vcenter, Rect cliprect)
 {
     GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, cliprect.ToUnmanaged());
 }