/
redgpu
/
bullet
Обзор
Документация
Войти
/
redgpu
/
bullet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.85
examples/OpenGLWindow/GLInstanceGraphicsShape.h
34 строки
641 B
Erwin Coumans
fix some memory leaks in ImportURDF / PhysicsServerCommandProcessor
12 апр 2016, 02:42
12 апр 2016, 02:42
f3c7f30
Код
Авторство
О чём код?
#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]; GLInstanceGraphicsShape() :m_vertices(0), m_indices(0) { } virtual ~GLInstanceGraphicsShape() { delete m_vertices; delete m_indices; } }; #endif //GL_INSTANCE_GRAPHICS_SHAPE_H