clay/examples/cpp-project-example/main.cpp

11 lines
378 B
C++
Raw Normal View History

2024-09-28 23:53:46 +00:00
#include <iostream>
#define CLAY_IMPLEMENTATION
#include "../../clay.h"
int main(void) {
uint64_t totalMemorySize = Clay_MinMemorySize();
Clay_Arena clayMemory = Clay_Arena { .label = CLAY_STRING("Clay Memory Arena"), .capacity = totalMemorySize, .memory = (char *)malloc(totalMemorySize) };
Clay_Initialize(clayMemory, Clay_Dimensions {1024,768});
return 0;
}