Skip to content

Commit

Permalink
work on demo_nanovg_full
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 13, 2024
1 parent e76333d commit 4a4d15a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ add_this_folder_auto_demos()
# Also add these demos as a library (where IMGUI_BUNDLE_BUILD_DEMO_AS_LIBRARY will disable existing main() functions)
add_this_folder_as_demos_library()

target_sources(demo_nanovg_example_gl3 PRIVATE nanovg_demo/nanovg_demo.cpp nanovg_demo/nanovg_demo.h)
target_sources(demo_nanovg_full PRIVATE demo_nanovg_full/demo_nanovg_full_impl.cpp demo_nanovg_full/demo_nanovg_full_impl.h)
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#include "nanovg.h"
#include "nvg_imgui/nvg_imgui.h"

#include "nanovg_demo/nanovg_demo.h"

// On peut modifier CustomBackground durant l'execution
#include "demo_nanovg_full/demo_nanovg_full_impl.h"


struct MyNvgDemo
Expand Down Expand Up @@ -106,6 +104,8 @@ int main(int, char**)
ImGui::End();
};

runnerParams.fpsIdling.enableIdling = false;

ImmApp::Run(runnerParams, addons);
return 0;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "nanovg_demo.h"
// This is an almost verbatim copy of NanoVG's demo.cpp

#include "demo_nanovg_full_impl.h"
#include "hello_imgui/hello_imgui_assets.h"
#include <stdio.h>
#include <string.h>
Expand All @@ -8,7 +10,6 @@
#include "nanovg.h"



#ifdef _MSC_VER
#define snprintf _snprintf
#elif !defined(__MINGW32__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// This is an almost verbatim copy of NanoVG's demo.h

#ifndef DEMO_H
#define DEMO_H

Expand Down

0 comments on commit 4a4d15a

Please sign in to comment.