Skip to content

Commit

Permalink
clang format, major changes to rsl math, and fix pch for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
GlynLeine committed Nov 28, 2024
1 parent c88c0e0 commit 8f4a28a
Show file tree
Hide file tree
Showing 18 changed files with 116 additions and 318 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BreakAfterAttributes: Leave
BreakBeforeConceptDeclarations: Always

# General rules
InsertBraces: false
InsertBraces: true
PointerAlignment: Left
ColumnLimit: 120

Expand Down
10 changes: 5 additions & 5 deletions applications/core_test/src/core_test/source.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#define RYTHE_ENTRY

#include <rsl/time>
#include <rsl/math>
#include <rsl/logging>
#include <chrono>
#include <iostream>
#include <rsl/logging>
#include <rsl/math>
#include <rsl/time>

#include <core/core.hpp>

void RYTHE_CCONV reportModules(rythe::core::Program* program)
{
rsl::log::debug("Initilizing Core-Application");
program->addEngineInstance();
rsl::log::debug("Initilizing Core-Application");
program->addEngineInstance();
}
7 changes: 0 additions & 7 deletions applications/rsl_test/.rythe_project

This file was deleted.

281 changes: 0 additions & 281 deletions applications/rsl_test/src/rsl_test/source.cpp

This file was deleted.

7 changes: 5 additions & 2 deletions applications/sandbox/src/sandbox/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <core/core.hpp>
#include <rsl/type_traits>

template<typename T>
template <typename T>
struct foo
{
};
Expand All @@ -30,7 +30,10 @@ int RYTHE_CCONV reportModules(rythe::core::Program& program)
[[maybe_unused]] constexpr auto shrunk = typeName.refit<typeName.size() + 1>();
constexpr rsl::id_type typeHash = rsl::type_id<std::string>();

rsl::log::debug("type info: {} : {}, {}, {}, {}", rsl::string_view(typeName), typeHash, typeName.size(), typeName.capacity(), shrunk.capacity());
rsl::log::debug(
"type info: {} : {}, {}, {}, {}", rsl::string_view(typeName), typeHash, typeName.size(), typeName.capacity(),
shrunk.capacity()
);

return -1;
}
1 change: 0 additions & 1 deletion build/vs2022/rythe/program.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

class Program
{

};
2 changes: 1 addition & 1 deletion libraries/rythe/rythe-standard-library
2 changes: 1 addition & 1 deletion modules/rythe/core
2 changes: 1 addition & 1 deletion modules/rythe/graphics
Submodule graphics updated 83 files
+30 −7 src/graphics/components/camera.hpp
+8 −1 src/graphics/components/light.cpp
+13 −6 src/graphics/components/light.hpp
+3 −4 src/graphics/components/renderable.hpp
+30 −7 src/graphics/data/buffer.cpp
+34 −18 src/graphics/data/buffer.hpp
+15 −5 src/graphics/data/buffer.inl
+105 −66 src/graphics/data/framebuffer.cpp
+9 −5 src/graphics/data/framebuffer.hpp
+29 −29 src/graphics/data/importers/texture_importers.cpp
+9 −3 src/graphics/data/importers/texture_importers.hpp
+45 −56 src/graphics/data/material.cpp
+127 −35 src/graphics/data/material.hpp
+128 −17 src/graphics/data/model.cpp
+2 −1 src/graphics/data/model.hpp
+13 −8 src/graphics/data/postprocessingeffect.hpp
+24 −6 src/graphics/data/renderbuffer.cpp
+15 −8 src/graphics/data/renderbuffer.hpp
+10 −14 src/graphics/data/screen_quad.hpp
+175 −88 src/graphics/data/shader.cpp
+93 −34 src/graphics/data/shader.hpp
+56 −46 src/graphics/data/texture.cpp
+43 −16 src/graphics/data/texture.hpp
+15 −4 src/graphics/data/vertexarray.cpp
+11 −5 src/graphics/data/vertexarray.hpp
+38 −10 src/graphics/debuggraphics.hpp
+15 −11 src/graphics/gl_consts.hpp
+126 −40 src/graphics/imgui_impl/GraphEditor.cpp
+63 −10 src/graphics/imgui_impl/ImCurveEdit.cpp
+10 −0 src/graphics/imgui_impl/ImGradient.cpp
+270 −57 src/graphics/imgui_impl/ImGuiFileBrowser.cpp
+337 −129 src/graphics/imgui_impl/ImGuizmo.cpp
+218 −53 src/graphics/imgui_impl/ImSequencer.cpp
+7,140 −2,141 src/graphics/imgui_impl/imgui.cpp
+2,032 −668 src/graphics/imgui_impl/imgui_demo.cpp
+1,627 −3,544 src/graphics/imgui_impl/imgui_draw.cpp
+254 −127 src/graphics/imgui_impl/imgui_impl_glfw.cpp
+277 −189 src/graphics/imgui_impl/imgui_impl_opengl3.cpp
+1,365 −330 src/graphics/imgui_impl/imgui_tables.cpp
+3,593 −880 src/graphics/imgui_impl/imgui_widgets.cpp
+140 −313 src/graphics/imgui_impl/imnodes.cpp
+3 −4 src/graphics/module/renderingmodule.hpp
+2 −1 src/graphics/pipeline/base/pipeline.hpp
+25 −1 src/graphics/pipeline/base/pipeline.inl
+12 −0 src/graphics/pipeline/base/pipelinebase.cpp
+2 −1 src/graphics/pipeline/base/pipelinebase.hpp
+2 −1 src/graphics/pipeline/base/renderstage.hpp
+31 −6 src/graphics/pipeline/default/postfx/bloom.cpp
+4 −1 src/graphics/pipeline/default/postfx/bloom.hpp
+16 −2 src/graphics/pipeline/default/postfx/depthoffield.cpp
+6 −2 src/graphics/pipeline/default/postfx/depthoffield.hpp
+8 −2 src/graphics/pipeline/default/postfx/fxaa.cpp
+4 −1 src/graphics/pipeline/default/postfx/fxaa.hpp
+22 −2 src/graphics/pipeline/default/postfx/skybox.cpp
+4 −1 src/graphics/pipeline/default/postfx/skybox.hpp
+32 −20 src/graphics/pipeline/default/postfx/tonemapping.cpp
+4 −1 src/graphics/pipeline/default/postfx/tonemapping.hpp
+2 −1 src/graphics/pipeline/default/stages/clearstage.cpp
+2 −1 src/graphics/pipeline/default/stages/clearstage.hpp
+42 −4 src/graphics/pipeline/default/stages/debugrenderstage.cpp
+2 −1 src/graphics/pipeline/default/stages/debugrenderstage.hpp
+82 −20 src/graphics/pipeline/default/stages/framebufferresizestage.cpp
+2 −1 src/graphics/pipeline/default/stages/framebufferresizestage.hpp
+8 −3 src/graphics/pipeline/default/stages/lightbufferstage.cpp
+3 −2 src/graphics/pipeline/default/stages/lightbufferstage.hpp
+29 −6 src/graphics/pipeline/default/stages/meshbatchingstage.cpp
+2 −1 src/graphics/pipeline/default/stages/meshbatchingstage.hpp
+96 −12 src/graphics/pipeline/default/stages/meshrenderstage.cpp
+2 −1 src/graphics/pipeline/default/stages/meshrenderstage.hpp
+15 −3 src/graphics/pipeline/default/stages/postprocessingstage.cpp
+9 −7 src/graphics/pipeline/default/stages/postprocessingstage.hpp
+10 −11 src/graphics/pipeline/default/stages/submitstage.cpp
+2 −1 src/graphics/pipeline/default/stages/submitstage.hpp
+102 −15 src/graphics/pipeline/default/stages/transparencyrenderstage.cpp
+2 −1 src/graphics/pipeline/default/stages/transparencyrenderstage.hpp
+4 −2 src/graphics/pipeline/gui/stages/imguirenderstage.cpp
+10 −4 src/graphics/pipeline/gui/stages/imguirenderstage.hpp
+99 −36 src/graphics/shadercompiler/shadercompiler.cpp
+29 −8 src/graphics/shadercompiler/shadercompiler.hpp
+102 −162 src/graphics/systems/renderer.cpp
+12 −3 src/graphics/systems/renderer.hpp
+4 −0 src/graphics/systems/renderer.inl
+2 −2 src/graphics/util/bindings.hpp
2 changes: 1 addition & 1 deletion modules/rythe/physics
Submodule physics updated 48 files
+20 −4 src/physics/data/capsule_controller_data.hpp
+4 −1 src/physics/data/colliders/collider_data.cpp
+10 −4 src/physics/data/colliders/collider_data.hpp
+39 −17 src/physics/data/physics_component_data.hpp
+2 −1 src/physics/data/physics_enviroment_data.hpp
+10 −3 src/physics/data/rigibody_data.hpp
+6 −5 src/physics/diviner/broadphasecollisionalgorithms/broadphasebruteforce.hpp
+7 −8 src/physics/diviner/broadphasecollisionalgorithms/broadphasecollisionalgorithm.hpp
+25 −12 src/physics/diviner/broadphasecollisionalgorithms/broadphaseuniformgrid.cpp
+16 −13 src/physics/diviner/broadphasecollisionalgorithms/broadphaseuniformgrid.hpp
+14 −2 src/physics/diviner/broadphasecollisionalgorithms/broadphaseuniformgridnocaching.cpp
+9 −10 src/physics/diviner/broadphasecollisionalgorithms/broadphaseuniformgridnocaching.hpp
+50 −25 src/physics/diviner/colliders/convexcollider.cpp
+25 −23 src/physics/diviner/colliders/convexcollider.hpp
+15 −34 src/physics/diviner/colliders/physicscollider.hpp
+2 −1 src/physics/diviner/components/physics_component.cpp
+17 −21 src/physics/diviner/components/rigidbody.hpp
+4 −1 src/physics/diviner/cube_collider_params.hpp
+1 −2 src/physics/diviner/data/contact_vertex.hpp
+4 −1 src/physics/diviner/data/convergence_identifier.hpp
+4 −5 src/physics/diviner/data/convex_convergence_identifier.hpp
+19 −7 src/physics/diviner/data/convexconvexpenetrationquery.cpp
+8 −2 src/physics/diviner/data/convexconvexpenetrationquery.hpp
+9 −9 src/physics/diviner/data/edge_label.hpp
+14 −4 src/physics/diviner/data/edgepenetrationquery.cpp
+8 −2 src/physics/diviner/data/edgepenetrationquery.hpp
+4 −1 src/physics/diviner/data/penetrationquery.hpp
+5 −5 src/physics/diviner/data/physics_manifold_precursor.hpp
+27 −15 src/physics/diviner/halfedgeedge.cpp
+16 −7 src/physics/diviner/halfedgeedge.hpp
+13 −16 src/physics/diviner/halfedgeface.cpp
+7 −3 src/physics/diviner/halfedgeface.hpp
+20 −8 src/physics/diviner/physics_contact.hpp
+154 −81 src/physics/diviner/physics_statics.cpp
+193 −79 src/physics/diviner/physics_statics.hpp
+43 −27 src/physics/diviner/systems/physicssystem.cpp
+79 −43 src/physics/diviner/systems/physicssystem.hpp
+5 −9 src/physics/events/events.hpp
+1 −4 src/physics/module/physicsmodule.hpp
+10 −3 src/physics/physics_helpers.cpp
+2 −1 src/physics/physics_helpers.hpp
+3 −12 src/physics/physx/data/controller_hit_feedback.inl
+89 −31 src/physics/physx/physx_event_process_funcs.cpp
+89 −41 src/physics/physx/physx_event_process_funcs.hpp
+48 −11 src/physics/physx/physx_integration_helpers.cpp
+16 −4 src/physics/physx/physx_integration_helpers.hpp
+62 −33 src/physics/physx/systems/physx_physics_system.cpp
+36 −13 src/physics/physx/systems/physx_physics_system.hpp
2 changes: 1 addition & 1 deletion premake/rythe
Submodule rythe updated 1 files
+5 −2 projects.lua
8 changes: 0 additions & 8 deletions run-clang-format.ps1

This file was deleted.

15 changes: 15 additions & 0 deletions utils/format/.rythe_project
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
local project = {
pre_build = {},
fast_up_to_date_check = false
}

function project.init(proj, ctx)
proj.pre_build = {
"cd " .. _WORKING_DIR,
"powershell -File ./utils/format/run-clang-format.ps1"
}

return proj
end

return project
Loading

0 comments on commit 8f4a28a

Please sign in to comment.