liubai01 / realtime-lab Goto Github PK
View Code? Open in Web Editor NEWAn open-source toy renderer based on DirectX12
License: MIT License
An open-source toy renderer based on DirectX12
License: MIT License
This is a feature request for a basic logger.
To show the CoreLoggerWidget.cpp
widget, toggle Widget/Logger
in menubar.
For example, add a line of ImGui::Text("Hello")
in CoreLoggerWidget.cpp \ void CoreLoggerWidget::Update()
.
You could then see a line of text in that.
There is a simple example of using spdlog in Debugout.h.
Dear ImGUI demo shows an example of a log(imgui_demo.cpp/ShowExampleAppLog(...)
).
You could uncomment ImGui::ShowDemoWindow();
to show example of widgets of dearImGui in CoreApp.cpp.
void CoreApp::BeforeUpdate()
{
mGUIManager->Update();
//ImGui::ShowDemoWindow();
}
A deeper introduction to constructing a widget could refer to this video (in Mandarin Chinese).
This is a feature request for a detailed info bar of an asset.
For a quick start of getting handy on Dear imGUI, refer to imgui_demo.cpp.
A quick introduction to construct a widget could refer to this video (in Mandarin Chinese).
You could uncomment ImGui::ShowDemoWindow();
to show example of widgets of dearImGui in CoreApp.cpp
void CoreApp::BeforeUpdate()
{
mGUIManager->Update();
//ImGui::ShowDemoWindow();
}
For example, the logic of a folder.
...
} else if (assetNode->GetAssetType() == BaseAssetType::ASSET_FOLDER) {
ImVec2 pos = ImGui::GetCursorPos();
if (ImGui::Selectable(assetNode->mID.c_str(), false, ImGuiSelectableFlags_AllowDoubleClick, ImVec2(iconSize, iconSize)))
{
ImGuiIO& io = ImGui::GetIO();
if (io.MouseDoubleClicked[0])
{
mNowSelectedAssetNodeDir = assetNode.get();
}
}
// manually set a padding of 20.0 pixel (TBD: remove this magic number in the future)
ImGui::SetCursorPos(ImVec2(pos.x + 20.0f, pos.y + 20.0f));
BaseResourceImage* img = mResourceManager->LoadByURL<BaseResourceImage>("EditorAsset\\icon\\folder.png");
ImGui::Image(img->GetImGuiRuntimeID(), ImVec2(iconSize - 40.0f, iconSize - 40.0f));
ImGui::SetCursorPos(ImVec2(pos.x, pos.y + iconSize));
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.