[Plib-users] IJW and plib
Brought to you by:
sjbaker
From: Tinoshi K. <ti...@li...> - 2007-03-09 19:00:27
|
Hi, I've been using PLIB in many C++ projects, but now I have to develop an application that is C# based for the GUI (WindowsXP), and needs some OpenGL capable UserControl. I'm simply using a homemade C# wrapper for opengl32.ddl and glu32.dll, and it is ok for something, but right now the application is growing complex and, before rewriting my own scenegraph and stuff, I'd like to ask you something. Do you think that there is an 'easy' way to use PLIB with .NET managed application (without writing a wrapper for all the PLIB, that is crazy :-) )... I was thinking about It Just Works, but I do not know if this is the right approach, or if It Just Doesn't Make Sense ... What I need is to create a managed .dll, that is nothing but a UserControl, and that in the OnPaint method uses PLIB... The guy that is developing the GUI part will not even know that I'm using C++ or PLIB instead of C#, he will just use the control as he would do for any other Windows Form Control. Any idea? Second question, that is probably a little bit more out of topic, so please forgive me but... Is there any way (Windows API, OpenGL) to set up custom graphic card settings? I mean, to tell the graphic card to use x2 Antialias or something like that??? Do drivers export some common interface for things like these??? I just don't want to tell the user: open your graphic card settings and check the antialiasing button to enable it... Do you think I can do that (again, I'm talking about Windows and nothing more :-) ) in an easy way? Thanks!!! Giorgio Tino |