Jump to content
Xtreme .Net Talk

Grasshopper_NET

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Grasshopper_NET

  1. Hey Mutant, Thnx for replying. I tried to set not just the light type but all the other properties but it says that the dev->Lights->Item[0] doesn't have a 'put' method. What I understand is that you can't set these light properties only read them. I looked for a dev->SetLight() method but can't find one.
  2. Anyone know how to implement lighting in managed c++? I tried to set the values of the dev->Lights->Item[0].LightType, but that doesn't work. I created a new Light* light object, filled in the neccessary values and enabled it light->Enabled = true; Nothing. Any ideas are welcomed. Thnx :confused:
  3. Hey FOO, I just went through the same thing with my frame counter. In your 'presentParameters->PresentationInterval' you put 'Default', this is alright for fullscreen device, but in windowed mode this should be 'Immediate'. Try this: presentParameters->PresentationInterval = PresentInterval::Immediate; Hope that helps!
  4. Thanks Pentium Guy, I'll try that and see if it works.
  5. I tried to compile my project in Visual studio .NET with managed c++ and I get this compile error when I try to create my device. I have checked all the parameters and made sure they are in the correct place. What is wrong? Thanks, in advance! Form1.h(100): error C2664: 'Device (int, DeviceType, System::IntPtr, CreateFlags, PresentParameters __gc * __gc[])' : cannot convert parameter 5 from 'Microsoft::DirectX::Direct3D::PresentParameters __gc *' to 'Microsoft::DirectX::Direct3D::PresentParameters __gc * __gc[]'
×
×
  • Create New...