核心热路径(数学/内存/字符串/性能分析)用MASM汇编(SSE/AVX2) 外围系统(窗口/渲染/ECS/音频/UI/脚本)用C语言 含自研编辑器、VisualScript积木编程、中文渲染(glyph_atlas)
11 lines
403 B
C
11 lines
403 B
C
#pragma once
|
|
#include "uilayer.h"
|
|
#include "bitmap_font.h"
|
|
|
|
int textlayer_init(TextLayer* t, ID3D11Device* dev, BitmapFont* font, UILayer* ui);
|
|
void textlayer_destroy(TextLayer* t);
|
|
void textlayer_draw(TextLayer* t, ID3D11DeviceContext* ctx,
|
|
const char* text, int x, int y,
|
|
float r, float g, float b, float a,
|
|
float screen_w, float screen_h);
|