Working on poker logic.

This commit is contained in:
2021-05-31 08:06:43 -07:00
parent 68e6abe0de
commit 7b7526d346
43 changed files with 54542 additions and 48 deletions

View File

@@ -12,7 +12,7 @@ const FLIP_TEXTURE_Y = true;
let rawVertices = [];
let faces = [];
let coordinates = [];
const filePath = path.join(__dirname, '..', '..', 'assets', 'models', 'Chip Single', 'Single Chip.obj');
const filePath = path.join(__dirname, '..', '..', 'assets', 'models', 'poker table_del', 'poker_table.obj');
const data = fs.readFileSync(filePath, 'utf-8');
const scale = 0.1;
@@ -103,7 +103,7 @@ const header = `${license}
* Generated at ${new Date().toUTCString()}
* @returns ${MODEL_NAME} as a primitive.
*/
primitive_t * ${MODEL_NAME_CAMEL}Create();
void ${MODEL_NAME_CAMEL}Init(primitive_t *primitive);
`;
// Write Source file
@@ -118,7 +118,7 @@ const strIndices = indices.map(i => {
const source = `${license}
#include "${fn}.h"
primitive_t * ${MODEL_NAME_CAMEL}Create() {
primitive_t * ${MODEL_NAME_CAMEL}Create(primitive_t *primitive) {
vertice_t vertices[${MODEL_NAME_CAPS}_VERTICE_COUNT] = {
${strVertices}
};
@@ -127,7 +127,7 @@ primitive_t * ${MODEL_NAME_CAMEL}Create() {
${strIndices}
};
primitive_t *primitive = primitiveCreate(
primitiveInit(
${MODEL_NAME_CAPS}_VERTICE_COUNT,
${MODEL_NAME_CAPS}_INDICE_COUNT
);