Renderer/test/c/fluid/chunk_test_utils.h
2024-12-06 13:18:40 -05:00

68 lines
1021 B
C

#ifndef CHUNK_TEST_UTILS_H
#define CHUNK_TEST_UTILS_H
#include "fluid/queue/chunk.h"
/**
* Array id of the d array for chunk_set_val
*/
#define ARR_ID_D 0
/**
* Array id of the d0 array for chunk_set_val
*/
#define ARR_ID_D0 1
/**
* Array id of the u array for chunk_set_val
*/
#define ARR_ID_U 2
/**
* Array id of the v array for chunk_set_val
*/
#define ARR_ID_V 3
/**
* Array id of the w array for chunk_set_val
*/
#define ARR_ID_W 4
/**
* Array id of the u0 array for chunk_set_val
*/
#define ARR_ID_U0 5
/**
* Array id of the v0 array for chunk_set_val
*/
#define ARR_ID_V0 6
/**
* Array id of the w0 array for chunk_set_val
*/
#define ARR_ID_W0 7
/**
* Creates a chunk at a world position
*/
Chunk * chunk_create(int x, int y, int z);
/**
* Frees a chunk
*/
void chunk_free(Chunk * chunk);
/**
* Sets a chunk's value
* @param chunk The chunk
* @param i The value to set the array to
* @param arr THe array to set
*/
void chunk_set_val(Chunk * chunk, int i, int arr);
#endif