Working on model loading and added poker table
This commit is contained in:
27
include/dawn/display/debug/position.h
Normal file
27
include/dawn/display/debug/position.h
Normal 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;
|
25
include/dawn/display/gui/font.h
Normal file
25
include/dawn/display/gui/font.h
Normal 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;
|
Reference in New Issue
Block a user