Skip to content

Commit

Permalink
polishing before release v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nikvoronin committed Nov 10, 2016
1 parent 4b316f9 commit 783c4fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# .0O@ ClooToOpenGL @Oo.
# .oO@ ClooToOpenGL @Oo.

Live rendering of Mandelbrot fractal with help of .NET, Cloo and SharpGL. Actually, collaboration of OpenCL and OpenGL.

![cloo2opengl](https://cloud.githubusercontent.com/assets/11328666/20175314/2d23d5e2-a753-11e6-9e08-58d7c398e394.png)

- Left Mouse click to center image.<br/>
- Scrool wheeeel to zoom/unzoom.

Expand All @@ -14,7 +16,8 @@ private void Cloo_Initialize(OpenGLEventArgs args)
{
[...]
foreach (var p in ComputePlatform.Platforms)
if (p.Vendor.ToUpperInvariant().Contains("INTEL"))
if (p.Vendor.ToUpperInvariant().Contains("NVIDIA"))
[...]
```

![cloo2opengl2](https://cloud.githubusercontent.com/assets/11328666/20175474/f178bf84-a753-11e6-9476-3cdb7b282c96.png)
2 changes: 1 addition & 1 deletion src/ClooToOpenGL/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ClooToOpenGL"
mc:Ignorable="d"
Title="Cloo to OpenGL" Height="320" Width="480"
Title="Cloo to OpenGL" Width="640" Height="480"
xmlns:sharpGL="clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF">
<Grid>
<sharpGL:OpenGLControl
Expand Down
4 changes: 2 additions & 2 deletions src/ClooToOpenGL/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private void SharpGL_Draw(object sender, OpenGLEventArgs args)
{
delta = timer.ElapsedTicks - lastTicks;
lastTicks = timer.ElapsedTicks;
Title = $"Cloo to OpenGL — {delta / 10000}ms, {10000000 / delta}fps";
Title = $"Cloo to OpenGL — {cPlatform.Name} | {delta / 10000}ms, {10000000 / delta}fps";

render.ConfigureKernel();
render.ExecuteKernel();
Expand Down Expand Up @@ -85,7 +85,7 @@ private void Cloo_Initialize(OpenGLEventArgs args)
string kernelSource = LoadEmbeddedFile(KERNEL_FILENAME);

foreach (var p in ComputePlatform.Platforms)
if (p.Vendor.ToUpperInvariant().Contains("INTEL"))
if (p.Vendor.ToUpperInvariant().Contains("NVIDIA"))
{
cPlatform = p;
break;
Expand Down

0 comments on commit 783c4fe

Please sign in to comment.