Core

Build status Lines of code


Introduction:

Core is a C-like C++ collection of utilities used as a foundation when writing programs in a data oriented fashion.

It started as a learning process that eventually evolved to be a useful container library on top of C++.

Its written in C++20.

It is still a WIP, lots of breaking changes are expected to happen.

Code style:

#include <core/defines.h>
#include <core/containers/array.h>

struct Vector3
{
    f32 x, y, z;
};

struct Vertex
{
    Vector3 position;
    Vector3 normal;
};

Array<Vertex> vertices = array_init<Vertex>(memory::heap_allocator());
DEFER(array_deinit(vertices));

array_push(vertices, Vertex{{1.0f, 2.0f, 3.0f}, {0.0f, 0.0f, 1.0f}});

Supported platforms:

  • Windows.
  • Linux (later).
  • Mac (later).

Building:

  • Requires C++20.
  • Download and install CMake (version 3.20 atleast).
  • Run build.bat file, it will configure and build for you.
  • Output is in build/bin/${CONFIG}/ directory.

Inspirations:

GitHub

View Github