Window: add a cursor
This commit is contained in:
parent
abb11a0b8c
commit
74b9421f30
@ -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 */
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user