Working on model loading and added poker table

This commit is contained in:
2021-05-09 14:38:08 -07:00
parent f3ffc93927
commit d6e3b4aad1
21 changed files with 1297 additions and 38 deletions

View File

@ -0,0 +1,27 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../../libs.h"
#include "../primitive.h"
#include "../texture.h"
#include "../tileset.h"
#define POSITION_DEBUG_FONT_CHARS_MAX 256
/** Struct representing a positionable object in space */
typedef struct {
primitive_t *primitive;
spritebatch_t *textBatch;
texture_t *textTexture;
tileset_t *textTileset;
float x, y, z;
float pitch, yaw, roll;
float scaleX, scaleY, scaleZ;
} positiondebug_t;

View File

@ -0,0 +1,25 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "../../libs.h"
/** Which is the first character within the font tilemap */
#define FONT_CHAR_START 33
/** Center a font along the X axis */
#define FONT_CENTER_X 9876543
/** Center a font along the Y axis */
#define FONT_CENTER_Y -FONT_CENTER_X
/** Align right edge of font to origin */
#define FONT_RIGHT_X (FONT_CENTER_X-1)
typedef struct {
float width, height;
int32_t lines;
} fontmeasure_t;