Skip to content

Commit

Permalink
upgrade agz-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
AirGuanZ committed Mar 27, 2021
1 parent 5a9c0a4 commit 74cac11
Show file tree
Hide file tree
Showing 75 changed files with 104 additions and 98 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ PROJECT(Atrc)

SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)

SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

############## optional submodules

OPTION(USE_EMBREE "use embree for finding triangle mesh intersection" OFF)
Expand Down
2 changes: 1 addition & 1 deletion lib/utility
Submodule utility updated 1969 files
4 changes: 2 additions & 2 deletions src/cli/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <agz/factory/factory.h>
#include <agz/tracer/tracer.h>

#include <agz/utility/misc.h>
#include <agz/utility/string.h>
#include <agz-utils/misc.h>
#include <agz-utils/string.h>

void run(int argc, char *argv[])
{
Expand Down
2 changes: 1 addition & 1 deletion src/cli/src/params.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <cxxopts.hpp>

#include <agz/cli/cli.h>
#include <agz/utility/file.h>
#include <agz-utils/file.h>

std::optional<Params> parse_opts(int argc, char *argv[])
{
Expand Down
2 changes: 1 addition & 1 deletion src/editor/include/agz/editor/editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <agz/editor/ui/right_panel.h>
#include <agz/gui_common/gui.h>
#include <agz/tracer/create/scene.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/include/agz/editor/geometry/triangle_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <agz/editor/geometry/geometry.h>
#include <agz/editor/ui/utility/elided_label.h>
#include <agz/utility/mesh.h>
#include <agz-utils/mesh.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/include/agz/editor/imexport/model_importer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <QPushButton>

#include <agz/editor/ui/utility/elided_label.h>
#include <agz/utility/mesh.h>
#include <agz-utils/mesh.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/include/agz/editor/scene/scene_mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <agz/editor/displayer/preview_window.h>
#include <agz/editor/entity/entity.h>
#include <agz/editor/scene/scene_mgr_ui.h>
#include <agz/utility/mesh.h>
#include <agz-utils/mesh.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <agz/tracer/utility/embree.h>
#include <agz/tracer/utility/logger.h>

#include <agz/utility/file.h>
#include <agz-utils/file.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/imexport/json_export_context.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <filesystem>

#include <agz/editor/imexport/json_export_context.h>
#include <agz/utility/file.h>
#include <agz-utils/file.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/imexport/model_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <agz/editor/imexport/model_importer.h>
#include <agz/editor/scene/scene_mgr.h>
#include <agz/utility/string.h>
#include <agz-utils/string.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/material/material_thumbnail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <agz/tracer/create/envir_light.h>
#include <agz/tracer/create/texture2d.h>
#include <agz/tracer/utility/sphere_aux.h>
#include <agz/utility/image.h>
#include <agz-utils/image.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/renderer/ao.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <agz/editor/renderer/ao.h>
#include <agz/tracer/tracer.h>
#include <agz/utility/thread.h>
#include <agz-utils/thread.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/renderer/particle_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <agz/tracer/core/scene.h>
#include <agz/tracer/create/film_filter.h>
#include <agz/tracer/utility/perthread_samplers.h>
#include <agz/utility/thread.h>
#include <agz-utils/thread.h>

AGZ_EDITOR_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/editor/src/renderer/per_pixel_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <agz/tracer/core/sampler.h>
#include <agz/tracer/core/scene.h>
#include <agz/tracer/utility/perthread_samplers.h>
#include <agz/utility/thread.h>
#include <agz-utils/thread.h>

AGZ_EDITOR_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/editor/src/texture2d/hdr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <agz/editor/imexport/json_export_context.h>
#include <agz/editor/texture2d/hdr.h>
#include <agz/tracer/create/texture2d.h>
#include <agz/utility/image.h>
#include <agz/utility/system.h>
#include <agz-utils/image.h>
#include <agz-utils/system.h>

AGZ_EDITOR_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/editor/src/texture2d/image2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <agz/editor/imexport/json_export_context.h>
#include <agz/editor/texture2d/image2d.h>
#include <agz/tracer/create/texture2d.h>
#include <agz/utility/image.h>
#include <agz/utility/system.h>
#include <agz-utils/image.h>
#include <agz-utils/system.h>

AGZ_EDITOR_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/factory/include/agz/factory/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <unordered_map>

#include <agz/tracer/utility/config.h>
#include <agz/utility/misc.h>
#include <agz/utility/string.h>
#include <agz-utils/misc.h>
#include <agz-utils/string.h>

AGZ_TRACER_FACTORY_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/factory/include/agz/factory/utility/bin_mesh.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <agz/tracer/common.h>
#include <agz/utility/mesh.h>
#include <agz-utils/mesh.h>

AGZ_TRACER_FACTORY_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/factory/src/creator/scene_creators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <agz/tracer/create/aggregate.h>
#include <agz/tracer/create/scene.h>
#include <agz/tracer/utility/logger.h>
#include <agz/utility/string.h>
#include <agz-utils/string.h>

AGZ_TRACER_FACTORY_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/factory/src/creator/texture2d_creators.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <agz/factory/creator/texture2d_creators.h>
#include <agz/tracer/create/texture2d.h>
#include <agz/utility/image.h>
#include <agz-utils/image.h>

AGZ_TRACER_FACTORY_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/factory/src/utility/render_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <agz/tracer/create/film_filter.h>
#include <agz/tracer/utility/logger.h>

#include <agz/utility/string.h>
#include <agz-utils/string.h>

AGZ_TRACER_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/factory/src/utility/texture3d_loader.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <agz/factory/context.h>
#include <agz/factory/utility/texture3d_loader.h>
#include <agz/utility/image.h>
#include <agz/utility/misc.h>
#include <agz-utils/image.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/gui_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ TARGET_INCLUDE_DIRECTORIES(GUICommon PUBLIC ${MISC_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(GUICommon PUBLIC "${PROJECT_SOURCE_DIR}/include/")
TARGET_INCLUDE_DIRECTORIES(GUICommon PUBLIC ${GLEW_INCLUDE_DIRS})

TARGET_LINK_LIBRARIES(GUICommon Tracer Factory AGZUtils Qt5::Widgets)
TARGET_LINK_LIBRARIES(GUICommon Tracer Factory AGZUtils Qt5::Core Qt5::Widgets)
4 changes: 2 additions & 2 deletions src/gui_common/src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#include <agz/gui_common/gui.h>
#include <agz/tracer/tracer.h>
#include <agz/utility/file.h>
#include <agz/utility/misc.h>
#include <agz-utils/file.h>
#include <agz-utils/misc.h>

GUI::GUI()
{
Expand Down
4 changes: 2 additions & 2 deletions src/tracer/include/agz/tracer/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <stdexcept>

#include <agz/utility/alloc.h>
#include <agz/utility/texture.h>
#include <agz-utils/alloc.h>
#include <agz-utils/texture.h>

#define AGZ_TRACER_BEGIN namespace agz::tracer {
#define AGZ_TRACER_END }
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/core/bsdf.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <agz/tracer/common.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/core/render_target.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <agz/tracer/core/framebuffer.h>
#include <agz/tracer/core/film_filter.h>
#include <agz/utility/texture.h>
#include <agz-utils/texture.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/core/scene.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

#include <agz/tracer/core/aggregate.h>

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/create/geometry.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <agz/tracer/core/geometry.h>
#include <agz/utility/mesh.h>
#include <agz-utils/mesh.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/create/medium.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <agz/utility/texture.h>
#include <agz-utils/texture.h>

#include <agz/tracer/core/medium.h>
#include <agz/tracer/core/texture3d.h>
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/create/texture3d.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <agz/tracer/core/texture3d.h>
#include <agz/utility/texture/texture3d.h>
#include <agz-utils/texture/texture3d.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/include/agz/tracer/utility/parallel_grid.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <agz/tracer/common.h>
#include <agz/utility/thread.h>
#include <agz-utils/thread.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/aggregate/embree_bvh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <agz/tracer/core/aggregate.h>
#include <agz/tracer/core/entity.h>
#include <agz/tracer/utility/embree.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/aggregate/entity_bvh.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <agz/tracer/core/aggregate.h>
#include <agz/tracer/core/entity.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/camera/thin_lens.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <agz/tracer/core/camera.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/tracer/src/core/envir_light/env_sampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <vector>

#include <agz/tracer/core/texture2d.h>
#include <agz/utility/texture.h>
#include <agz/utility/thread.h>
#include <agz-utils/texture.h>
#include <agz-utils/thread.h>

AGZ_TRACER_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions src/tracer/src/core/envir_light/ibl.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <agz/tracer/core/light.h>
#include <agz/tracer/core/texture2d.h>
#include <agz/tracer/create/texture2d.h>
#include <agz/utility/misc.h>
#include <agz/utility/texture.h>
#include <agz-utils/misc.h>
#include <agz-utils/texture.h>

#include "./env_sampler.h"

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/envir_light/native_sky.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <agz/tracer/core/light.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/film_filter/box_filter.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <agz/tracer/core/film_filter.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/film_filter/gaussian_filter.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <random>

#include <agz/tracer/core/film_filter.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/geometry/disk.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>
#include "./transformed_geometry.h"

AGZ_TRACER_BEGIN
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/geometry/double_sided.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <agz/tracer/core/geometry.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/geometry/quad.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <agz/tracer/core/geometry.h>
#include <agz/tracer/utility/triangle_aux.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

AGZ_TRACER_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/core/geometry/sphere.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <agz/tracer/utility/sphere_aux.h>
#include <agz/utility/misc.h>
#include <agz-utils/misc.h>

#include "./transformed_geometry.h"

Expand Down
Loading

0 comments on commit 74cac11

Please sign in to comment.