# OpenGL rendering on juce windows

**URL:** <https://forum.juce.com/t/opengl-rendering-on-juce-windows/207>\
**Category:** General JUCE discussion\
**Created:** [April 12, 2005, 9:24pm UTC](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207 "2005-04-12T21:24:21Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [April 16, 2005, 12:41pm UTC](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207/21 "2005-04-16T12:41:04Z")

</div>

Hi All,

well it seems that we have ourselves an opengl component.  
wicked…

Jules, do you know that if you have multiple Opengl contexts that you have to call wglMakeCurrent(hDC, hRC) before you can render a context.  
Otherwise only the last created openglcanvas will actually show something.

cool that you included a drag and drop example as well in the download you posted…i’m gonna have a look at that, haven’t got it to work yet …

cheers,  
Edwin

---

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [April 19, 2005, 9:17am UTC](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207/22 "2005-04-19T09:17:08Z")

</div>

Hi,

Jules, i tried using your OpenGLComponent but msvc says that is is not able to find the base class.  
I downloaded juce version 1.9 and builded it.  
I think some compilere directives are wrong, do you know what i have todo to enable opengl?

cheers  
Edwin

---

<div class="post-metadata">

**Author:** ![rebbur](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@rebbur](https://forum.juce.com/u/rebbur)\
**Post date:** [April 19, 2005, 9:42am UTC](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207/23 "2005-04-19T09:42:27Z")

</div>

oops found it.  
had to enable the OPENGL macro in the juce\_config file…

sorry bout that

Cheers  
Edwin

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 9:57am UTC](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207/24 "2017-05-12T09:57:11Z")

</div>

Closed on May 12, 2017, 9:57am UTC



[Previous page](https://forum.juce.com/t/opengl-rendering-on-juce-windows/207.md?page=1)
