Skip to content

Commit

Permalink
Fullscreen dock node
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Sep 18, 2021
1 parent 68032a8 commit 3c4dc5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NoiseTool/FastNoiseNodeEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ void FastNoiseNodeEditor::DoNodeBenchmarks()

void FastNoiseNodeEditor::Draw( const Matrix4& transformation, const Matrix4& projection, const Vector3& cameraPosition )
{
const ImGuiViewport* viewport = ImGui::GetMainViewport();
ImGui::DockSpaceOverViewport( viewport );

std::string simdTxt = "Current SIMD Level: ";
simdTxt += GetSIMDLevelName( mActualSIMDLevel );
ImGui::TextUnformatted( simdTxt.c_str() );
Expand Down
6 changes: 3 additions & 3 deletions NoiseTool/MeshNoisePreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ MeshNoisePreview::Chunk::MeshData MeshNoisePreview::Chunk::BuildVoxel3DMesh( con
#if FASTNOISE_CALC_MIN_MAX
if( minMax.min > buildData.isoSurface )
{
minAir = buildData.pos.y();
minAir = (float)buildData.pos.y();
}
else if( minMax.max < buildData.isoSurface )
{
maxSolid = buildData.pos.y() - 1.0f + SIZE;
maxSolid = (float)buildData.pos.y() - 1.0f + SIZE;
}
else
#endif
Expand Down Expand Up @@ -571,7 +571,7 @@ MeshNoisePreview::Chunk::Chunk( MeshData& meshData )

if( meshData.indicies.empty() )
{
mMesh->setCount( meshData.vertexData.size() );
mMesh->setCount( (int)meshData.vertexData.size() );
}
else
{
Expand Down

0 comments on commit 3c4dc5b

Please sign in to comment.