-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65d053f
commit 64276d3
Showing
9 changed files
with
128 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "VulkanWindow.h" | ||
|
||
#include <iostream> | ||
|
||
using namespace ui; | ||
|
||
void VulkanWindow::setScene(unlogic::Scene *scene) | ||
{ | ||
emit sceneChanged(scene); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Created by Nathan on 11/12/2024. | ||
// | ||
|
||
#include "Color.h" | ||
|
||
using namespace unlogic; | ||
|
||
Color Color::White = { 0.0, 0.0, 0.0 }; | ||
Color Color::Black = { 1.0, 1.0, 1.0 }; | ||
Color Color::Red = { 1.0, 0.0, 0.0 }; | ||
Color Color::Green = { 0.0, 1.0, 0.0 }; | ||
Color Color::Blue = { 0.0, 0.0, 1.0 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef COLOR_H | ||
#define COLOR_H | ||
|
||
namespace unlogic | ||
{ | ||
struct Color | ||
{ | ||
float r = 0.0; | ||
float g = 0.0; | ||
float b = 0.0; | ||
float a = 1.0; | ||
|
||
static Color White; | ||
static Color Black; | ||
static Color Red; | ||
static Color Green; | ||
static Color Blue; | ||
}; | ||
} | ||
|
||
#endif //COLOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// | ||
// Created by Nathan on 11/12/2024. | ||
// | ||
|
||
#include "Scene.h" | ||
|
||
namespace unlogic { | ||
} // unlogic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// Created by Nathan on 11/12/2024. | ||
// | ||
|
||
#ifndef SCENE_H | ||
#define SCENE_H | ||
|
||
#include "Color.h" | ||
|
||
namespace unlogic | ||
{ | ||
struct Scene | ||
{ | ||
Color background = Color::White; | ||
}; | ||
} // unlogic | ||
|
||
#endif //SCENE_H |