Home www.visualprog.cz

 
(c)2007 Pavel Pindora
 Email Kontakt
Pro více informací je zde formulář
  

Click on of the PayPal button to donate money to this shareware Project


Test .NET OpenGL mini Render plugin for IE

You must have the following software installed :

runtime NET Framework 2.0

 http://www.youtube.com/watch?v=WOxF7MBHKXw 

and get this my (shareware) dll and install (see end of this page and please read Licence.txt before installing, using this software )

COM+ OGLRenderMini.dll   CLSID : 8A56F8AD-B0E0-372D-A024-15710D30ED13

ActiveX WinAppOGLRender.dll  would you like to get the WinAppOGLRender source code  ?  formulář or  Email Kontakt


Events : Mouse Down , Mouse Move

If you do not see active content in this space, then you must install and enable ( just for the user inquiry )  ActiveX in IE

OBJECT1   CLSID : 6E6CFDB7-715D-4c13-B7FE-76C40ABB303A

|

|

Load ActiveX failed

|

|


Will be saved to your Local directory


a Standart OpenGl public function in OGLRenderMini.dll

 

TestAppOGLRender.exe - Test UserInterface ActiveX WinAppOGLRender for OGLRenderMini

 

WinAppOGLRender.exe  - Test OGLRenderMini in UserControl

 

Some examples from ActiveX WinAppOGLRender, how to :

 

#region InitializeOpenGL

public void InitializeOpenGL(IntPtr IniHandle)

{

if (ErrorGL < 0)

{

PaintDisabled = true;

 

OGLRenderClass.BackColorForglClearColor = BackColor;

OGLRenderClass.ForeColorForglColor3ub = ForeColor;

OGLRenderClass.SizeChanged(Width, Height);

OGLRenderClass.pfd.Initialize();// or set data manually

OGLRenderClass.GenerateColorVertex();

ErrorGL = OGLRenderClass.CreateGLContext(IniHandle, Width, Height);

if (ErrorGL != 0)

{

MessageBox.Show(" GetLastError from GL:" + ErrorGL.ToString());

}

else

{

PaintDisabled = false;

}

}

}

#endregion InitializeOpenGL

 

#region RenderScene

public void RenderScene()

{

if (PaintDisabled == true)

{

return;

}

if (ErrorGL == 0)

{

OGLRenderClass.BackColorForglClearColor = BackColor;

OGLRenderClass.ForeColorForglColor3ub = ForeColor;

OGLRenderClass.RenderScene();

}

else

{

}

}

#endregion RenderScene

#region MouseDown

public void OglEventMouseDown( MouseEventArgs e)

{

OGLRenderClass.FromAppCursorPos.X = e.X;

OGLRenderClass.FromAppCursorPos.Y = e.Y;

}

 

#endregion MouseDown

#region MouseMove

public void Mouse_Move(object sender, MouseEventArgs e)

{

....

   Invalidate();

}

 

#region OpenGlWinRender_SizeChanged

public void Size_Changed(object sender, EventArgs e)

{

OGLRenderClass.SizeChanged(Width, Height);

}

#endregion OpenGlWinRender_SizeChanged

 


For Installation you must use

regasm.exe

gacutil.exe

Regsvcs.exe

 

version 2.0.50727.42 


 

1.Installation OGLRenderMini.dll

regasm /unregister OGLRenderMini.dll
gacutil.exe /ul OGLRenderMini.dll
gacutil.exe /i OGLRenderMini.dll
Regsvcs OGLRenderMini.dll
regasm OGLRenderMini.dll


2.Installation WinAppOGLRender.dll

regasm /unregister WinAppOGLRender.dll
gacutil.exe /ul WinAppOGLRender.dll
gacutil.exe /i WinAppOGLRender.dll
regasm WinAppOGLRender.dll


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND , see Licence.txt in WinAppOGLRender.zip

¨