Ejemplo n.º 1
0
 public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates, int idBitMask, bool noDebug)
 {
     return (SceneNode)
         NativeElement.GetObject(SceneCollisionManager_GetSceneNodeFromScreenCoordinatesBB(_raw, screenCoordinates.ToUnmanaged(), idBitMask, noDebug),
                                 typeof(SceneNode));
 }
        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
        }
Ejemplo n.º 3
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));
 }
Ejemplo n.º 4
0
 public Line3D GetRayFromScreenCoordinates(Position2D position, CameraSceneNode camera)
 {
     float[] outray = new float[6];
     SceneCollisionManager_GetRayFromScreenCoordinates(_raw, position.ToUnmanaged(), GetPtr(camera), outray);
     return Line3D.FromUnmanaged(outray);
 }
Ejemplo n.º 5
0
 public void Draw2DPolygon(Position2D center, float radius, Color color, int vertexCount)
 {
     VideoDriver_Draw2DPolygon(_raw, center.ToUnmanaged(), radius, color.ToUnmanaged(), vertexCount);
 }
Ejemplo n.º 6
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());
 }
Ejemplo n.º 7
0
 public void Draw2DImage(Texture image, Position2D destPos)
 {
     VideoDriver_Draw2DImageA(_raw, image.Raw, destPos.ToUnmanaged());
 }
Ejemplo n.º 8
0
 public void Draw2DLine(Position2D start, Position2D end, Color color)
 {
     VideoDriver_Draw2DLine(_raw, start.ToUnmanaged(), end.ToUnmanaged(), color.ToUnmanaged());
 }
Ejemplo n.º 9
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);
 }
Ejemplo n.º 10
0
 public virtual void Move(Position2D absolutemovement)
 {
     GuiElem_Move(_raw, absolutemovement.ToUnmanaged());
 }
Ejemplo n.º 11
0
 public GUIElement GetElementFromPoint(Position2D point)
 {
     return (GUIElement)NativeElement.GetObject(GuiElem_GetElementFromPoint(_raw, point.ToUnmanaged()),
                                                typeof(GUIElement));
 }
Ejemplo n.º 12
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);
 }
Ejemplo n.º 13
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());
 }