[vulkan] Clean up draw a little bit

It's just removing some functions that will never be implemented, and an
unnecessary field.
This commit is contained in:
Bill Currie 2023-01-09 13:31:53 +09:00
parent 82d0b7ecd5
commit b310ece7bd
2 changed files with 0 additions and 27 deletions

View file

@ -85,10 +85,6 @@ int Vulkan_Draw_AddFont (struct font_s *font, struct vulkan_ctx_s *ctx);
void Vulkan_Draw_Glyph (int x, int y, int fontid, int glyphid, int c,
struct vulkan_ctx_s *ctx);
void Vulkan_Set2D (struct vulkan_ctx_s *ctx);
void Vulkan_Set2DScaled (struct vulkan_ctx_s *ctx);
void Vulkan_End2D (struct vulkan_ctx_s *ctx);
void Vulkan_DrawReset (struct vulkan_ctx_s *ctx);
void Vulkan_FlushText (struct qfv_renderframe_s *rFrame);
void Vulkan_LineGraph (int x, int y, int *h_vals, int count, int height,

View file

@ -162,7 +162,6 @@ typedef struct drawfontres_s {
typedef struct drawfont_s {
VkDescriptorSet set;
drawfontres_t *resource;
font_t *font;
} drawfont_t;
typedef struct drawfontset_s
@ -1095,26 +1094,6 @@ Vulkan_Draw_FadeScreen (vulkan_ctx_t *ctx)
draw_blendscreen (color, ctx);
}
void
Vulkan_Set2D (vulkan_ctx_t *ctx)
{
}
void
Vulkan_Set2DScaled (vulkan_ctx_t *ctx)
{
}
void
Vulkan_End2D (vulkan_ctx_t *ctx)
{
}
void
Vulkan_DrawReset (vulkan_ctx_t *ctx)
{
}
static void
draw_begin_subpass (QFV_DrawSubpass subpass, qfv_renderframe_t *rFrame)
{
@ -1376,8 +1355,6 @@ Vulkan_Draw_AddFont (font_t *rfont, vulkan_ctx_t *ctx)
DARRAY_OPEN_AT (&dctx->fonts, fontid, 1);
drawfont_t *font = &dctx->fonts.a[fontid];
font->font = rfont;
font->resource = malloc (sizeof (drawfontres_t));
font->resource->resource = (qfv_resource_t) {
.name = va (ctx->va_ctx, "glyph_data:%d", fontid),