v fmt examples/ttf_font/example_ttf.v

pull/13739/head
yuyi98 2022-03-15 13:18:38 +08:00
parent 1546b3c8cd
commit f512929633
1 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ fn main() {
// TTF render 0 Frame counter
app.ttf_render << &ttf.TTF_render_Sokol{
bmp: &ttf.BitMap{
tf: &(app.tf[0])
tf: &app.tf[0]
buf: unsafe { malloc_noscan(32000000) }
buf_size: (32000000)
color: 0xFF0000FF
@ -155,7 +155,7 @@ fn main() {
// TTF render 1 Text Block
app.ttf_render << &ttf.TTF_render_Sokol{
bmp: &ttf.BitMap{
tf: &(app.tf[1])
tf: &app.tf[1]
// color : 0xFF0000_10
// style: .raw
// use_font_metrics: true
@ -164,7 +164,7 @@ fn main() {
// TTF mouse position render
app.ttf_render << &ttf.TTF_render_Sokol{
bmp: &ttf.BitMap{
tf: &(app.tf[0])
tf: &app.tf[0]
}
}
// setup sokol_gfx