Window: add a cursor

This commit is contained in:
josh committed 2016-11-09 21:40:11 -05:00
1 parent abb11a0b8c
commit 74b9421f30
2 files changed
+2

No files matched your search

+1
View File
@@ -144,6 +144,7 @@ bool Window::create(std::shared_ptr<Buffer> buffer)
glVertexAttribPointer(0, 2, GL_INT, GL_FALSE, 0, 0); glVertexAttribPointer(0, 2, GL_INT, GL_FALSE, 0, 0);
m_buffer = buffer; m_buffer = buffer;
m_cursor = buffer->add_cursor();
m_cursor_row = 0; m_cursor_row = 0;
m_scroll_offset = 5; m_scroll_offset = 5;
m_target_column = 0u; /* TODO: fix */ m_target_column = 0u; /* TODO: fix */
+1
View File
@@ -72,6 +72,7 @@ protected:
uint32_t m_target_column; uint32_t m_target_column;
std::shared_ptr<Buffer> m_buffer; 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::Array> m_cursor_array;
std::shared_ptr<glcxx::Buffer> m_cursor_buffer; std::shared_ptr<glcxx::Buffer> m_cursor_buffer;