Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FIG Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BATON Theau
FIG Project
Commits
f9ada3d1
Commit
f9ada3d1
authored
7 months ago
by
BATON Theau
Browse files
Options
Downloads
Patches
Plain Diff
Replace current rendering method by Type Erasure
parent
30b9fe9b
No related branches found
No related tags found
No related merge requests found
Changes
23
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
source/engine/graphics/utility/overloaded.hpp
+10
-0
10 additions, 0 deletions
source/engine/graphics/utility/overloaded.hpp
source/engine/graphics/utility/ref_set.hpp
+0
-9
0 additions, 9 deletions
source/engine/graphics/utility/ref_set.hpp
source/main.cpp
+2
-1
2 additions, 1 deletion
source/main.cpp
with
12 additions
and
10 deletions
source/engine/graphics/utility/overloaded.hpp
0 → 100644
+
10
−
0
View file @
f9ada3d1
#pragma once
namespace
megu
{
template
<
class
...
Ts
>
struct
overloaded
:
Ts
...
{
using
Ts
::
operator
()...;
};
template
<
class
...
Ts
>
overloaded
(
Ts
...)
->
overloaded
<
Ts
...
>
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
source/engine/graphics/utility/ref_set.hpp
deleted
100644 → 0
+
0
−
9
View file @
30b9fe9b
#pragma once
#include
<set>
#include
"reference_sorter.hpp"
namespace
megu
{
template
<
class
T
>
using
ref_set
=
std
::
set
<
std
::
reference_wrapper
<
T
>
,
reference_sorter
<
T
>>
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
source/main.cpp
+
2
−
1
View file @
f9ada3d1
...
@@ -169,7 +169,8 @@ int main(int argc, const char * argv[]) {
...
@@ -169,7 +169,8 @@ int main(int argc, const char * argv[]) {
megu
::
Renderer
basic_renderer
(
360
,
360
);
megu
::
Renderer
basic_renderer
(
360
,
360
);
engine
.
push
(
0
,
basic_renderer
);
engine
.
push
(
0
,
basic_renderer
);
engine
.
push
(
0
,
0
,
*
images
.
front
());
engine
.
push
<
megu
::
Image
>
(
0
,
0
,
*
((
images
.
front
()).
get
()));
//? Render Loop
//? Render Loop
std
::
cout
<<
"Render Loop Begin !"
<<
std
::
endl
;
std
::
cout
<<
"Render Loop Begin !"
<<
std
::
endl
;
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment