nataz
25-07-2007 09:33:51
Hi all,
someone requestet that I port the Gui Demo from the C++ code to C# code. First thing i noticed was, that the Cegui wrapper for Mogre was completely broken, so i decided to look into CEGUI# and see if we can use that for Mogre. It turns out that they have got good renderer Support and also have a Renderer for Axiom up, so there should be a way to get Mogre working aswell.
At work we use SharpDevelop so i dont go and dive into this too deep now but it turns out that the Axiom Renderer can be used really well. The only problem i came up with was this function:
global::Axiom.Media.Image image = global::Axiom.Media.Image.FromRawStream(
buffer, bufferWidth, bufferHeight, global::Axiom.Media.PixelFormat.A8R8G8B8
);
where buffer = System.IO.Stream and i have no clue how to Convert it to statisfy Mogre`s Mogre.DataStreamPtr. Any one a clue?
someone requestet that I port the Gui Demo from the C++ code to C# code. First thing i noticed was, that the Cegui wrapper for Mogre was completely broken, so i decided to look into CEGUI# and see if we can use that for Mogre. It turns out that they have got good renderer Support and also have a Renderer for Axiom up, so there should be a way to get Mogre working aswell.
At work we use SharpDevelop so i dont go and dive into this too deep now but it turns out that the Axiom Renderer can be used really well. The only problem i came up with was this function:
global::Axiom.Media.Image image = global::Axiom.Media.Image.FromRawStream(
buffer, bufferWidth, bufferHeight, global::Axiom.Media.PixelFormat.A8R8G8B8
);
where buffer = System.IO.Stream and i have no clue how to Convert it to statisfy Mogre`s Mogre.DataStreamPtr. Any one a clue?