Jump to content
Xtreme .Net Talk

Rakka Rage

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Rakka Rage

  1. the bitmap constructor works!? :) thanks anyway
  2. http://staff.develop.com/candera/weblog/stories/2003/01/20/managedDirect3dTheGameLoop.html the samples and tutorials that come with dx9 are good too
  3. i wish there was an "empty" constructor... public Surface (Device, Stream, Pool) public Surface (Device, Bitmap, Pool) public Surface (IntPtr, Object) those are my choices... i tried using the IntPtr one passing in IntPtr.Zero but then it just throws an object disposed exception when i call SurfaceLoader from stream... so i guess i have to use the stream constructor to create the surface then seek the stream back and then use SurfaceLoader to read the same stream into the same object to make the Color.Red transparent... it also seems to crash if i try to use Pool.Managed for my cursor... but i guess that is a whole other issue... anyone else use the SetCursorProperties in dx9 c#? how did you do it?
  4. is using ArcBall the best way to create a Camera or PlayerView class? how to translate arcballs rotations into view/camera movements/rotations? thanks
  5. i think you need lights and normals for that kind of color
  6. i am trying to load a cursor from a stream with Color.Red being transparent... SurfaceLoader.FromStream(_surface, RS("Cursor.bmp"), Filter.None, Color.Red.ToArgb()); but all the SurfaceLoader.FromStream methods take an existing Surface unlike the TextureLOader.FromStream methods which return a texture... so what am i supposed to do? make a new surface first? there are no empty contructors for Surface the only one that seems to work is _surface = new Surface(_d3dd, RS("Cursor.bmp"), Pool.Default); which basically does the same thing as the SurfaceLoader.FromStream except making the Color.Red transparent... so i have to "load" the suface twice to achieve this??? if only SurfaceLoader.FromStream returned the new Surface instead of taking it as a parameter... or am i doing it wrong? use TextureLoader?
×
×
  • Create New...