Skip to main content
GameDev.net gamedev.net
🔒 Locked

So I have an IronPython SlimDX sample...

Started by AndrewBC May 5, 2010 at 8:21 AM 0 replies 1.2k views
Original Post
AndrewBC
AndrewBC
Yeah, almost a year ago, this happened: http://www.gamedev.net/community/forums/topic.asp?topic_id=542639 Then today, this happened:
import clr
clr.AddReference('System.Drawing')
clr.AddReference('SlimDX')
 
from System.Drawing import *
 
import SlimDX
from SlimDX.Windows import *
from SlimDX.Direct3D9 import *
 
Form = RenderForm()
 
Device = Device(Direct3D(), 0, DeviceType.Hardware, Form.Handle, CreateFlags.HardwareVertexProcessing, PresentParameters())
 
def Main():
    Device.Clear(ClearFlags.Target | ClearFlags.ZBuffer, Color.Black.ToArgb(), 1.0, 0)
    Device.BeginScene()
    Device.EndScene()
    Device.Present()
 
SlimDX.Windows.MessagePump.Run(Form, Main)

I don't know much if anything about how DirectX does things, nor .NET, so there could be some things that need optimizing, but it runs fine for me. Since it's been quite a while, what more esoteric languages do you think could have an example written up in?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.