同步操作将从 令狐掌门/imgui 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// dear imgui: "null" example application// (compile and link imgui, create context, run headless with NO INPUTS, NO GRAPHICS OUTPUT)// This is useful to test building, but you cannot interact with anything here!#include "imgui.h"#include <stdio.h>int main(int, char**){IMGUI_CHECKVERSION();ImGui::CreateContext();ImGuiIO& io = ImGui::GetIO();// Build atlasunsigned char* tex_pixels = NULL;int tex_w, tex_h;io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h);for (int n = 0; n < 20; n++){printf("NewFrame() %d\n", n);io.DisplaySize = ImVec2(1920, 1080);io.DeltaTime = 1.0f / 60.0f;ImGui::NewFrame();static float f = 0.0f;ImGui::Text("Hello, world!");ImGui::SliderFloat("float", &f, 0.0f, 1.0f);ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);ImGui::ShowDemoWindow(NULL);ImGui::Render();}printf("DestroyContext()\n");ImGui::DestroyContext();return 0;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。