InlineDrawing.kl¶
Interfaces¶
InlineDrawing (interface)¶
バージョン 1.13.0 で追加.
The InlineDrawing is an interface describing all methods required for the InlineDrawingBase object.
Functions¶
Functions in detail¶
InlineDrawing.deregisterCallback! ( in InlineDrawingCallback callback )
deregisters a InlineDrawingCallback
InlineDrawingCallback[] InlineDrawing.getCallbacks? ()
deregisters a InlineDrawingCallback
Ref<InlineTexture> InlineDrawing.getOrCreateAtlasTexture! ( in FilePath fontPath, in UInt32 fontSize )
returns an InlineAtlasTexture to draw text
InlineTransform InlineDrawing.getRoot? ()
returns the root transform of this drawing
InlineShader InlineDrawing.getShader? ( in Index index )
returns a shader given an index
InlineShader InlineDrawing.getShader? ( in String name )
returns a shader given a name, or null
Size InlineDrawing.getShaderCount? ()
returns the number of registered shaders
Integer InlineDrawing.getShaderIndex? ( in String name )
returns the index of a shader in the drawing
InlineShape InlineDrawing.getShape? ( in Index index )
returns a shape with a given index, or null
InlineShape InlineDrawing.getShape? ( in String name )
returns a shape with a given name, or null
InlineShapeAdaptor InlineDrawing.getShapeAdaptor? ( in Index index )
returns the shape adaptor of a given index
InlineShapeAdaptor InlineDrawing.getShapeAdaptor? ( in String shapeType )
returns the shape adaptor for a given type
Integer InlineDrawing.getShapeAdaptorIndex? ( in String shapeType )
returns the index of a shape adaptor
Size InlineDrawing.getShapeCount? ()
returns the number of shapes registered
Integer InlineDrawing.getShapeIndex? ( in String name )
returns the index of a shape in the drawing
InlineTexture InlineDrawing.getTexture? ( in Index index )
returns a texture with a given index, or null
InlineTexture InlineDrawing.getTexture? ( in String name )
returns a texture with a given name, or null
InlineTextureAdaptor InlineDrawing.getTextureAdaptor? ( in Index index )
returns the texture adaptor of a given index
InlineTextureAdaptor InlineDrawing.getTextureAdaptor? ( in String textureType )
returns the texture adaptor for a given type
Integer InlineDrawing.getTextureAdaptorIndex? ( in String textureType )
returns the index of a texture adaptor
Size InlineDrawing.getTextureCount? ()
returns the number of textures registered
Integer InlineDrawing.getTextureIndex? ( in String name )
returns the index of a texture in the drawing
InlineTransformAdaptor InlineDrawing.getTransformAdaptor? ( in Index index )
returns the transform adaptor of a given index
InlineTransformAdaptor InlineDrawing.getTransformAdaptor? ( in String transformType )
returns the transform adaptor for a given type
Integer InlineDrawing.getTransformAdaptorIndex? ( in String transformType )
returns the index of a transform adaptor
Viewport InlineDrawing.getViewport? ( in String key )
Returns a known viewport
Boolean InlineDrawing.hasShader? ( in String name )
returns true if a shader with a given name has been registered
Boolean InlineDrawing.hasShape? ( in String name )
returns true if a shape with a given name has been registered
Boolean InlineDrawing.hasTexture? ( in String name )
returns true if a given texture has been registered
InlineDrawing.registerCallback! ( in InlineDrawingCallback callback )
Registers a InlineDrawingCallback
InlineShader InlineDrawing.registerShader! ( in InlineShader shader )
registers a new shader into this drawing
InlineShader InlineDrawing.registerShader! ( in Type shaderType )
registers a new shader of type shaderType into this drawing
InlineShape InlineDrawing.registerShape! ( in InlineShapeBase shape )
registers a new shape into this drawing
InlineDrawing.registerShapeAdaptor! ( in InlineShapeAdaptor adaptor )
registers a new adaptor for shape drawing
InlineTexture InlineDrawing.registerTexture! ( in InlineTexture texture )
registers a new texture into this drawing. the texture should replace an existing texture if name unique is relevant.
InlineDrawing.registerTextureAdaptor! ( in InlineTextureAdaptor adaptor )
registers a new adaptor for texture drawing
InlineDrawing.registerTransformAdaptor! ( in InlineTransformAdaptor adaptor )
registers a new adaptor for shape drawing
InlineDrawing.registerViewport! ( in String key, in Viewport viewport )
Registers a new viewport
Boolean InlineDrawing.unregisterShape! ( in String name )
unregisters this shape from this drawing returns true of successful
InlineDrawingCallback (interface)¶
Functions¶
viewportRegistered ! ( in InlineDrawing inlineDrawing, io Viewport viewport ) |
Functions in detail¶
InlineDrawingCallback.viewportRegistered! ( in InlineDrawing inlineDrawing, io Viewport viewport )
Types¶
InlineDrawingBase (object)¶
バージョン 1.12.0 で追加.
The InlineDrawingBase is used to perform direct rendering to the viewport. This KL object is inherited by the OGLInlineDrawing type for specialized OpenGL direct rendering. The InlineDrawingBase manages a minimalistic scene using the InlineTransform, as well as InlineShader and InlineShape objects.