Window: add a cursor

This commit is contained in:
Josh Holtrop 2016-11-09 21:40:11 -05:00
parent abb11a0b8c
commit 74b9421f30
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
glVertexAttribPointer(0, 2, GL_INT, GL_FALSE, 0, 0);
m_buffer = buffer;
m_cursor = buffer->add_cursor();
m_cursor_row = 0;
m_scroll_offset = 5;
m_target_column = 0u; /* TODO: fix */

View File

@ -72,6 +72,7 @@ protected:
uint32_t m_target_column;
std::shared_ptr<Buffer> m_buffer;
std::shared_ptr<GapBuffer::Cursor> m_cursor;
std::shared_ptr<glcxx::Array> m_cursor_array;
std::shared_ptr<glcxx::Buffer> m_cursor_buffer;