BLEN-367: Fix code style #14

Merged
Bogdan Nagirniak merged 11 commits from BLEN-367 into hydra-render 2023-03-15 09:42:17 +01:00
31 changed files with 52 additions and 49 deletions
Showing only changes of commit a385bb2b1e - Show all commits

View File

@ -52,38 +52,38 @@ set(SRC
engine.h engine.h
engine.cc engine.cc
finalEngine.h final_engine.h
finalEngine.cc final_engine.cc
previewEngine.h preview_engine.h
previewEngine.cc preview_engine.cc
viewportEngine.h viewport_engine.h
viewportEngine.cc viewport_engine.cc
camera.h camera.h
camera.cc camera.cc
utils.h utils.h
utils.cc utils.cc
renderTaskDelegate.cc render_task_delegate.cc
renderTaskDelegate.h render_task_delegate.h
simpleLightTaskDelegate.cc simple_light_task_delegate.cc
simpleLightTaskDelegate.h simple_light_task_delegate.h
sceneDelegate/blenderSceneDelegate.h scene_delegate/blender_scene_delegate.h
sceneDelegate/blenderSceneDelegate.cc scene_delegate/blender_scene_delegate.cc
sceneDelegate/id.h scene_delegate/id.h
sceneDelegate/id.cc scene_delegate/id.cc
sceneDelegate/object.h scene_delegate/object.h
sceneDelegate/object.cc scene_delegate/object.cc
sceneDelegate/material.h scene_delegate/material.h
sceneDelegate/material.cc scene_delegate/material.cc
sceneDelegate/mesh.h scene_delegate/mesh.h
sceneDelegate/mesh.cc scene_delegate/mesh.cc
sceneDelegate/mtlxHydraAdapter.h scene_delegate/mtlx_hydra_adapter.h
sceneDelegate/mtlxHydraAdapter.cc scene_delegate/mtlx_hydra_adapter.cc
sceneDelegate/light.h scene_delegate/light.h
sceneDelegate/light.cc scene_delegate/light.cc
sceneDelegate/world.h scene_delegate/world.h
sceneDelegate/world.cc scene_delegate/world.cc
) )
set(LIB set(LIB

View File

@ -1,7 +1,6 @@
/* SPDX-License-Identifier: Apache-2.0 /* SPDX-License-Identifier: Apache-2.0
* Copyright 2011-2022 Blender Foundation */ * Copyright 2011-2022 Blender Foundation */
#include "BKE_context.h"
#include "DNA_camera_types.h" #include "DNA_camera_types.h"
#include "DNA_screen_types.h" #include "DNA_screen_types.h"

View File

@ -8,6 +8,8 @@
#include <pxr/base/gf/camera.h> #include <pxr/base/gf/camera.h>
#include <pxr/base/gf/vec2f.h> #include <pxr/base/gf/vec2f.h>
#include "BKE_context.h"
#include "DNA_object_types.h" #include "DNA_object_types.h"
namespace blender::render::hydra { namespace blender::render::hydra {

View File

@ -15,9 +15,9 @@
#include "RE_engine.h" #include "RE_engine.h"
#include "renderTaskDelegate.h" #include "render_task_delegate.h"
#include "sceneDelegate/blenderSceneDelegate.h" #include "scene_delegate/blender_scene_delegate.h"
#include "simpleLightTaskDelegate.h" #include "simple_light_task_delegate.h"
namespace blender::render::hydra { namespace blender::render::hydra {

View File

@ -9,7 +9,7 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "camera.h" #include "camera.h"
#include "finalEngine.h" #include "final_engine.h"
#include "utils.h" #include "utils.h"
using namespace std; using namespace std;

View File

@ -4,7 +4,7 @@
#include "DEG_depsgraph_query.h" #include "DEG_depsgraph_query.h"
#include "camera.h" #include "camera.h"
#include "previewEngine.h" #include "preview_engine.h"
using namespace pxr; using namespace pxr;
using namespace std; using namespace std;

View File

@ -3,7 +3,7 @@
#pragma once #pragma once
#include "finalEngine.h" #include "final_engine.h"
namespace blender::render::hydra { namespace blender::render::hydra {

View File

@ -13,10 +13,10 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "finalEngine.h" #include "final_engine.h"
#include "previewEngine.h" #include "preview_engine.h"
#include "utils.h" #include "utils.h"
#include "viewportEngine.h" #include "viewport_engine.h"
using namespace std; using namespace std;

View File

@ -9,7 +9,7 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "renderTaskDelegate.h" #include "render_task_delegate.h"
namespace blender::render::hydra { namespace blender::render::hydra {

View File

@ -6,7 +6,7 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
using namespace pxr; using namespace pxr;
using namespace std; using namespace std;

View File

@ -3,7 +3,7 @@
#include "BKE_lib_id.h" #include "BKE_lib_id.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "id.h" #include "id.h"
using namespace pxr; using namespace pxr;

View File

@ -12,7 +12,7 @@
#include "BKE_light.h" #include "BKE_light.h"
#include "DNA_light_types.h" #include "DNA_light_types.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "light.h" #include "light.h"
using namespace pxr; using namespace pxr;

View File

@ -12,9 +12,9 @@
#include "BKE_lib_id.h" #include "BKE_lib_id.h"
#include "BKE_material.h" #include "BKE_material.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "material.h" #include "material.h"
#include "mtlxHydraAdapter.h" #include "mtlx_hydra_adapter.h"
using namespace pxr; using namespace pxr;

View File

@ -12,7 +12,7 @@
#include "BKE_object.h" #include "BKE_object.h"
#include "../utils.h" #include "../utils.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "mesh.h" #include "mesh.h"
using namespace pxr; using namespace pxr;

View File

@ -1,8 +1,6 @@
/* SPDX-License-Identifier: Apache-2.0 /* SPDX-License-Identifier: Apache-2.0
* Copyright 2011-2022 Blender Foundation */ * Copyright 2011-2022 Blender Foundation */
#include "mtlxHydraAdapter.h"
#include <pxr/base/arch/fileSystem.h> #include <pxr/base/arch/fileSystem.h>
#include <pxr/usd/ar/resolver.h> #include <pxr/usd/ar/resolver.h>
@ -20,6 +18,8 @@
#include <pxr/imaging/hd/material.h> #include <pxr/imaging/hd/material.h>
#include <pxr/imaging/hd/tokens.h> #include <pxr/imaging/hd/tokens.h>
#include "mtlx_hydra_adapter.h"
namespace mx = MaterialX; namespace mx = MaterialX;
PXR_NAMESPACE_OPEN_SCOPE PXR_NAMESPACE_OPEN_SCOPE

View File

@ -4,7 +4,7 @@
#include "BKE_object.h" #include "BKE_object.h"
#include "../utils.h" #include "../utils.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "light.h" #include "light.h"
#include "mesh.h" #include "mesh.h"
#include "object.h" #include "object.h"

View File

@ -23,7 +23,7 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "../utils.h" #include "../utils.h"
#include "blenderSceneDelegate.h" #include "blender_scene_delegate.h"
#include "world.h" #include "world.h"
/* TODO : add custom tftoken "transparency"? */ /* TODO : add custom tftoken "transparency"? */

View File

@ -3,7 +3,7 @@
#include <pxr/imaging/hdx/simpleLightTask.h> #include <pxr/imaging/hdx/simpleLightTask.h>
#include "simpleLightTaskDelegate.h" #include "simple_light_task_delegate.h"
namespace blender::render::hydra { namespace blender::render::hydra {

View File

@ -7,6 +7,7 @@
#include <pxr/imaging/glf/drawTarget.h> #include <pxr/imaging/glf/drawTarget.h>
#include <pxr/usd/usdGeom/camera.h> #include <pxr/usd/usdGeom/camera.h>
#include "DNA_vec_types.h"
#include "BKE_camera.h" #include "BKE_camera.h"
#include "BLI_math_matrix.h" #include "BLI_math_matrix.h"
#include "DEG_depsgraph_query.h" #include "DEG_depsgraph_query.h"
@ -16,9 +17,10 @@
#include "glog/logging.h" #include "glog/logging.h"
#include "viewport_engine.h"
#include "camera.h" #include "camera.h"
#include "utils.h" #include "utils.h"
#include "viewportEngine.h"
using namespace std; using namespace std;
using namespace pxr; using namespace pxr;