Raz Posted May 26, 2011 Share Posted May 26, 2011 Hey there! I'm trying to implement Awesomium 1.6 into Leadwerks. Haven't worked with the engine itself for too long yet, but I suppose there must be some kind of way to get a texture's buffer to use it with this Awesomium function: void AwesomiumSharp.RenderBuffer.CopyTo ( IntPtr destBuffer, int destRowspan, int destDepth, bool convertToRGBA ) Either I need to use this function or use a function of either OpenTK or SDL, but I haven't yet found any good information on copying texture data from one buffer to another for either library yet. Awesomium's RenderBuffer also provides the function GetBuffer(), which returns an IntPtr to the render buffer's buffer, if that's of any help. I'm trying to use the basic LE.NET wrapper for now If anyone could help me out with this, I'd be really grateful! Best Regards, Philipp Quote Link to comment Share on other sites More sharing options...
L B Posted May 29, 2011 Share Posted May 29, 2011 You might want to post that in the advanced discussion/general programming or whichever forum. It's not really C# related per se. Quote Link to comment Share on other sites More sharing options...
Raz Posted May 29, 2011 Author Share Posted May 29, 2011 Did that already yesterday. Basically the answer I got from Josh was to use a texture attached to a buffer. I think I know how to do this, nevertheless, I need to grab OpenGL's render context somehow, because in C# I'll have to use either TAO, OpenTK or SDL. So far the only result I got was from OpenTK telling me that there's no active context found for the calling thread. Greets, Philipp Quote Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted May 29, 2011 Share Posted May 29, 2011 Klepto2 may be working on something related to this using Leadwerks.Net Quote Link to comment Share on other sites More sharing options...
Raz Posted May 29, 2011 Author Share Posted May 29, 2011 Sounds good I'll see what he's up to. Thanks for the suggestion! Greets, Philipp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.