Jump to content

  • Log In with Google      Sign In   
  • Create Account


So I have an IronPython SlimDX sample...


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 AndrewBC   Members   -  Reputation: 280

Like
0Likes
Like

Posted 05 May 2010 - 02:21 AM

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?

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS