[DirectPython] Problem Running Direct.Python Samples
Status: Inactive
Brought to you by:
hsalo
|
From: <w....@at...> - 2006-12-12 23:44:50
|
A problem running DirectPython Samples. When I try to run any of the samples with DirectPython I have the following result:
xxxxxxxxxxxxxxx
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\directpy\samples\sampleBasic.py", line 147, in <module>
mainloop()
File "C:\Python25\Lib\site-packages\directpy\samples\sampleBasic.py", line 75, in mainloop
d3d.createDevice(title, u"textures/x.ico", window[2], window[3], False, CREATE.HARDWARE)
RuntimeError: Failed to create a device
xxxxxxxxxxxxxxxxxxxxxxx
I take it that the reference is to the following in d3dx:
xxxxxxxxxxxxxxx
class Frame(object):
def __init__(self, title, fullscreen=False, area=(200, 100, 800, 600)):
d3d.createDevice(title, u"textures/x.ico", area[2], area[3],
fullscreen, CREATE.HARDWARE)
if not fullscreen:
d3d.setWindow(*area)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I was unable to find anything like CREATE.HARDWARE in the DirectX documentation and help materials. Also, I found the following sort of code as implementations of the d3d.CreateDevice( ) syntax and it looks entirely different:
xxxxxxxxxxxxxxxxxxxxxx
D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,@d3dpp, D3DDevice)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Would someone advise if the problem lies in the CREATE.HARDWARE command, the d3d.CreateDevice( ) syntax in d3dx, or possible somewhere else?
Thanks
Bill
|