コード例 #1
0
 public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates, int idBitMask, bool noDebug)
 {
     return (SceneNode)
         NativeElement.GetObject(SceneCollisionManager_GetSceneNodeFromScreenCoordinatesBB(_raw, screenCoordinates.ToUnmanaged(), idBitMask, noDebug),
                                 typeof(SceneNode));
 }
コード例 #2
0
ファイル: GUIEnvironment.cs プロジェクト: zaki/irrlicht.net
 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));
 }
コード例 #3
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);
 }
コード例 #4
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 public void Draw2DPolygon(Position2D center, float radius, Color color, int vertexCount)
 {
     VideoDriver_Draw2DPolygon(_raw, center.ToUnmanaged(), radius, color.ToUnmanaged(), vertexCount);
 }
コード例 #5
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 /// <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());
 }
コード例 #6
0
ファイル: GUIFont.cs プロジェクト: zaki/irrlicht.net
 public void Draw(string text, Position2D pos, Color color, bool hcenter, bool vcenter)
 {
     GUIFont_Draw(_raw, text, pos.ToUnmanaged(), color.ToUnmanaged(), hcenter, vcenter, null);
 }
コード例 #7
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 public void Draw2DLine(Position2D start, Position2D end, Color color)
 {
     VideoDriver_Draw2DLine(_raw, start.ToUnmanaged(), end.ToUnmanaged(), color.ToUnmanaged());
 }
コード例 #8
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 public void Draw2DImage(Texture image, Position2D destPos)
 {
     VideoDriver_Draw2DImageA(_raw, image.Raw, destPos.ToUnmanaged());
 }
コード例 #9
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 public void Draw2DImage(Texture image, Position2D destPos, Color color, bool useAlphaChannel)
 {
     Draw2DImage(image, destPos, new Rect(new Position2D(0, 0), image.OriginalSize), color, useAlphaChannel);
 }
コード例 #10
0
ファイル: GUIElement.cs プロジェクト: zaki/irrlicht.net
 public virtual void Move(Position2D absolutemovement)
 {
     GuiElem_Move(_raw, absolutemovement.ToUnmanaged());
 }
コード例 #11
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 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);
 }
コード例 #12
0
ファイル: GUIElement.cs プロジェクト: zaki/irrlicht.net
 public GUIElement GetElementFromPoint(Position2D point)
 {
     return (GUIElement)NativeElement.GetObject(GuiElem_GetElementFromPoint(_raw, point.ToUnmanaged()),
                                                typeof(GUIElement));
 }
コード例 #13
0
ファイル: Texture.cs プロジェクト: zaki/irrlicht.net
 public void MakeColorKey(VideoDriver drv, Position2D colorKeyPixelPos)
 {
     drv.MakeColorKeyTexture(this, colorKeyPixelPos);
 }
コード例 #14
0
ファイル: Position2D.cs プロジェクト: zaki/irrlicht.net
 public static Position2D From(int X, int Y)
 {
     Position2D toR = new Position2D();
     toR.Set(X, Y);
     return toR;
 }
コード例 #15
0
 public SceneNode GetSceneNodeFromScreenCoordinates(Position2D screenCoordinates)
 {
     return GetSceneNodeFromScreenCoordinates(screenCoordinates, 0, false);
 }
コード例 #16
0
ファイル: VideoDriver.cs プロジェクト: zaki/irrlicht.net
 public void Draw2DImage(Texture image, Position2D destPos, bool useAlphaChannel)
 {
     Draw2DImage(image, destPos, Color.White, useAlphaChannel);
 }
コード例 #17
0
        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
        }
コード例 #18
0
ファイル: GUIFont.cs プロジェクト: zaki/irrlicht.net
 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());
 }