Skip to content

Commit

Permalink
NoiseTool new heightmap 2D mesh option
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Sep 5, 2021
1 parent 939adf4 commit e6b3738
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 66 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@
/.vs*
/out
/build

# Allow SDL2 libs
!/NoiseTool/ThirdParty/SDL2-2.0.12/**
/enc_temp_folder
62 changes: 61 additions & 1 deletion CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -29,6 +34,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -47,6 +57,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x86" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -65,6 +80,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x86" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -83,6 +103,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x64" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -101,6 +126,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x64" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -119,6 +149,11 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x86" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -137,14 +172,19 @@
"ctestCommandArgs": "",
"inheritEnvironments": [ "clang_cl_x86" ],
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
"type": "BOOL"
}
]
},
{
{
"name": "x64-WSL-GCC-Debug",
"generator": "Ninja",
"configurationType": "Debug",
Expand All @@ -158,6 +198,11 @@
"wslPath": "${defaultWSLPath}",
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -179,6 +224,11 @@
"wslPath": "${defaultWSLPath}",
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "FASTNOISE2_TESTS",
"value": "True",
Expand All @@ -200,6 +250,11 @@
"wslPath": "${defaultWSLPath}",
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "CMAKE_CXX_FLAGS",
"value": "-m32",
Expand All @@ -226,6 +281,11 @@
"wslPath": "${defaultWSLPath}",
"addressSanitizerRuntimeFlags": "detect_leaks=0",
"variables": [
{
"name": "CPM_SOURCE_CACHE",
"value": "${projectDir}\\out\\build\\cpm-cache",
"type": "STRING"
},
{
"name": "CMAKE_CXX_FLAGS",
"value": "-m32",
Expand Down
2 changes: 2 additions & 0 deletions NoiseTool/ImGuiExtra.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ namespace ImGuiExtra
{
if( ImGui::IsItemHovered() )
{
ImGui::SetItemUsingMouseWheel();

if( ImGui::GetIO().MouseWheel < 0 && *comboIndex < comboCount - 1 )
{
(*comboIndex)++;
Expand Down
Loading

0 comments on commit e6b3738

Please sign in to comment.