Rakka Rage
Newcomer
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?
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?