Skip to content

Instantly share code, notes, and snippets.

@ZeroErrors
ZeroErrors / main.c
Created December 2, 2023 16:14
flecs - C lifeclcye hooks example
#include <flecs.h>
#include <stdio.h>
typedef struct Data {
int x;
} Data;
typedef struct Test {
Data* ptr;
} Test;
@ZeroErrors
ZeroErrors / main.cpp
Created November 27, 2023 23:16
flecs - Concurrent Systems
#include <flecs.h>
#include <iostream>
#define THREAD_COUNT (8)
#define ENTITY_COUNT (THREAD_COUNT * 1000000)
#define ENABLE_LOG 0
struct Position {
double x, y;
@ZeroErrors
ZeroErrors / main.cpp
Created September 4, 2023 19:58
flecs - Iterate Relation Component C++ Example
#include "flecs.h"
#include <iostream>
struct Position {
float x;
float y;
};
struct Start {};
struct End {};
@ZeroErrors
ZeroErrors / main.cpp
Last active July 21, 2023 17:07
flecs - Query for relationship example
#include <iostream>
#include "flecs.h"
struct Position
{
int x, y, z;
};
struct Tag1 {};

Keybase proof

I hereby claim:

  • I am zeroerrors on github.
  • I am zeroerrors (https://keybase.io/zeroerrors) on keybase.
  • I have a public key ASBaMd7-YJ3a6YLNyVAQ-5J7YP2kn1xH7GJYNKwULUZsWQo

To claim this, I am signing this object: