| 236 | } |
| 237 | |
| 238 | static void udpateCommand(CustomCommand& cmd, const axstd::pod_vector<V2F_C4B_T2F>& buffer) |
| 239 | { |
| 240 | if (buffer.empty()) |
| 241 | { |
| 242 | cmd.setVertexBuffer(nullptr); |
| 243 | } |
| 244 | else |
| 245 | { |
| 246 | cmd.createVertexBuffer(sizeof(V2F_C4B_T2F), buffer.size(), CustomCommand::BufferUsage::STATIC); |
| 247 | cmd.updateVertexBuffer(buffer.data(), buffer.size() * sizeof(V2F_C4B_T2F)); |
| 248 | } |
| 249 | |
| 250 | cmd.setVertexDrawInfo(0, buffer.size()); |
| 251 | } |
| 252 | |
| 253 | void DrawNode::updateBuffers() |
| 254 | { |
no test coverage detected