相亲相爱-资源分享 【千恋大王】
Open in Telegram
This Channel follows Telegram Terms.No adult content, no violence, no spam.
Show moreChina54 996The category is not specified
1 671
Subscribers
-224 hours
-147 days
-5330 days
Posts Archive
1 670
#include "imgui.h"
// 绘制图中的图形到屏幕坐标
void DrawCustomShape(float x, float y, float size)
{
ImDrawList* draw_list = ImGui::GetForegroundDrawList(); // 获取前景绘图列表,直接绘制到屏幕
// 定义图形的各个点
float radius = size / 2;
// 顶部圆心对准 (x, y)
ImVec2 top_center = ImVec2(x, y); // 顶部圆的圆心位置
// 绘制顶部的小实心圆
draw_list->AddCircleFilled(
top_center,
radius / 3,
IM_COL32(0, 255, 0, 255)
);
// 竖线的起始点(竖线从顶部圆心开始,底部圆的中心是竖线下端的位置)
ImVec2 center = ImVec2(top_center.x, top_center.y + size); // 竖线的中心点位置
// 绘制中间的竖线,加粗线条
draw_list->AddLine(
ImVec2(center.x, top_center.y),
ImVec2(center.x, center.y), // 从顶部圆心到竖线末端
IM_COL32(0, 255, 0, 255),
radius / 1.7 // 加粗线条
);
// 底部两个圆的位置应该基于竖线的终点位置(即竖线的底部)
float bottom_circle_y = center.y + radius / 8; // 底部圆的 y 坐标(竖线的底部位置)
ImVec2 bottom_left = ImVec2(center.x - radius / 2, bottom_circle_y); // 左边圆的圆心
ImVec2 bottom_right = ImVec2(center.x + radius / 2, bottom_circle_y); // 右边圆的圆心
// 绘制底部的两个实心圆
draw_list->AddCircleFilled(
bottom_left,
radius / 2,
IM_COL32(0, 255, 0, 255)
);
draw_list->AddCircleFilled(
bottom_right,
radius / 2,
IM_COL32(0, 255, 0, 255)
);
// 在顶部圆中间绘制一条从圆心到边缘的线
draw_list->AddLine(
ImVec2(top_center.x, top_center.y - 10), // 从顶部圆心开始
ImVec2(top_center.x, top_center.y - radius / 3),
IM_COL32(255, 0, 0, 255),
4.0f
);
}
09 Aug, 13:19
1 670
👍 @qldwnb
PATCH_LIB("libtersafe.so",0x50F37C,"20 02 5F D6");
千恋自抓
半杀67
09 Aug, 12:36
09 Aug, ~12:47
1 670
Repost from YZY【幼稚园】共产共赢
这俩天主要跑这个群,YZY的活动就暂时暂停,这个群的福利持续进行,tg账号典藏礼物等福利的质量跟YZY群福利的质量相匹配,欢迎各位聊天
@k9999z
09 Aug, 10:43
09 Aug, ~10:45
