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
use ash::vk::{ Format }; | |
use | |
#[derive(Copy, Clone, Debug)] | |
struct ComponentMetadata { | |
size_bits: usize, | |
channel: char | |
} |
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
#include "BabyDI.h" | |
#include "ResourceDaemon.h" | |
#include "resources/ImageResourceFactory.h" | |
#include <fstream> | |
using namespace tdrp; | |
ResourceDataProvider* firstDataProvider = new ResourceDataProvider { |
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
#include "BabyDI.h" | |
#include "ResourceDaemon.h" | |
#include "resources/ImageResourceFactory.h" | |
#include <fstream> | |
using namespace tdrp; | |
void ConfigureDI() { |
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
#include "BabyDI.h" | |
#include "ResourceDaemon.h" | |
#include "resources/ImageResourceFactory.h" | |
#include <fstream> | |
using namespace tdrp; | |
void ConfigureDI() { |
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
#include "Component.hpp" | |
#include <iostream> | |
using namespace tdrp; | |
class ShitComponent : public Component { | |
public: | |
COMPONENT_ENABLE(ShitComponent) | |
float x; |
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
#pragma once | |
#include <memory> | |
#include <unordered_map> | |
#include <vector> | |
namespace tdrp { | |
// ComponentID's uniquely identify a Component | |
using ComponentID = int; |
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
#include "Component.hpp" | |
using namespace tdrp; | |
class PositionComponent : public Component { | |
public: | |
COMPONENT_ENABLE(PositionComponent) | |
float x; | |
float y; |
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
namespace Math { | |
@AnnotationTest("xyz") | |
@AnotherAnnotation("xyz", 3, 3.0f) | |
class Vec2 { | |
float x; | |
float y; | |
float Length(); | |
void Scale(float scale); | |
void Multiply(float x, float y); |
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
#include "Events.hpp" | |
#include <string> | |
using namespace tdrp; | |
struct Resource { | |
EventDispatcher<std::string, int> evtUpdated; | |
}; | |
int main(int argc, char* argv[]) { |
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
#include "Events.hpp" | |
#include <string> | |
using namespace tdrp; | |
struct Resource { | |
EventDispatcher<std::string, int> evtUpdated; | |
}; | |
int main(int argc, char* argv[]) { |