You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I want to draw many circles in a matrix format like 128 x 128, but it draws correctly only until 21 x 128 circles.
I really do not know why or it is a bug?
Could you please help me?
Thanks and BR Binh.
Here is my code:
ImGui::Begin();
auto pos3 = ImGui::GetCursorScreenPos();
auto numCircleSegments = -1;
auto circleThickness = 1;
auto radius2 = 5;
auto diam2 = 2*radius2;
auto nrows2 = 22; // work ONLY until 21for (auto y = 0; y < nrows2; ++y)
{
int yPos = pos3.y + (y + 1) * diam2;
for (auto x = 0; x < 128; ++x)
{
int xPos = pos3.x + (x + 1) * diam2;
draw_list1->AddCircle(ImVec2(xPos, yPos), radius2, IM_COL32(124,124,124,IM_F32_TO_INT8_SAT(ImGui::GetStyle().Alpha)),numCircleSegments, circleThickness);
}
}
ImGui::End();
The text was updated successfully, but these errors were encountered:
Please use GitHub Discussions, the SFML forum or join Discord to discuss coding problems, so we can keep the issue tracker for problems with the project itself.
for (auto y = 0; y < nrows2; ++y)
Since nrows2 is 22 the outer loop will only count from 0 to 21 and not 128.
@eXpl0it3r Maybe you do not understand what I mean.
The above code runs uncorrectly <-> I can not draw (22 x 128) circles
By setting nrows2 by any value less than 22, it draws perfectly -> WHY?????
Dear all,
I want to draw many circles in a matrix format like 128 x 128, but it draws correctly only until 21 x 128 circles.
I really do not know why or it is a bug?
Could you please help me?
Thanks and BR Binh.
Here is my code:
The text was updated successfully, but these errors were encountered: