Skip to content

Commit

Permalink
use null renderer in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Jun 12, 2024
1 parent 46aa98b commit 5d8ad45
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ruis/render/scene/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using namespace std::string_view_literals;

using namespace ruis::render;

utki::shared_ref<scene> ruis::render::read_gltf(const papki::file& fi, ruis::render::render_factory& rf)
utki::shared_ref<scene> ruis::render::read_gltf(const papki::file& fi, ruis::render::factory& rf)
{
auto gltf = fi.load();

Expand Down
4 changes: 2 additions & 2 deletions src/ruis/render/scene/scene.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.

#pragma once

#include <ruis/render/renderer.hpp>
#include <ruis/render/factory.hpp>

#include "node.hpp"

Expand All @@ -33,6 +33,6 @@ class scene
std::vector<utki::shared_ref<node>> nodes;
};

utki::shared_ref<scene> read_gltf(const papki::file& fi, ruis::render::render_factory& rf);
utki::shared_ref<scene> read_gltf(const papki::file& fi, ruis::render::factory& rf);

} // namespace ruis::render
2 changes: 1 addition & 1 deletion tests/unit/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ this_cxxflags += -isystem ../../src/
this__libruis_render := ../../src/out/$(c)/libruis_render.a
this_ldlibs += $(this__libruis_render)

this_ldlibs += -l tst -l utki -l papki -l ruis-render-opengles
this_ldlibs += -l tst -l utki -l papki -l ruis-render-null
this_ldlibs += -l jsondom

this_no_install := true
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/src/scene.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <papki/fs_file.hpp>
#include <ruis/render/opengles/renderer.hpp>
#include <ruis/render/null/factory.hpp>
#include <ruis/render/scene/scene.hpp>
#include <tst/check.hpp>
#include <tst/set.hpp>

namespace {
tst::set set("scene", [](tst::suite& suite) {
suite.add("basic_read", []() {
ruis::render::opengles::render_factory rf;
ruis::render::null::factory rf;

auto sc = ruis::render::read_gltf(papki::fs_file("samples_gltf/kub.glb"), rf);

Expand Down

0 comments on commit 5d8ad45

Please sign in to comment.