Python论坛  - 讨论区

标题:[python-chinese] ANN : dxPython 0.3.0

2005年08月06日 星期六 12:07

清风 paradise.qingfeng at gmail.com
Sat Aug 6 12:07:37 HKT 2005

http://dxpython.pythonworld.net/

一个用python调用DirectX的类库

条件:

    * DirectX 9.0c
    * Python 2.4.1
    * Windows XP (I've tested only on Windows XP, but pretty sure that
it will work on Windows2000 series too)


Sample Code
>>> from dx.d3d9 import *
>>> u = D3DXVECTOR3(1.0, -1.0, 0.0)
>>> v = D3DXVECTOR3(3.0, 2.0, 1.0)
>>> D3DXVec3Dot(u, v)       # innter product
1.0
>>> out = D3DXVec3Cross(u, v)  # cross product
>>> print out
 -1.0 -1.0 5.0 

-- 
Blog:http://www.donews.net/changzheng

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年08月05日 星期五 13:45

flyaflya flyaflyaa at gmail.com
Fri Aug 5 13:45:18 HKT 2005

没什么意义,如果2D游戏直接用pygame,3D游戏就用pyopengl,移植性也好
----- Original Message ----- 
From: "清风" <paradise.qingfeng at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Saturday, August 06, 2005 12:13 PM
Subject: Re: [python-chinese] ANN : dxPython 0.3.0


> 当然不是。。。。只是觉得有趣推荐给大家
> 
> 2005/8/6, Bruce Wang <number5 at gmail.com>:
> > 你写的?admiring...
> > 
> > On 8/6/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> > > http://dxpython.pythonworld.net/
> > >
> > > 一个用python调用DirectX的类库
> > >
> > > 条件:
> > >
> > >     * DirectX 9.0c
> > >     * Python 2.4.1
> > >     * Windows XP (I've tested only on Windows XP, but pretty sure that
> > > it will work on Windows2000 series too)
> > >
> > >
> > > Sample Code
> > > >>> from dx.d3d9 import *
> > > >>> u = D3DXVECTOR3(1.0, -1.0, 0.0)
> > > >>> v = D3DXVECTOR3(3.0, 2.0, 1.0)
> > > >>> D3DXVec3Dot(u, v)       # innter product
> > > 1.0
> > > >>> out = D3DXVec3Cross(u, v)  # cross product
> > > >>> print out
> > >  -1.0 -1.0 5.0 
> > >
> > > --
> > > Blog:http://www.donews.net/changzheng
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > 
> > 
> > --
> > simple is good
> > 
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> > 
> > 
> > 
> 
> 
> -- 
> Blog:http://www.donews.net/changzheng
> 


--------------------------------------------------------------------------------


> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年08月06日 星期六 12:09

Bruce Wang number5 at gmail.com
Sat Aug 6 12:09:30 HKT 2005

你写的?admiring...

On 8/6/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> http://dxpython.pythonworld.net/
> 
> 一个用python调用DirectX的类库
> 
> 条件:
> 
>     * DirectX 9.0c
>     * Python 2.4.1
>     * Windows XP (I've tested only on Windows XP, but pretty sure that
> it will work on Windows2000 series too)
> 
> 
> Sample Code
> >>> from dx.d3d9 import *
> >>> u = D3DXVECTOR3(1.0, -1.0, 0.0)
> >>> v = D3DXVECTOR3(3.0, 2.0, 1.0)
> >>> D3DXVec3Dot(u, v)       # innter product
> 1.0
> >>> out = D3DXVec3Cross(u, v)  # cross product
> >>> print out
>  -1.0 -1.0 5.0 
> 
> --
> Blog:http://www.donews.net/changzheng
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
simple is good

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年08月06日 星期六 12:13

清风 paradise.qingfeng at gmail.com
Sat Aug 6 12:13:28 HKT 2005

当然不是。。。。只是觉得有趣推荐给大家

2005/8/6, Bruce Wang <number5 at gmail.com>:
> 你写的?admiring...
> 
> On 8/6/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> > http://dxpython.pythonworld.net/
> >
> > 一个用python调用DirectX的类库
> >
> > 条件:
> >
> >     * DirectX 9.0c
> >     * Python 2.4.1
> >     * Windows XP (I've tested only on Windows XP, but pretty sure that
> > it will work on Windows2000 series too)
> >
> >
> > Sample Code
> > >>> from dx.d3d9 import *
> > >>> u = D3DXVECTOR3(1.0, -1.0, 0.0)
> > >>> v = D3DXVECTOR3(3.0, 2.0, 1.0)
> > >>> D3DXVec3Dot(u, v)       # innter product
> > 1.0
> > >>> out = D3DXVec3Cross(u, v)  # cross product
> > >>> print out
> >  -1.0 -1.0 5.0 
> >
> > --
> > Blog:http://www.donews.net/changzheng
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> 
> 
> --
> simple is good
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 


-- 
Blog:http://www.donews.net/changzheng

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年08月06日 星期六 21:42

Bruce Wang number5 at gmail.com
Sat Aug 6 21:42:29 HKT 2005

On 8/6/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> 当然不是。。。。只是觉得有趣推荐给大家
> 
> 2005/8/6, Bruce Wang <number5 at gmail.com>:
> > 你写的?admiring...
> >
> > On 8/6/05, 清风 <paradise.qingfeng at gmail.com> wrote:
> > > http://dxpython.pythonworld.net/
> > >
> > > 一个用python调用DirectX的类库
> > >
> > > 条件:
> > >
> > >     * DirectX 9.0c
> > >     * Python 2.4.1
> > >     * Windows XP (I've tested only on Windows XP, but pretty sure that
> > > it will work on Windows2000 series too)
> > >

或许写上作者是谁会更好 :)

-- 
simple is good

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号