Skip to content

Instantly share code, notes, and snippets.

View veryjos's full-sized avatar
:octocat:
🤠 haha okay haha 🤠

veryjos veryjos

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