| 54 | } |
| 55 | |
| 56 | void GraphicVertex::_UpdateBuffer() { |
| 57 | m_buffer[0] = m_position.x; |
| 58 | m_buffer[1] = m_position.y; |
| 59 | m_buffer[2] = m_position.z; |
| 60 | |
| 61 | m_buffer[3] = m_normal.x; |
| 62 | m_buffer[4] = m_normal.y; |
| 63 | m_buffer[5] = m_normal.z; |
| 64 | |
| 65 | m_buffer[6] = m_texture_coord.x; |
| 66 | m_buffer[7] = m_texture_coord.y; |
| 67 | } |
| 68 | |
| 69 | Buffers::Layout::BufferLayout<float> GraphicVertex::Descriptor::m_internal_layout{ |
| 70 | {Buffers::Layout::ElementLayout<float>(3, "position"), Buffers::Layout::ElementLayout<float>(3, "normal"), Buffers::Layout::ElementLayout<float>(2, "texture_coord")}}; |
nothing calls this directly
no outgoing calls
no test coverage detected