/
redgpu
/
bullet
Обзор
Документация
Войти
/
redgpu
/
bullet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.83
examples/OpenGLWindow/GLInstanceGraphicsShape.h
21 строка
439 B
erwincoumans
add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
16 апр 2015, 19:55
16 апр 2015, 19:55
a1bf9c5
Код
Авторство
О чём код?
#ifndef GL_INSTANCE_GRAPHICS_SHAPE_H #define GL_INSTANCE_GRAPHICS_SHAPE_H #include "Bullet3Common/b3AlignedObjectArray.h" struct GLInstanceVertex { float xyzw[4]; float normal[3]; float uv[2]; }; struct GLInstanceGraphicsShape { b3AlignedObjectArray<GLInstanceVertex>* m_vertices; int m_numvertices; b3AlignedObjectArray<int>* m_indices; int m_numIndices; float m_scaling[4]; }; #endif //GL_INSTANCE_GRAPHICS_SHAPE_H