# How to use OpenGL primitives inside a vtkGenericOpenGLRenderWindow ?

**URL:** https://discourse.vtk.org/t/how-to-use-opengl-primitives-inside-a-vtkgenericopenglrenderwindow/7364
**Category:** Support
**Created:** [December 8, 2021, 7:30am UTC](https://discourse.vtk.org/t/how-to-use-opengl-primitives-inside-a-vtkgenericopenglrenderwindow/7364 "2021-12-08T07:30:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Julienchz](https://discourse.vtk.org/user_avatar/discourse.vtk.org/julienchz/32/4106_2.png) [@Julienchz](https://discourse.vtk.org/u/Julienchz)
#### Post date: [December 8, 2021, 7:30am UTC](https://discourse.vtk.org/t/how-to-use-opengl-primitives-inside-a-vtkgenericopenglrenderwindow/7364/1 "2021-12-08T07:30:36Z")

</div>

Hello,  
I would like to add some OpenGL primitives to my vtk scene (GL\_Points) because vtkPoints is too slow to handle, is there a way to do that (without having a native opengl window but a vtkGenericOpenGLRenderWindow) ?

Thanks for your help

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 9, 2021, 9:11pm UTC](https://discourse.vtk.org/t/how-to-use-opengl-primitives-inside-a-vtkgenericopenglrenderwindow/7364/2 "2021-12-09T21:11:21Z")

</div>

Hi, Julien,

There is already a discussion about that here: [How to use original OpenGL in VTK program?](https://discourse.vtk.org/t/how-to-use-original-opengl-in-vtk-program/4636) .

take care,

Paulo
