added camera implementation and plenty of other rendering related stuff - splitted out the initialization of the render context
This commit is contained in:
parent
ae37273021
commit
f7043fc0cb
43 changed files with 23280 additions and 15161 deletions
src/scene/tests
|
@ -3,23 +3,23 @@
|
|||
#include <pw/scene/node.hpp>
|
||||
#include <pw/scene/transform.hpp>
|
||||
#include <pw/scene/nodepath.hpp>
|
||||
//#include <pw/scene/traverser.hpp>
|
||||
#include <pw/scene/traverser.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
struct test_visitor : pw::node::visitor {
|
||||
virtual void enter(pw::node *n) override;
|
||||
virtual void leave(pw::node *n) override;
|
||||
};
|
||||
//struct test_visitor : pw::node::visitor {
|
||||
// virtual void enter(pw::node *n) override;
|
||||
// virtual void leave(pw::node *n) override;
|
||||
//};
|
||||
|
||||
void test_visitor::enter(pw::node *n)
|
||||
{
|
||||
std::cout << n->name() << " " << n->is_leaf() << std::endl;
|
||||
}
|
||||
//void test_visitor::enter(pw::node *n)
|
||||
//{
|
||||
// std::cout << n->name() << " " << n->is_leaf() << std::endl;
|
||||
//}
|
||||
|
||||
void test_visitor::leave(pw::node *n)
|
||||
{
|
||||
}
|
||||
//void test_visitor::leave(pw::node *n)
|
||||
//{
|
||||
//}
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -37,9 +37,10 @@ int main(int argc,char **argv) {
|
|||
|
||||
std::cout << "sub-2-1 parent count: " << sub_2_1->parents().size() << std::endl;
|
||||
|
||||
test_visitor tv;
|
||||
|
||||
root->visit(tv);
|
||||
traverser tv;
|
||||
|
||||
tv.bfs(root);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue