struct Tessell::Render::TextBatch

Overview

批次:同一图集页(page)且同页面类型(color)的连续顶点段。纹理由后端占有,调用方不再传纹理 id。 color=false: R8 覆盖页(顶点色调制);color=true: RGBA 预乘页(后端以 glColor4f(1,1,1,1) 提交,不再乘色)。

Defined in:

tessell/render/text_renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(start : Int32, count : Int32, page : Int32, color : Bool = false) #

[View source]

Instance Method Detail

def color : Bool #

[View source]
def count : Int32 #

[View source]
def page : Int32 #

[View source]
def start : Int32 #

[View source]