2005年08月06日 星期六 12:07
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-- Blog:http://www.donews.net/changzheng -1.0 -1.0 5.0
2005年08月05日 星期五 13:45
没什么意义,如果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 > > >> > > > > > -- > > > 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 > -1.0 -1.0 5.0
2005年08月06日 星期六 12:09
你写的?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 >> > -- > 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 -1.0 -1.0 5.0
2005年08月06日 星期六 12:13
当然不是。。。。只是觉得有趣推荐给大家 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 > >> > > > -- > > 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 -1.0 -1.0 5.0
2005年08月06日 星期六 21:42
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
Zeuux © 2025
京ICP备05028076号