# Wanna Create gl::VboMesh from geom::Cube

**URL:** <https://discourse.libcinder.org/t/wanna-create-gl-vbomesh-from-geom-cube/1248>\
**Category:** Using Cinder\
**Created:** [August 11, 2018, 1:03pm UTC](https://discourse.libcinder.org/t/wanna-create-gl-vbomesh-from-geom-cube/1248 "2018-08-11T13:03:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tokky](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@Tokky](https://discourse.libcinder.org/u/Tokky)\
**Post date:** [August 11, 2018, 1:03pm UTC](https://discourse.libcinder.org/t/wanna-create-gl-vbomesh-from-geom-cube/1248/1 "2018-08-11T13:03:37Z")

</div>

hello. this is my first Post

I mainly use it to produce 3D games.

I moved from cinder 0.8.6 to 0.9.1 one week ago, but I noticed that the functions around _ **gl :: draw** _ are very heavy and I looked at various articles and read [this topic](https://discourse.libcinder.org/t/code-running-very-slow-new-to-cinder-c/1058).

What I want to do specifically is to display several cubes

So I tried it all but I can not create _ **gl :: VboMesh** _ from _ **geom :: Cube** _ by all means.

How can I create it?

I’m not very used to speaking English so if you have written a difficult article to read, I apologize.  
Thanks read.

Tokky

---

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [August 11, 2018, 4:08pm UTC](https://discourse.libcinder.org/t/wanna-create-gl-vbomesh-from-geom-cube/1248/2 "2018-08-11T16:08:17Z")

</div>

```cpp
gl::VboMeshRef mesh = gl::VboMesh::create( geom::Cube() );

```

then later

```cpp
gl::draw ( mesh );

```

---

<div class="post-metadata">

**Author:** ![Tokky](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@Tokky](https://discourse.libcinder.org/u/Tokky)\
**Post date:** [August 13, 2018, 5:44am UTC](https://discourse.libcinder.org/t/wanna-create-gl-vbomesh-from-geom-cube/1248/3 "2018-08-13T05:44:55Z")

</div>

Thank you snepo.

Tokky
