Showing the changes to libraries/render-utils/src/AnimDebugDraw.cpp (1 of 48 files). Show all
Unified · Split
| @@ -33,8 +33,8 @@ public: · 32 unmodified lines | |||
| 33 | AnimDebugDrawData() { | 33 | AnimDebugDrawData() { |
| 34 | 34 | ||
| 35 | _vertexFormat = std::make_shared<gpu::Stream::Format>(); | 35 | _vertexFormat = std::make_shared<gpu::Stream::Format>(); |
| 36 | _vertexBuffer = std::make_shared<gpu::Buffer>(); | 36 | _vertexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::VertexBuffer); |
| 37 | _indexBuffer = std::make_shared<gpu::Buffer>(); | 37 | _indexBuffer = std::make_shared<gpu::Buffer>(gpu::Buffer::IndexBuffer); |
| 38 | 38 | ||
| 39 | _vertexFormat->setAttribute(gpu::Stream::POSITION, 0, gpu::Element::VEC3F_XYZ, 0); | 39 | _vertexFormat->setAttribute(gpu::Stream::POSITION, 0, gpu::Element::VEC3F_XYZ, 0); |
| 40 | _vertexFormat->setAttribute(gpu::Stream::COLOR, 0, gpu::Element::COLOR_RGBA_32, offsetof(Vertex, rgba)); | 40 | _vertexFormat->setAttribute(gpu::Stream::COLOR, 0, gpu::Element::COLOR_RGBA_32, offsetof(Vertex, rgba)); |