| Package | laya.webgl.resource |
| Class | public class WebGLCharImage |
| Inheritance | WebGLCharImage laya.resource.Bitmap |
| Implements | IMergeAtlasBitmap |
| Property | Defined By | ||
|---|---|---|---|
| allowMerageInAtlas : Boolean [read-only]
是否创建私有Source
| WebGLCharImage | ||
| atlasSource : * [read-only] | WebGLCharImage | ||
| borderColor : String | WebGLCharImage | ||
| borderSize : int | WebGLCharImage | ||
| canvas : * HTML Canvas,绘制字符载体,非私有数据载体 | WebGLCharImage | ||
| ch : Number | WebGLCharImage | ||
| char : String | WebGLCharImage | ||
| cw : Number | WebGLCharImage | ||
| enableMerageInAtlas : Boolean
是否创建私有Source
| WebGLCharImage | ||
| fillColor : String | WebGLCharImage | ||
| font : String | WebGLCharImage | ||
| fontSize : int | WebGLCharImage | ||
| isSpace : Boolean | WebGLCharImage | ||
| lineWidth : int | WebGLCharImage | ||
| texture : Texture | WebGLCharImage | ||
| underLine : int | WebGLCharImage | ||
| UV : Array | WebGLCharImage | ||
| xs : Number | WebGLCharImage | ||
| Method | Defined By | ||
|---|---|---|---|
WebGLCharImage(content:String, drawValue:*)
WebGLCharImage依赖于外部canvas,自身并无私有数据载体
| WebGLCharImage | ||
active():void | WebGLCharImage | ||
clearAtlasSource():void | WebGLCharImage | ||
createOneChar(content:String, drawValue:*):WebGLCharImage [static]
创建单个文字
| WebGLCharImage | ||
| Method | Defined By | ||
|---|---|---|---|
recreateResource():void [override] | WebGLCharImage | ||
| allowMerageInAtlas | property |
allowMerageInAtlas:Boolean [read-only] 是否创建私有Source
public function get allowMerageInAtlas():Boolean| atlasSource | property |
atlasSource:* [read-only] public function get atlasSource():*| borderColor | property |
public var borderColor:String| borderSize | property |
public var borderSize:int| canvas | property |
public var canvas:*HTML Canvas,绘制字符载体,非私有数据载体
| ch | property |
public var ch:Number| char | property |
public var char:String| cw | property |
public var cw:Number| enableMerageInAtlas | property |
enableMerageInAtlas:Boolean是否创建私有Source
public function get enableMerageInAtlas():Boolean public function set enableMerageInAtlas(value:Boolean):void| fillColor | property |
public var fillColor:String| font | property |
public var font:String| fontSize | property |
public var fontSize:int| isSpace | property |
public var isSpace:Boolean| lineWidth | property |
public var lineWidth:int| texture | property |
public var texture:Texture| underLine | property |
public var underLine:int| UV | property |
public var UV:Array| xs | property |
public var xs:Number| WebGLCharImage | () | Constructor |
public function WebGLCharImage(content:String, drawValue:*)WebGLCharImage依赖于外部canvas,自身并无私有数据载体
Parameterscontent:String | |
drawValue:* |
| active | () | method |
public function active():void| clearAtlasSource | () | method |
public function clearAtlasSource():void| createOneChar | () | method |
public static function createOneChar(content:String, drawValue:*):WebGLCharImage创建单个文字
Parameters
content:String | |
drawValue:* |
WebGLCharImage —
|
| recreateResource | () | method |
override protected function recreateResource():void