Jump to content
Xtreme .Net Talk

mutant

*Experts*
  • Posts

    1922
  • Joined

  • Last visited

Everything posted by mutant

  1. ThePentiumGuy, I don't think you can judge by the name of the style since by description it seems to do the same thing as current DoubleBuffer style ;), but it sure is apt to be faster.
  2. Well, Direct3D can do everything that DirectDraw could, and can do it better. It is really no surprise that it is depracated now since Direct3D is now so programmer-friendly (at least it seems that way to me), and this brings out the fact the DirectDraw is no longer really needed.
  3. What PlausiblyDamp said and, especially since DirectDraw is depracated and soon you probably won't have a chance to use it with newer releases of the SDK.
  4. Does anybody know which, if any, version of VS.NET 2005 will be available as an Academic version? I can't seem to find any information anywhere. I tried msdn, google, etc. :D.
  5. I don't know about GDI+ being hardware accelerated in .NET 2.0, but Longhorn will move away from the GDI interfaces in favor or new standard ones that are hardware accelerated. You will probably have to wait for Longhorn, but I could be very wrong.
  6. Not possible right now but will be in the future with partial classes (not future if you want to use beta software which you can't distribute :)). Did you consider using code Regions?
  7. Marble_eater, it should work. Maybe for some reason Managed DirectX assemblies were not installed during your SDK installation. Try reinstalling it.
  8. We have restructured that particular forum many times, without much success. Neither was there a definitive answer as to the future of that forum. But nevertheless, it is a good topic to revisit.
  9. Oh, im sorry, for some reason I didn't think about you needing a line when i wrote the code :D. You can create a Pen object used to draw the line from the brush so that is not a problem. Graphics gr = this.CreateGraphics(); LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0,0,100,100), Color.NavajoWhite, Color.Red, LinearGradientMode.Vertical); Pen lpen = new Pen(br, 1); gr.DrawLine(lpen,0,0,100,200); gr.Dispose();
  10. Look into the System.Drawing.Drawing2D.LinearGradientbrush class. Here is an example: Graphics gr = this.CreateGraphics(); LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0,0,100,100), Color.NavajoWhite, Color.Red, LinearGradientMode.Vertical); gr.FillRectangle(br, br.Rectangle); gr.Dispose();
  11. Did you install the DirectX SDK?..
  12. You can create unmanaged apps.
  13. 1: A device is tied to a window, so not really. What you can do is keep resetting the device into a new window everytime you switch to it. 2: You should be disposing of the device and any meshes, resources, etc. 3: The object that is actually appearing is the second sphere. It happens because everytime you finish drawing your scene matrices get reset, so you are not setting any world matrix for your first object so it follows the next matrix you set. Ask if you need help with any of this :D.
  14. You are not clearing your depth buffer, which is essential to draw the right pixels on your screen. Use these clear flags in your Device.Clear() method call: ClearFlags.Target | ClearFlags.ZBuffer
  15. You won't be able to set up your machine as a server for web development, but other than that no problem at all.
  16. That is impossible if you ask me. 2003 - 2005 is too big of a jump in technology to be offered for $29 like 2002 - 2003 did, which was not really a big breakthrough.
  17. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsclipboardclasstopic.asp System.Windows.Forms.Clipboard class will help you with that. Example of putting text into clipboard: Clipboard.SetDataObject(txtbox.Text)
  18. Are you using the latest SDK release(which is February)? That code works for me perfectly.
  19. System.Environment.NewLine Read up on this :).
  20. If that is the exact code you have in your project, what does the myForm variable refer to?
  21. The problem is that you are initializing the D3D device and trying to use it before you show the form, while putting the form in a inifite loop of redrawing before the window even has a chance to finish loading. My advice is that, first create the window, take care of all the properties (MDI, text, etc.) and then create a separate method that you will call after, which will perform Direct3D initialization. That what I did with your code, and it worked happily ever after! (If you need help implementing that, just post, but the thrill of doing that on your own will be worth it! :D)
  22. That piece of code works perfectly for me. Are you sure you are not setting the owner to some other window you created, and as a result it pops up with the video?
  23. I program because I love it. (simple :D) As to the question of satisfaction. No, not really. I can always see that there is a way to improve my code, and when I don't know how to improve it, I still know there is a way and I will get to it at one point. Neverending vicious cycle.
  24. It looks to me like it is J# only, too bad. That would be nice if it was extended beyond J#.
  25. This might help you a little: http://msdn.microsoft.com/vjsharp/downloads/browsercontrols/
×
×
  • Create New...