Jump to content
  • Advertisement
Sign in to follow this  
AndrewBC

So I have an IronPython SlimDX sample...

This topic is 2944 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!