diff --git a/Example/include/Backends/GL/GLBackend.hpp b/Example/include/Backends/GL/GLBackend.hpp index e30854d..bb2b920 100644 --- a/Example/include/Backends/GL/GLBackend.hpp +++ b/Example/include/Backends/GL/GLBackend.hpp @@ -99,7 +99,7 @@ struct Texture void StartFrame(); void DrawDefault(DrawBuffer* buf); - void DrawSimpleText(DrawBufferText* buf); + void DrawText(DrawBufferText* buf); void EndFrame(); void SaveAPIState(); void RestoreAPIState(); diff --git a/Example/src/Backends/GL/GLBackend.cpp b/Example/src/Backends/GL/GLBackend.cpp index e88b85f..891ce31 100644 --- a/Example/src/Backends/GL/GLBackend.cpp +++ b/Example/src/Backends/GL/GLBackend.cpp @@ -285,7 +285,7 @@ namespace LinaVG::Examples Config.debugCurrentVertexCount += buf->vertexBuffer.m_size; } - void GLBackend::DrawSimpleText(DrawBufferText* buf) + void GLBackend::DrawText(DrawBufferText* buf) { if (m_backendData.m_skipDraw) return; diff --git a/Example/src/Main.cpp b/Example/src/Main.cpp index 9f3c329..862085a 100644 --- a/Example/src/Main.cpp +++ b/Example/src/Main.cpp @@ -90,7 +90,7 @@ namespace LinaVG m_renderingBackend = new GLBackend(); m_lvgDrawer.GetCallbacks().drawDefault = std::bind(&GLBackend::DrawDefault, m_renderingBackend, std::placeholders::_1); - m_lvgDrawer.GetCallbacks().drawSimpleText = std::bind(&GLBackend::DrawSimpleText, m_renderingBackend, std::placeholders::_1); + m_lvgDrawer.GetCallbacks().drawText = std::bind(&GLBackend::DrawText, m_renderingBackend, std::placeholders::_1); m_lvgText.GetCallbacks().atlasNeedsUpdate = std::bind(&GLBackend::OnAtlasUpdate, m_renderingBackend, std::placeholders::_1); m_demoScreens.Initialize(); diff --git a/include/LinaVG/Core/BufferStore.hpp b/include/LinaVG/Core/BufferStore.hpp index 50b81fc..61928af 100644 --- a/include/LinaVG/Core/BufferStore.hpp +++ b/include/LinaVG/Core/BufferStore.hpp @@ -92,7 +92,7 @@ namespace LinaVG struct BufferStoreCallbacks { std::function drawDefault; - std::function drawSimpleText; + std::function drawText; }; class BufferStore diff --git a/src/Core/BufferStore.cpp b/src/Core/BufferStore.cpp index 369c258..b13013d 100644 --- a/src/Core/BufferStore.cpp +++ b/src/Core/BufferStore.cpp @@ -129,8 +129,8 @@ namespace LinaVG if (buf.drawOrder == drawOrder && buf.shapeType == shapeType && buf.vertexBuffer.m_size != 0 && buf.indexBuffer.m_size != 0) { - if (m_callbacks.drawSimpleText) - m_callbacks.drawSimpleText(&buf); + if (m_callbacks.drawText) + m_callbacks.drawText(&buf); else { if (LinaVG::Config.logCallback)