Skip to content

Commit

Permalink
project: renames
Browse files Browse the repository at this point in the history
  • Loading branch information
inanevin committed Oct 10, 2024
1 parent c26319f commit f888937
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Example/include/Backends/GL/GLBackend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion Example/src/Backends/GL/GLBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Example/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion include/LinaVG/Core/BufferStore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace LinaVG
struct BufferStoreCallbacks
{
std::function<void(DrawBuffer* buf)> drawDefault;
std::function<void(DrawBufferText* buf)> drawSimpleText;
std::function<void(DrawBufferText* buf)> drawText;
};

class BufferStore
Expand Down
4 changes: 2 additions & 2 deletions src/Core/BufferStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f888937

Please sign in to comment.