Working on model loading and added poker table
This commit is contained in:
@ -81,10 +81,17 @@ typedef struct {
|
||||
tileset_t *kagamiTileset;
|
||||
primitive_t *kagamiQuad;
|
||||
|
||||
primitive_t *tablePrimitive;
|
||||
texture_t *tableTexture;
|
||||
|
||||
texture_t *cardTexture;
|
||||
tileset_t *cardTileset;
|
||||
primitive_t *cardPrimitive;
|
||||
|
||||
texture_t *fontTexture;
|
||||
tileset_t *fontTileset;
|
||||
spritebatch_t *fontBatch;
|
||||
|
||||
/** Game Render Frames */
|
||||
framebuffer_t *frameLeft;
|
||||
framebuffer_t *frameRight;
|
||||
|
@ -16,6 +16,10 @@
|
||||
#include "display/texture.h"
|
||||
#include "display/tileset.h"
|
||||
|
||||
#include "display/debug/position.h"
|
||||
|
||||
#include "display/gui/font.h"
|
||||
|
||||
// File / Asset Management
|
||||
#include "file/asset.h"
|
||||
|
||||
|
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;
|
@ -8,14 +8,26 @@
|
||||
#include "../util/list.h"
|
||||
|
||||
|
||||
/** Inputs */
|
||||
#define INPUT_UP (inputbind_t)0x01
|
||||
#define INPUT_DOWN (inputbind_t)0x02
|
||||
#define INPUT_LEFT (inputbind_t)0x03
|
||||
#define INPUT_RIGHT (inputbind_t)0x04
|
||||
/** Debug Inputs */
|
||||
#define INPUT_NULL (inputbind_t)0x00
|
||||
#define INPUT_DEBUG_UP (inputbind_t)0x01
|
||||
#define INPUT_DEBUG_DOWN (inputbind_t)0x02
|
||||
#define INPUT_DEBUG_LEFT (inputbind_t)0x03
|
||||
#define INPUT_DEBUG_RIGHT (inputbind_t)0x04
|
||||
#define INPUT_DEBUG_RAISE (inputbind_t)0x05
|
||||
#define INPUT_DEBUG_LOWER (inputbind_t)0x06
|
||||
#define INPUT_DEBUG_FINE (inputbind_t)0x07
|
||||
#define INPUT_DEBUG_PLUS (inputbind_t)0x08
|
||||
#define INPUT_DEBUG_MINUS (inputbind_t)0x09
|
||||
|
||||
#define INPUT_NULL (inputbind_t)0x00
|
||||
#define INPUT_BIND_COUNT 128
|
||||
/** Real Inputs (Starts at 128/0x80) */
|
||||
#define INPUT_UP (inputbind_t)0x80
|
||||
#define INPUT_DOWN (inputbind_t)0x81
|
||||
#define INPUT_LEFT (inputbind_t)0x82
|
||||
#define INPUT_RIGHT (inputbind_t)0x83
|
||||
|
||||
|
||||
#define INPUT_BIND_COUNT 0xFF
|
||||
#define INPUT_SOURCE_COUNT 4096
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user