Namespaces | |
chrono | |
errc | |
placeholders | |
this_thread | |
Classes | |
class | AbstractAnimation |
Interface for abstract animations. More... | |
class | AbstractLogger |
Inherit from this class to implement logger. More... | |
class | AbstractMessageType |
class | AbstractMessageTypeDescriptor |
class | AbstractNodeReference |
class | AbstractProfiler |
AbstractProfiler. More... | |
class | AbstractPropertyNotificationHandler |
Abstract property notification handler. More... | |
class | AbstractPropertyType |
AbstractPropertyType is a homogeneous property type handle. More... | |
class | AbstractPropertyTypeDescriptor |
AbstractPropertyTypeDescriptor is used internally by the property type system to manage property types. More... | |
class | AbstractResourceReference |
class | AbstractValueProfiler |
Abstract value profiler. More... | |
class | Action |
Action is the base class for objects that execute something when the owning Trigger is activated. More... | |
class | AndroidLogger |
class | AnimationBindingProcessor |
Animation validator. More... | |
class | AnimationPlayer |
Use the Animation Player to play back an animation timeline that you set using the TimelineProperty property in that Animation Player. More... | |
class | AnimationResource |
A Resource wrapper class for animations. More... | |
class | Application |
Application class. More... | |
struct | ApplicationProperties |
Configurable application properties. More... | |
struct | AppliedStyleEntry |
Applied style entry. More... | |
struct | BackEasingFunction |
struct | BezierEasingFunction |
class | BinaryResource |
class | Binding |
Binding objects establish connections between properties, message values or arguments. More... | |
struct | BindingAnimationOpCode |
Animation binding operation. More... | |
struct | BindingExpressionOpCode |
Expression binding operation. More... | |
struct | BindingOperation |
Base class for binding operations. More... | |
class | BindingProcessor |
Binding validator. More... | |
class | BitmapImage |
Image is the basic runtime primitive to load, hold, and convert image data in memory. More... | |
class | BlitRenderPass |
Use the Blit Render Pass to blit one or more textures to the screen of the current rendering context using a material. More... | |
struct | BounceEasingFunction |
class | Box |
Class for box volume. More... | |
class | Brush |
Brush class. More... | |
class | BrushRenderer |
Brush renderer class. More... | |
class | Buffer |
GPU memory buffer, for vertex or index data. More... | |
class | BufferObjectStream |
Specifies stream to GL buffer object. More... | |
class | Button2D |
Button2D. More... | |
class | Button3D |
Button node. More... | |
class | ButtonConcept |
Button concept class. More... | |
class | ButtonConceptImpl |
Base class for buttons. More... | |
class | CallbackBindingProcessor |
Callback validator. More... | |
class | Camera |
Camera node defines a view transform that is used to render the 3D scene. More... | |
struct | CircleEasingFunction |
class | ClassPropertyDefaultValue |
ClassPropertyDefaultValue is a helper for installing property values as class metadata. More... | |
class | ClearRenderPass |
Use a Clear Render Pass to clear the color, depth, and stencil buffers of the current render context before passing the control to the descendants of this render pass. More... | |
class | ClickManipulator |
Click input manipulator recognizes the click and tap gestures from incoming touch events. More... | |
class | ColorBrush |
Color brush class. More... | |
class | ColorBrushRenderer |
Color brush renderer class. More... | |
class | ColorRGBA |
Color with 4 floating point components: red, green, blue and alpha (r, g, b, a). More... | |
class | Command |
Command class defines property and message types used in implementation of commands. More... | |
class | CompositionBrush |
Texture brush class. More... | |
class | CompositionBrushRenderer |
OpenGL texture brush renderer class. More... | |
class | CompositionManager |
Composition manager. More... | |
class | CompositionRequirements |
Composition requirements represents the required buffers for composition. More... | |
class | CompositionStack |
Composition stack for managing current render context. More... | |
class | CompositionTargetRenderPass |
Use the Composition Target Render Pass to set a composition target and render all descendant render passes to the composition target that the Composition Target Render Pass created. More... | |
class | Condition |
Condition for triggers. More... | |
class | Constraints |
Contains property types of Constraints. More... | |
class | ContentBrush |
Texture brush class. More... | |
class | ContentBrushRenderer |
Content brush renderer class. More... | |
class | ContentItemCollectionModel |
Base class for exposing abstract access to collections of items of UI controls with content. More... | |
class | ContentItemModel |
Base class for exposing abstract access to content of UI controls with single content item model. More... | |
class | ContentReference |
class | CoutLogger |
This logger class writes log messages to standard output. More... | |
struct | CubicEasingFunction |
class | DataContext |
DataContext acts as a container for data. More... | |
class | DataObject |
DataObject is the base class for data. More... | |
class | DataObjectEnum |
Provides functions to host / set / get value of given type. More... | |
class | DataObjectEnumBase |
DataObjectEnumBase is the base class for enum data. More... | |
class | DataObjectList |
DataObjectList is the base class for list data object. More... | |
class | DataObjectTyped |
Template class that can be used with standard types. More... | |
class | DataSource |
Use data sources to separate the user interface from the application data and to remove the dependencies between a Kanzi Studio project and the application code which define the Kanzi application. More... | |
class | DataSourceListItemGenerator |
class | DataSourceListItemGenerator2D |
class | DataSourceListItemGenerator3D |
class | DefaultEventSource |
class | DefaultListBoxItemContainerGenerator |
class | DefaultListBoxItemGenerator |
class | DefaultLogger |
Use this class to access the Default Logger. More... | |
class | DefaultProfilerRegistry |
The default profiler registry placeholder. More... | |
class | DispatchMessageAction |
Dispatch message action. More... | |
class | DockLayout2D |
Use the Dock Layout 2D node to place nodes relative to each other along the sides of a Dock Layout 2D node. More... | |
class | DockLayout3D |
Use the Dock Layout 3D node to place nodes relative to each other along the sides of a Dock Layout 3D node. More... | |
class | DockLayoutConcept |
Dock layout concept base class. More... | |
class | DockLayoutConceptImpl |
Dock layout concept implementation base class. More... | |
class | Domain |
Domain binds Kanzi subsystems and objects together. More... | |
class | DragAndDropManipulator |
Drag and drop input manipulator recognizes the drag and drop gesture from incoming touch events. More... | |
class | DrawObjectsRenderPass |
Use the Draw Objects Render Pass to render only nodes in a Scene node provided by an object source you set in this render pass. More... | |
class | DrawObjectsWithMaterialRenderPass |
Use the Draw Objects With Material Render Pass to render nodes provided by an object source using a material. More... | |
class | DynamicMessageType |
class | DynamicPropertyType |
DynamicPropertyType is a handle for property types that are unknown. More... | |
struct | ElasticEasingFunction |
class | EmptyNode2D |
Empty Node 2D can be used to group other 2D nodes. More... | |
class | EmptyNode3D |
struct | enable_if |
struct | enable_if< true, _Type > |
class | EventFilter |
EventFilter class. More... | |
class | EventSource |
EventSource class. More... | |
struct | EventSourceProperties |
Configurable event source properties. More... | |
class | ExampleApplication |
class | ExecuteScriptAction |
Execute script action. More... | |
struct | ExponentialEasingFunction |
class | ExpressionBindingProcessor |
Expression validator. More... | |
class | ExpressionCondition |
Use trigger conditions to set which conditions must be met for a Trigger to set off. More... | |
class | File |
class | FixedString |
String that points to a string literal. More... | |
class | FlagScopeGuard |
class | FlowLayout2D |
Flow Layout 2D arranges 2D items along a line and continues to the next line when it runs out of space. More... | |
class | FlowLayout3D |
Flow Layout 3D arranges 3D items along a line and continues to the next line when it runs out of space. More... | |
class | FlowLayoutConcept |
Flow layout concept base class. More... | |
class | FlowLayoutConceptImpl |
Flow layout concept implementation base class. More... | |
class | FocusManager |
FocusManager enables you to set and change the keyboard and logical focus between attached nodes. More... | |
class | ForwardingAction |
A class that is able to read arguments from message and translates them to action arguments. More... | |
class | FPSConstraints |
Constraint for limiting the number of frames per second the Engine is rendering. More... | |
class | Framebuffer |
Framebuffer allows the rendering to the user-specified texture or renderbuffer, instead of rendering directly to the window. More... | |
class | FrameDescription |
Description of a frame, the remaining area of a quad with another quad cut out. More... | |
class | FrameTimeQueue |
Queue specialization for calculating frame rate. More... | |
struct | from_chars_result |
class | FromToAnimation |
Template class for from-to animations. More... | |
class | FromToAnimationBase |
class | GenericResourceProfilingContext |
Generic resource profiling context. More... | |
class | Geometry |
Renderable geometry. More... | |
class | GeometryFrame |
Geometry representing a quad that has its center cut out. More... | |
class | GeometryGl |
Base GL geometry. More... | |
class | GeometryGlBuffer |
GL geometry with set size. More... | |
class | GeometryQuad |
Renderable quad. More... | |
class | GlBrushRenderer |
OpenGL brush renderer specifics. More... | |
class | GLBufferHandle |
GLBufferHandle manages RAII ownership for GL buffer object. More... | |
class | GLFramebufferHandle |
GLFramebufferHandle manages RAII ownership for GL framebuffer object. More... | |
class | GlGraphicsAdapter |
Base class for handling calls to OpenGL family. More... | |
class | GlGraphicsAdapterCallGles |
OpenGL API call handler which calls the implementation from dynamically loaded GLES library. More... | |
class | GlGraphicsAdapterCheckForErrors |
Check for GL errors. More... | |
class | GlGraphicsAdapterLogger |
Logs OpenGL API calls. More... | |
class | GlGraphicsLogScope |
Scoped OpenGL log enable/disabler. More... | |
class | GlGraphicsOutput |
GlGraphicsOutput class. More... | |
struct | Global |
class | GLProgramHandle |
GLProgramHandle manages RAII ownership for GL program object. More... | |
class | GLRenderbufferHandle |
GLRenderbufferHandle manages RAII ownership for GL renderbuffer object. More... | |
class | GlRenderState |
OpenGL render state. More... | |
class | GlRenderValue |
Individual render value container. More... | |
class | GlRenderValue< TextureSharedPtr > |
Specialization of GlRenderValue. More... | |
class | GlRenderValueBase |
Base class for render value information. More... | |
struct | GlRenderValueBinding |
GlRenderValueBinding is a binding from shaders/materials into values in GlRenderState. More... | |
class | GLShaderHandle |
GLShaderHandle manages RAII ownership for GL shader object. More... | |
class | GLTextureHandle |
GLTextureHandle manages RAII ownership for GL texture object. More... | |
class | GPUResource |
GPUResource is a resource that must be deployed to the GPU. More... | |
class | GraphicsOutput |
GraphicsOutput class. More... | |
class | GridLayout2D |
Grid Layout 2D arranges 2D items in a grid. More... | |
class | GridLayout3D |
Grid Layout 3D arranges 3D items in a grid. More... | |
class | GridLayoutConcept |
GridConcept is a base class for the nodes that implement layout that arranges items in a grid. More... | |
class | GridLayoutConceptImpl |
GridConceptImplementation is an abstract class for implementing grid concept. More... | |
class | GridListBox2D |
Represents a node that layouts its list of 2D items in a grid. More... | |
class | GridListBox2DTraits |
class | GridListBox3D |
Represents a node that layouts its list of 3D items in a grid. More... | |
class | GridListBox3DTraits |
class | GridListBoxConcept |
Properties and messages for grid list boxes. More... | |
class | Image2D |
class | ImmutableString |
Immutable string container. More... | |
class | InputManager |
InputManager converts the events from the given event queue into input specific messages. More... | |
class | InputManipulator |
The base class for the input manipulator. More... | |
class | Instantiator3D |
Instantiator3D node is a 3D node that replicates the appearance of 3D object, or a tree of 3D objects the instantiator node targets. More... | |
class | InterpolatedValue |
Core component for smooth interpolation in code. More... | |
class | IntervalProfiler |
The interval profiler. More... | |
struct | IntervalProfilerSampleData |
The interval profiler data sample. More... | |
struct | IntervalProfilerSampleStatistics |
class | IntervalProfilingSampler |
The main loop task profiling sampler collects interval measurement to produce IntervalProfilerSampleData sample. More... | |
struct | IrisImageHeader |
class | KanziComponentsModule |
class | Keyboard |
Represents keyboard. More... | |
class | KeyframeAnimation |
Template class for keyframe animations. More... | |
class | KzbFile |
KZB file loader. More... | |
class | KZBFileException |
Exception which is thrown when error occurs during loading from KZB. More... | |
class | KzbMemoryParser |
Parser of the kzb file structure. More... | |
struct | KzuInputTouchPoint |
The structure describes the attributes for a touch point or mouse hit. More... | |
struct | KzuViewport |
Structure for viewport. More... | |
class | LegacyError |
class | LegacyRenderPass |
Legacy Render Pass is phased out in favor of specialized render passes that perform individual operations, which are combined in a Legacy Render Pass into a single render pass. More... | |
class | LevelOfDetail3D |
Level of detail selector node is a 3D node that changes the appearance of its child nodes based on the viewing distance. More... | |
class | Light |
Light node is a source of light for a 3D scene. More... | |
struct | LinearEasingFunction |
class | ListBoxConcept |
Properties and messages for list boxes. More... | |
class | ListBoxConceptImpl |
ListBoxConceptImpl provides common base implementation for different list boxes. More... | |
class | ListBoxGridPresenter |
class | ListBoxItemContainer |
Base class for List Box Item Containers for List Box. More... | |
class | ListBoxItemContainer2D |
List Box Item Container for List Box 2D. Wrapper component for storing item object nodes. More... | |
class | ListBoxItemContainer3D |
List Box Item Container for List Box 3D. Wrapper component for storing item object nodes. More... | |
class | ListBoxItemContainerGenerator2D |
class | ListBoxItemContainerGenerator3D |
class | ListBoxItemContainerImpl |
Implementation of base List Box Item Container class for List Box. More... | |
class | ListBoxItemGenerator2D |
class | ListBoxItemGenerator3D |
class | ListBoxTrajectoryPresenter |
class | LongPressManipulator |
Long press input manipulator recognizes the long press gesture from the incoming touch events. More... | |
class | MainLoopTaskProfiler |
Profiles the execution time of main loop tasks. More... | |
class | MainLoopTaskProfilerRegistry |
The registry of main loop task profilers. More... | |
struct | MainLoopTaskProfilerSampleData |
The main loop task profiler data sample. More... | |
class | MainLoopTaskProfilingSampler |
The main loop task profiling sampler collects interval measurement to produce #MainLoopTaskProfilerSampleData sample. More... | |
class | Material |
A material is an instance of a material type (ShaderProgram) that contains the property values for the material type properties. More... | |
class | MaterialBrush |
Freeform shader brush. More... | |
class | MaterialBrushRenderer |
Freeform shader brush renderer. More... | |
class | MaterialRenderer |
Material renderer. More... | |
class | MaterialSetupRenderPass |
Use the Material Setup Render Pass to set properties to a material for further render operations using that material. More... | |
class | Matrix3x3 |
Matrix with 3x3 elements. More... | |
class | Matrix4x4 |
Matrix with 4x4 elements. More... | |
class | MediaTimeline |
Timeline playing a media file. More... | |
class | Mesh |
Use Mesh::CreateInfo to describe and create meshes. More... | |
class | MeshVertexAttribute |
MeshVertexAttribute describes how mesh vertex data is stored in memory. More... | |
class | MessageArguments |
Message arguments is the base class for arguments passed in messages. More... | |
struct | MessageArgumentsBaseMetaclassWrapper |
struct | MessageArgumentsBaseMetaclassWrapper< MessageArguments > |
class | MessageDispatcherProperties |
class | MessageTrigger |
Message handler trigger. More... | |
class | MessageType |
class | Metaclass |
Metaclass provides type inspection mechanism for Kanzi classes. More... | |
class | MetaclassAbstractBase |
class | MetaclassAbstractImpl |
class | MetaclassImpl |
class | MetaclassStaticBase |
class | MetaclassStaticImpl |
struct | MetadataGeneratedName |
class | MetaMethod |
MetaMethod provides method invocation mechanism for Kanzi classes. More... | |
class | MetaObject |
MetaObject is the base class for classes that provide type reflection. More... | |
class | MethodArgument |
Holds argument type and value information. More... | |
class | MethodArguments |
Holds arguments applied on metamethod invocation. More... | |
class | Model3D |
Renders a mesh in 3D space. More... | |
class | Module |
Module is a class representing a functional module with its own metadata about the types it contains. More... | |
struct | ModuleDeleter |
Module deleter for shared_ptr. More... | |
class | Morph |
class | MorphRuntime |
Contains morph weights for a morph. More... | |
class | MorphWeightTimeline |
Timeline for animating morph weights. More... | |
class | MorphWeightTimelinePlayback |
Timeline Playback for morph timeline. More... | |
class | MoveFocusAction |
Use the MoveFocusAction action to transfer focus from the currently focused item to another focusable item in the focus navigation chain. More... | |
class | MultiClickManipulator |
Multi-click input manipulator recognizes double click and tap gestures from incoming touch events. More... | |
class | NamedResourceProfilingContext |
Named resource profiling context. More... | |
class | NativeDeploymentTarget |
Reference to a backend implementation specific memory storage type for deployment. More... | |
class | NinePatchImage2D |
A nine-patch image is a 3x3 grid of images. The center image is framed by the other images which all stretch according to the layout size. More... | |
class | Node |
Base class for scene graph nodes in Kanzi. More... | |
class | Node2D |
Node2D is the base class of all 2D nodes. More... | |
class | Node3D |
Base class for all 3D nodes. More... | |
class | NodeComponent |
NodeComponent is the base class for all node components. More... | |
class | NodeComponentTemplate |
NodeComponentTemplate is the base class for all node component templates. More... | |
class | NodeCompositor2D |
Composition functionality for 2D nodes. More... | |
struct | NodeContext |
class | NodePropertyNotificationHandler |
Node property notification handler. More... | |
class | NodeReference |
class | NodeVisual2D |
Composition functionality for 2D nodes. More... | |
class | NullBrush |
Null brush class. More... | |
class | NullGraphicsOutput |
NullGraphicsOutput class. More... | |
class | Object |
Object is the base class for Kanzi UI classes that implement association with a Domain. More... | |
class | ObjectFactory |
class | ObjectLoader |
ObjectLoader loads objects from KZB. More... | |
class | OnAttachedTrigger |
On Attached Trigger. More... | |
class | OnPropertyChangedTrigger |
Property change Trigger. More... | |
class | Page |
Use Page nodes to create the structure of an application user interface. More... | |
class | PageHost |
Use a PageHost node to group Page and PageHost nodes, and to manage navigation requests and transitions in a tree of Page nodes under a PageHost node. More... | |
class | PageTransitionCollection |
Transition collection is used to define transitions within a Page Host. More... | |
class | PanManipulator |
Pan input manipulator recognizes pan gesture from incoming touch events. More... | |
class | ParallelTimeline |
The Kanzi animation system consists of animations and timelines: animations define how to animate a property, and timelines map the animations to time and to objects you want to animate. More... | |
class | ParallelTimelinePlayback |
Playback control class for ParallelTimeline. More... | |
class | PerformanceInfo |
HUD class allows drawing information on top of tests. More... | |
struct | PerformanceInfoProperties |
Configurable performance info display properties. More... | |
class | PinchManipulator |
Pinch input manipulator recognizes the pinch gesture from incoming touch events. More... | |
class | PipelineStateRenderPass |
Use the Pipeline State Render Pass to set for its child render passes the depth and stencil testing, transparency, and culling. More... | |
class | PlayAnimationAction |
Play animation action is the action which starts playback of specified timeline when it is invoked. More... | |
class | Plugin |
class | Portal |
Portal layer. More... | |
struct | PowerEasingFunction |
class | PrefabTemplate |
class | PrefabTemplateNode |
class | PrefabView2D |
Prefab view 2D node. More... | |
class | PrefabView3D |
Prefab view 3D node. More... | |
class | PrefabViewConcept |
Prefab view concept class. More... | |
class | PrefabViewConceptImpl |
Base class for prefab views. More... | |
class | PreviewTimeline |
Preview timeline,. More... | |
class | PreviewTimelinePlayback |
Preview timeline playback controls child timeline playbacks based on preview instructions. More... | |
class | ProfilerRegistry |
Profiler registry. More... | |
class | ProfilingCategory |
Represents the runtime state of the profiling category. More... | |
class | ProfilingScopeHelper |
The profiling scope helper. More... | |
class | ProgressiveRenderingViewport2D |
Progressive rendering viewport 2D is a viewport which splits rendering its scene across multiple frames. More... | |
class | PropertyAnimationTimeline |
The Kanzi animation system consists of animations, which define how to animate properties, and timelines, which map animations to time and to the objects that you want to animate. More... | |
class | PropertyAnimationTimelinePlayback |
Playback class for PropertyAnimationTimeline. More... | |
struct | PropertyDataTypeTraits |
struct | PropertyDataTypeTraits< bool > |
struct | PropertyDataTypeTraits< ColorRGBA > |
struct | PropertyDataTypeTraits< float > |
struct | PropertyDataTypeTraits< int > |
struct | PropertyDataTypeTraits< Matrix3x3 > |
struct | PropertyDataTypeTraits< Matrix4x4 > |
struct | PropertyDataTypeTraits< ResourceSharedPtr > |
struct | PropertyDataTypeTraits< SRTValue2D > |
struct | PropertyDataTypeTraits< SRTValue3D > |
struct | PropertyDataTypeTraits< string > |
struct | PropertyDataTypeTraits< Vector2 > |
struct | PropertyDataTypeTraits< Vector3 > |
struct | PropertyDataTypeTraits< Vector4 > |
struct | PropertyDataTypeTraits< void * > |
class | PropertyDrivenAnimationPlayer |
Use Property Driven Animation Player when you want to use a property type to control a keyframe animation. More... | |
class | PropertyFieldAnimationTimeline |
The Kanzi animation system consists animations and timelines: animations define how to animate a property, and timelines map the animations to time and to objects you want to animate. More... | |
class | PropertyFieldAnimationTimelinePlayback |
Playback control for PropertyFieldAnimationTimeline. More... | |
class | PropertyFieldTargetInterpolationTimelinePlayback |
Playback for property target interpolation timeline for interpolating specific property field. More... | |
class | PropertyListener |
class | PropertyObject |
PropertyObject is the base class that supports setting and retrieving properties. More... | |
class | PropertyTargetInterpolationTimeline |
Property target interpolation timeline is a timeline that gradually interpolates specified property from its old value to new one each time new value is set to the property. More... | |
class | PropertyTargetInterpolationTimelinePlayback |
Playback for property target interpolation timeline. More... | |
class | PropertyTargetInterpolator |
Use a Property Target Interpolator when you want to dynamically set the target value of a property and want to interpolate the current value to the target value over time. More... | |
class | PropertyType |
Property type represents a property type for the property system. More... | |
class | PropertyType< Type, typename enable_if< is_enum< Type >::value >::type > |
Specialization for PropertyType for enums. See PropertyType. More... | |
class | PropertyTypeDescriptor |
PropertyTypeDescriptor is used internally by the property system to implement all operations required for property types that have the same data type. More... | |
struct | PropertyTypeEditorInfo |
Editor information for metadata. More... | |
class | QuadDescription |
Quad description. Used to create renderable quad geometry. More... | |
struct | QuadraticEasingFunction |
struct | QuarticEasingFunction |
struct | QuinticEasingFunction |
class | RangeConcept |
RangeConcept represents a number range with an optional step. More... | |
class | RangeConceptImpl |
class | ReadOnlyDiskFile |
Implements the File interface for files residing on a disk. More... | |
class | ReadOnlyMemoryFile |
class | Rectangle |
2-dimensional integer rectangle. More... | |
class | ReferenceCountScopeGuard |
Reference count scope guard. More... | |
class | RelativeNodeResolver |
class | Renderbuffer |
Renderbuffers provide the images that can be rendered to by attaching them to the framebuffer as color or depth stencil images. More... | |
class | Renderer |
class | Renderer3D |
Renderer is the core component for assigning lights, meshes, cameras, skin animations etc. to lower level rendering. More... | |
class | RendererStatisticsScope |
class | RenderPass |
RenderPass is the base class for Kanzi render passes. More... | |
class | RenderStatePropertyNotificationHandler |
Render value updater for render state. More... | |
class | RenderValuePropertyNotificationHandler |
Render value updater for individual render values. More... | |
class | RenderValuePropertyNotificationHandlerBase |
Base class for notification handlers for render values and render state values (through handles). More... | |
class | Resource |
Represents the base class for all resources. More... | |
class | ResourceDictionary |
A resource dictionary is a container that maps resource IDs to resources. More... | |
class | ResourceDictionarySelector |
A resource dictionary selector is a type of a resource dictionary that redirects resource queries to its only nested dictionary. More... | |
class | ResourceID |
Resource ID. More... | |
class | ResourceLoaderFactory |
Factory for resource loader tasks. More... | |
struct | ResourceLoaderThreadContext |
Resource loader thread local data. More... | |
class | ResourceManager |
Use the resource manager to access and use resources in kzb files. More... | |
class | ResourceProfiler |
The resource profiler. More... | |
class | ResourceProfilingAcquireContext |
The profiling context of resource acquirement. More... | |
class | ResourceProfilingAttributes |
Container for resource profiling attributes. More... | |
class | ResourceProfilingContext |
The resource profiling context. More... | |
class | ResourceProfilingContextFactory |
Resource profiling context factory. More... | |
class | ResourceProfilingDataSample |
The resource profiling data sample. More... | |
class | ResourceProfilingDeployContext |
The profiling context of resource deployment. More... | |
class | ResourceProfilingLoadContext |
The profiling context of resource loading. More... | |
class | ResourceProfilingLoadTask |
Resource profiling wrapper for load task. More... | |
class | ResourceProfilingMainLoopContext |
The main loop resource profiling context. More... | |
struct | ResourceProfilingPtreePopulator |
Resource profiling ptree populator. More... | |
class | ResourceReference |
class | Sampler |
Sampler provides the sampling parameters, such as minification and magnification filters, mipmap mode, and texture addressing mode for textures. More... | |
class | Scene |
Scene is a 3D node that is the root node for other 3D nodes. More... | |
class | SceneGraphTimelinePlaybackContext |
Helper class to resolve objects for animation timelines. More... | |
class | Scheduler |
Scheduler class. More... | |
class | ScopedRefCounter |
Scoped reference counter, which takes an unsigned integer value as argument on construction to track. More... | |
class | Screen |
The screen represents the metrics of the target device and acts as the root node for the whole node tree. More... | |
class | ScrollView2D |
Use the Scroll View 2D node to create an input plane to enable user input from gestures. More... | |
class | ScrollView3D |
Use the Scroll View 3D node to create an input plane to enable user input from gestures. More... | |
class | ScrollViewConcept |
ScrollViewConcept is the base class that provides the functionality for the ScrollView2D and ScrollView3D classes. More... | |
class | ScrollViewConceptImpl |
class | SequentialTimeline |
The Kanzi animation system consists animations and timelines: animations define how to animate a property, and timelines map the animations to time and to objects you want to animate. More... | |
class | SetFocusAction |
Use the SetFocusAction action to transfer focus to any focusable item in a node tree. More... | |
class | SetPropertyAction |
Set property action. More... | |
struct | ShaderProgram |
ShaderProgram defines programmable vertex and fragment operations done by the GPU for a draw call. More... | |
struct | ShaderTextureUniform |
Specifies single texture uniform entry. More... | |
class | ShaderVertexAttribute |
ShaderVertexAttribute describes the attributes that shader program will read when executed by graphics device. More... | |
class | SharedImmutableString |
Shared immutable string container. More... | |
struct | SineEasingFunction |
class | Slider2D |
ExamplesMore... | |
class | Slider2DConceptImpl |
class | Slider3D |
ExamplesMore... | |
class | Slider3DConceptImpl |
class | SliderConcept |
SliderConcept contains the trajectory ResourceID property. More... | |
class | SliderTrajectoryPresenter |
struct | SmootherStepEasingFunction |
struct | SmoothStepEasingFunction |
class | SpeedMeasurer |
Implements an object that calculates average speed from its measurement data. More... | |
class | SplashScreen |
Splash screen. More... | |
class | SRTValue2D |
Structure describing scale, rotation and translation transformation in 2D space. More... | |
class | SRTValue3D |
Structure describing scale, rotation and translation transformation in 3D space. More... | |
class | SRTValue3DLongerPath |
class | StackLayout2D |
Stack Layout 2D arranges its items on a line along the axis you specify in the DirectionProperty. More... | |
class | StackLayout3D |
Stack Layout 3D arranges its items on a line along the axis you specify in the DirectionProperty. More... | |
class | StackLayoutConcept |
Stack layout concept base class. More... | |
class | StackLayoutConceptImpl |
Stack layout concept implementation base class. More... | |
class | StandardMaterial |
Contains property types of Standard material. More... | |
class | StartupProfilerRegistry |
The registry of startup profilers. More... | |
class | StateManager |
State manager for managing states of nodes or application. More... | |
struct | StepEasingFunction |
class | StopWatch |
Stop watch class. More... | |
class | Style |
Style applying properties, node components and bindings to nodes. More... | |
class | Surface |
Surfaces provide images for Framebuffers where to render to. More... | |
class | SuspensionManager |
Suspension manager implements logic for suspending the UI thread when there is no input, tasks or timed events. More... | |
class | Tag |
Tag represents a mark that can be added to a node to mark that the node is of certain kind. More... | |
class | TaskDispatcher |
Task dispatcher. More... | |
class | TaskDispatcherBase |
Base class for TaskDispatcher implementation. More... | |
class | TextBlock2D |
Text Block 2D displays a small amount of text in 2D. More... | |
class | TextBlock3D |
Text Block 3D displays a small amount of text in 3D. More... | |
class | TextBlockConcept |
TextConcept is base class for nodes that implement text rendering. More... | |
class | TextBlockConceptImpl |
TextConceptImplementation is an abstract class for implementing text concept. More... | |
class | TextResource |
Text resource. More... | |
struct | Texture |
Textures provide images that can be used with image nodes, texture brushes and materials for use in 3D rendering or material brushes. More... | |
class | TextureBrush |
Texture brush class. More... | |
class | TextureBrushRenderer |
Texture brush renderer class. More... | |
class | TextureSwizzleMask |
Texture swizzle mask. More... | |
struct | TimeInterval |
Interval in time specified as start and end timestamps. More... | |
class | Timeline |
The Kanzi animation system consists of animations and timelines: animations define how the values of specific type change in time, and timelines map the animations to properties of objects you want to animate. More... | |
class | TimelineClock |
Updates timelines based on time. More... | |
class | TimelineEvent |
Event on a timeline. More... | |
class | TimelinePlayback |
Playback object for Timelines. More... | |
class | TimelinePlaybackContext |
Helper interface which defines the context of animation playback, i.e. More... | |
class | TimelineResource |
struct | TimerMessageArguments |
class | TimerTrigger |
Timer Trigger. More... | |
class | ToggleButton2D |
class | ToggleButton3D |
Toggle button node. More... | |
class | ToggleButtonGroup2D |
Toggle Button Group 2D allows users of your application to select only one option from a set of options that are mutually exclusive. More... | |
class | ToggleButtonGroup3D |
Toggle Button Group 3D allows users of your application to select only one option from a set of options that are mutually exclusive. More... | |
class | ToggleButtonGroupConcept |
ToggleButtonGroup contains properties that are common to both ToggleButtonGroup2D and ToggleButtonGroup3D. More... | |
class | ToggleButtonGroupConceptImpl |
struct | TouchPointIdEquals |
Helper predicate functor which you can use to search for a touch point within a touch point container using the identifier of a touch point. More... | |
struct | TouchPointStateEquals |
Helper predicate functor which you can use to search within a touch point container using the state of a touch point. More... | |
class | Trajectory |
class | Trajectory2DInputHandler |
class | Trajectory2DInputLogic |
class | Trajectory3DInputHandler |
class | Trajectory3DInputLogic |
class | TrajectoryLayout2D |
Trajectory Layout 2D arranges its items along a trajectory. More... | |
class | TrajectoryLayout3D |
Trajectory Layout 3D arranges its items along a trajectory. More... | |
class | TrajectoryLayoutConcept |
TrajectoryLayoutConcept contains trajectory layout related properties. More... | |
class | TrajectoryListBox3D |
Represents a node that layouts its list of 3D items on a trajectory. More... | |
class | TrajectoryListBox3DTraits |
class | TransformedScene3D |
class | Trigger |
Trigger is the base class for defining events, conditions and actions for content-driven logic programming. More... | |
class | TriggerTemplate |
TriggerTemplate is the base class for trigger templates. More... | |
class | TypedRenderStatePropertyNotificationHandler |
Specialized property state and value container for render state. More... | |
class | TypedRenderStatePropertyNotificationHandler< GraphicsBlendMode > |
TypedRenderStatePropertyNotificationHandler specialization. More... | |
class | TypedRenderStatePropertyNotificationHandler< TextureSharedPtr > |
TypedRenderStatePropertyNotificationHandler specialization. More... | |
class | UsingIntrusivePtr |
Class that should be inherited by objects using intrusive_ptr. More... | |
class | V8Module |
class | ValueAnimation |
Interface template for value animations. More... | |
struct | Variant |
Union container for manipulating an object from a heterogeneous set of types in a uniform manner. More... | |
class | Vector2 |
Vector with 2 floating point components: (x, y). More... | |
class | Vector3 |
Vector with 3 floating point components: (x, y, z). More... | |
class | Vector4 |
Vector with 4 floating point components: (x, y, z, w). More... | |
class | VertexAttribute |
A base class for mesh and shader program vertex attributes. More... | |
class | Viewport2D |
Use a Viewport 2D to set the size of a render target surface onto which content is projected. More... | |
class | Viewport3D |
Use a Viewport 3D to set the size of a render target surface onto which content is projected. More... | |
class | Watermark |
Watermark. More... | |
class | Win32DebugLogger |
This logger class writes log messages to the Windows debugger console. More... | |
Functions | |
template<typename T , size_t Size, typename U > | |
bool | contains (const array< T, Size > &c, const U &value) |
template<class T , class D > | |
T | prev (T t, D d) |
template<class T > | |
T | prev (T t) |
template<class T > | |
T::iterator | begin (T &t) |
template<class T > | |
T::iterator | end (T &t) |
template<class T > | |
T::reverse_iterator | rbegin (T &t) |
template<class T > | |
T::reverse_iterator | rend (T &t) |
template<class T > | |
T::const_iterator | cbegin (T const &t) |
template<class T , size_t N> | |
const T * | cbegin (const T(&array)[N]) |
template<class T > | |
T::const_iterator | cend (T const &t) |
template<class T , size_t N> | |
const T * | cend (const T(&array)[N]) |
template<class T > | |
T::const_reverse_iterator | crbegin (T const &t) |
template<class T > | |
T::const_reverse_iterator | crend (T const &t) |
template<typename TBase , typename T > | |
shared_ptr< T > | make_polymorphic_shared_ptr (T *p) |
string | to_string (int value) |
string | to_string (long value) |
string | to_string (long long value) |
string | to_string (unsigned int value) |
string | to_string (unsigned long value) |
string | to_string (unsigned long long value) |
string | to_string (float value) |
string | to_string (double value) |
string | to_string (long double value) |
float | strtof (const char *val, char **end_ptr) |
template<class K , class T , class H , class P , class A , class Predicate > | |
void | erase_if (unordered_map< K, T, H, P, A > &c, Predicate pred) |
from_chars_result | from_chars (const char *first, const char *last, int &value, int base=10) |
Converts character range to int value. More... | |
template<typename T , typename A , typename U > | |
void | erase (vector< T, A > &c, const U &value) |
template<typename T , typename A , typename U > | |
void | erase_if (vector< T, A > &c, const U &predicate) |
template<typename T , typename A , typename U > | |
bool | contains (const vector< T, A > &c, const U &value) |
KANZI_API kzString | kzErrorCodeToString (kzsError code) |
template<> | |
string | logArgumentToString (const LegacyError &legacyError) |
Used by logging system to convert legacy exception type objects to string. More... | |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void | kzThrowLegacyError (kzsError value) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void | kzThrowLegacyErrorMessage (kzsError value, kzString message) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void | kzThrowLegacyErrorMessage (kzsError value, const string &message) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void | kzThrowLegacyErrorFormat (kzsError value, kzString format,...) |
KANZI_API string | kzFormatVariadicLogMessage (kzString format,...) |
KANZI_API string | kzFormatVariadicLogMessageList (kzString format, va_list arguments) |
KANZI_API string | readAsText (File &file) |
Loads contents of a file into a string. More... | |
template<typename T > | |
string | logArgumentToString (const T &value) |
The logging subsystem uses this function to convert a value to string. More... | |
template<> | |
string | logArgumentToString (const std::exception &exception) |
Used by logging system to convert standard exception type objects to string. More... | |
template<> | |
string | logArgumentToString (const FixedString &fixedString) |
Used by logging system to convert fixed strings to string. More... | |
template<> | |
string | logArgumentToString (const ImmutableString &immutableString) |
Used by logging system to convert immutable strings to string. More... | |
template<> | |
string | logArgumentToString (const SharedImmutableString &sharedImmutableString) |
Used by logging system to convert shared immutable strings to string. More... | |
template<> | |
string | logArgumentToString (const string_view &stringView) |
Used by logging system to convert string_view to string. More... | |
template<> | |
string | logArgumentToString (const bool &value) |
Used by logging system to convert bool to string. More... | |
ColorRGBA | componentAbs (ColorRGBA v) |
Calculates component wise absolute value for all elements and returns resulting color. More... | |
ColorRGBA | componentCeil (ColorRGBA v) |
Calculates component wise ceil value for all elements and returns resulting color. More... | |
ColorRGBA | componentFloor (ColorRGBA v) |
Calculates component wise floor value for all elements and returns resulting color. More... | |
ColorRGBA | componentRound (ColorRGBA v) |
Calculates component wise rounded value for all elements and returns resulting color. More... | |
ColorRGBA | componentSqrt (ColorRGBA v) |
Calculates component wise square root all elements and returns resulting color. More... | |
ColorRGBA | componentWiseMax (ColorRGBA v1, ColorRGBA v2) |
Calculates component wise maximum for all color elements and returns the resulting color. More... | |
ColorRGBA | componentWiseMin (ColorRGBA v1, ColorRGBA v2) |
Calculates component wise minimum for all color elements and returns resulting color. More... | |
ColorRGBA | componentWiseMultiply (ColorRGBA v1, ColorRGBA v2) |
Does component wise multiply for all color elements and returns resulting color. More... | |
ColorRGBA | componentWiseDivide (ColorRGBA v1, ColorRGBA v2) |
Does component wise divide for all color elements and returns the resulting color. More... | |
ColorRGBA | componentWiseRemainder (ColorRGBA v1, ColorRGBA v2) |
Does component wise remainder for all color elements and returns the resulting color. More... | |
ColorRGBA | componentAdd (ColorRGBA v, float scalar) |
Adds a value to all color elements and returns the resulting color. More... | |
ColorRGBA | componentSubtract (ColorRGBA v, float scalar) |
Subtracts a value from all color elements and returns the resulting color. More... | |
ColorRGBA | operator+ (ColorRGBA v1, ColorRGBA v2) |
Adds two colors and returns the sum. More... | |
ColorRGBA | operator- (ColorRGBA v1, ColorRGBA v2) |
Subtracts two colors and returns the difference. More... | |
ColorRGBA | operator* (ColorRGBA v, float scalar) |
Multiplies all color elements with a scalar and returns the resulting color. More... | |
ColorRGBA | operator* (float scalar, ColorRGBA v) |
Multiplies all color elements with a scalar and returns the resulting color. More... | |
ColorRGBA | operator/ (ColorRGBA v, float scalar) |
Divides all color elements with a scalar and returns the resulting color. More... | |
ColorRGBA | operator- (ColorRGBA v) |
Negates all color elements and returns the resulting color. More... | |
ColorRGBA | operator+ (ColorRGBA v) |
Unary plus, doesn't do anything and returns the resulting color. More... | |
bool | operator== (ColorRGBA v1, ColorRGBA v2) |
Compares two colors for equality. More... | |
bool | operator!= (ColorRGBA v1, ColorRGBA v2) |
Compares two colors for inequality. More... | |
float | dotProduct (ColorRGBA v1, ColorRGBA v2) |
Calculates the dot product of two colors. More... | |
float | sRGBToLinear (float cs) |
Conversion from sRGB to linear for default gamma 2.2. More... | |
float | linearTosRGB (float cl) |
Conversion from linear to sRGB for default gamma 2.2. More... | |
ColorRGBA | sRGBToLinear (ColorRGBA cs) |
Conversion to whole ColorRGBA from sRGB to linear. More... | |
ColorRGBA | linearTosRGB (ColorRGBA cs) |
Conversion to whole ColorRGBA from linear to sRGB. More... | |
KANZI_API uint16_t | floatToHalfFloat (float f) |
Converts float to 16 bits representing a half float. More... | |
KANZI_API float | halfFloatToFloat (uint16_t halfFloatNumber) |
Converts 16 bits representing a half float to a float. More... | |
KANZI_API Matrix3x3 | operator* (Matrix3x3 m1, Matrix3x3 m2) |
Multiplies two matrices and returns the product. More... | |
KANZI_API Vector2 | operator* (Matrix3x3 m, Vector2 v) |
Multiplies matrix with vector and returns the product. More... | |
bool | operator== (Matrix3x3 m1, Matrix3x3 m2) |
Compares two matrices for equality. More... | |
bool | operator!= (Matrix3x3 m1, Matrix3x3 m2) |
Compares two matrices for inequality. More... | |
KANZI_API optional< Matrix3x3 > | inverse (const Matrix3x3 &matrix) |
KANZI_API bool | isTranslationOnly (const Matrix3x3 &matrix) |
KANZI_API bool | isScalingOnly (const Matrix3x3 &matrix) |
KANZI_API void | extractSRT (const Matrix3x3 &matrix, Vector2 &scale, float &rotationInRadians, Vector2 &translation) |
KANZI_API optional< Matrix3x3 > | normalized (const Matrix3x3 &matrix) |
KANZI_API Matrix4x4 | operator* (const Matrix4x4 &left, const Matrix4x4 &right) |
KANZI_API Matrix4x4 | multiplyAffine (const Matrix4x4 &left, const Matrix4x4 &right) |
KANZI_API Matrix4x4 | orthonormalizeBase (const Matrix4x4 &matrix) |
KANZI_API optional< Matrix4x4 > | inverse (const Matrix4x4 &matrix) |
KANZI_API bool | isTranslationOnly (const Matrix4x4 &matrix) |
KANZI_API void | extractSRT (const Matrix4x4 &matrix, Vector3 &scale, Vector3 &rotationInRadians, Vector3 &translation) |
template<typename T > | |
Rectangle< T > | intersection (const Rectangle< T > &rectangle1, const Rectangle< T > &rectangle2) |
Vector2 | componentAbs (Vector2 v) |
Calculates component wise absolute value for all elements and returns resulting vector. More... | |
Vector2 | componentCeil (Vector2 v) |
Calculates component wise ceil value for all elements and returns resulting vector. More... | |
Vector2 | componentFloor (Vector2 v) |
Calculates component wise floor value for all elements and returns resulting vector. More... | |
Vector2 | componentRound (Vector2 v) |
Calculates component wise rounded value for all elements and returns resulting vector. More... | |
Vector2 | componentSqrt (Vector2 v) |
Calculates component wise square root all elements and returns resulting vector. More... | |
Vector2 | componentWiseMax (Vector2 v1, Vector2 v2) |
Calculates the component wise maximum for all vector elements and returns the resulting vector. More... | |
Vector2 | componentWiseMin (Vector2 v1, Vector2 v2) |
Calculates the component wise minimum for all vector elements and returns the resulting vector. More... | |
Vector2 | componentWiseMultiply (Vector2 v1, Vector2 v2) |
Does component wise multiply for all vector elements and returns the resulting vector. More... | |
Vector2 | componentWiseDivide (Vector2 v1, Vector2 v2) |
Does component wise divide for all vector elements and returns the resulting vector. More... | |
Vector2 | componentWiseRemainder (Vector2 v1, Vector2 v2) |
Does component wise remainder for all vector elements and returns the resulting vector. More... | |
Vector2 | componentAdd (Vector2 v, float scalar) |
Adds a value to all elements of a vector and returns the result. More... | |
Vector2 | componentSubtract (Vector2 v, float scalar) |
Subtracts a value from all elements of a vector and returns the result. More... | |
bool | componentAllLessThan (Vector2 a, Vector2 b) |
Returns true if each component of the first vector is less than the corresponding component of the second vector. More... | |
bool | componentAllLessThanOrEqual (Vector2 a, Vector2 b) |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector. More... | |
bool | componentAllGreaterThan (Vector2 a, Vector2 b) |
Returns true if each component of the first vector is greater than the corresponding component of the second vector. More... | |
bool | componentAllGreaterThanOrEqual (Vector2 a, Vector2 b) |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector. More... | |
Vector2 | operator+ (Vector2 v1, Vector2 v2) |
Adds two vectors and returns the sum. More... | |
Vector2 | operator- (Vector2 v1, Vector2 v2) |
Subtracts two vectors and returns the difference. More... | |
Vector2 | operator* (Vector2 v, float scalar) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector2 | operator* (float scalar, Vector2 v) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector2 | operator/ (Vector2 v, float scalar) |
Divides all vector elements with a scalar and returns the resulting vector. More... | |
Vector2 | operator- (Vector2 v) |
Negates all vector elements and returns the resulting vector. More... | |
Vector2 | operator+ (Vector2 v) |
Unary plus, doesn't do anything and returns the resulting vector. More... | |
bool | operator== (Vector2 v1, Vector2 v2) |
Compares two vectors for equality. More... | |
bool | operator!= (Vector2 v1, Vector2 v2) |
Compares two vectors for inequality. More... | |
float | dotProduct (Vector2 v1, Vector2 v2) |
Calculates the dot product of two vectors. More... | |
float | pseudoCrossProduct (const Vector2 &left, const Vector2 &right) |
Calculates pseudo-cross product of two 2D vectors. More... | |
Vector3 | componentAbs (Vector3 v) |
Calculates component wise absolute value for all elements and returns resulting vector. More... | |
Vector3 | componentCeil (Vector3 v) |
Calculates component wise ceil value for all elements and returns resulting vector. More... | |
Vector3 | componentFloor (Vector3 v) |
Calculates component wise floor value for all elements and returns resulting vector. More... | |
Vector3 | componentRound (Vector3 v) |
Calculates component wise rounded value for all elements and returns resulting vector. More... | |
Vector3 | componentSqrt (Vector3 v) |
Calculates component wise square root all elements and returns resulting vector. More... | |
Vector3 | componentWiseMax (Vector3 v1, Vector3 v2) |
Calculates the component wise maximum for all vector elements and returns the resulting vector. More... | |
Vector3 | componentWiseMin (Vector3 v1, Vector3 v2) |
Calculates the component wise minimum for all vector elements and returns the resulting vector. More... | |
Vector3 | componentWiseMultiply (Vector3 v1, Vector3 v2) |
Does component wise multiply for all vector elements and returns the resulting vector. More... | |
Vector3 | componentWiseDivide (Vector3 v1, Vector3 v2) |
Does component wise divide for all vector elements and returns the resulting vector. More... | |
Vector3 | componentWiseRemainder (Vector3 v1, Vector3 v2) |
Does component wise remainder for all vector elements and returns the resulting vector. More... | |
Vector3 | componentAdd (Vector3 v, float scalar) |
Adds a value to all elements of a vector and returns the result. More... | |
Vector3 | componentSubtract (Vector3 v, float scalar) |
Subtracts a value from all elements of a vector and returns the result. More... | |
bool | componentAllLessThan (Vector3 a, Vector3 b) |
Returns true if each component of the first vector is less than the corresponding component of the second vector. More... | |
bool | componentAllLessThanOrEqual (Vector3 a, Vector3 b) |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector. More... | |
bool | componentAllGreaterThan (Vector3 a, Vector3 b) |
Returns true if each component of the first vector is greater than the corresponding component of the second vector. More... | |
bool | componentAllGreaterThanOrEqual (Vector3 a, Vector3 b) |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector. More... | |
Vector3 | operator+ (Vector3 v1, Vector3 v2) |
Adds two vectors and returns the sum. More... | |
Vector3 | operator- (Vector3 v1, Vector3 v2) |
Subtracts two vectors and returns the difference. More... | |
Vector3 | operator* (Vector3 v, float scalar) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector3 | operator* (float scalar, Vector3 v) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector3 | operator/ (Vector3 v, float scalar) |
Divides all vector elements with a scalar and returns the resulting vector. More... | |
Vector3 | operator- (Vector3 v) |
Negates all vector elements and returns the resulting vector. More... | |
Vector3 | operator+ (Vector3 v) |
Unary plus, doesn't do anything and returns the resulting vector. More... | |
bool | operator== (Vector3 v1, Vector3 v2) |
Compares two vectors for equality. More... | |
bool | operator!= (Vector3 v1, Vector3 v2) |
Compares two vectors for inequality. More... | |
float | dotProduct (Vector3 v1, Vector3 v2) |
Calculates the dot product of two vectors. More... | |
Vector3 | crossProduct (Vector3 v1, Vector3 v2) |
Calculates the cross product of two vectors. More... | |
Vector4 | componentAbs (Vector4 v) |
Calculates component wise absolute value for all elements and returns resulting vector. More... | |
Vector4 | componentCeil (Vector4 v) |
Calculates component wise ceil value for all elements and returns resulting vector. More... | |
Vector4 | componentFloor (Vector4 v) |
Calculates component wise floor value for all elements and returns resulting vector. More... | |
Vector4 | componentRound (Vector4 v) |
Calculates component wise rounded value for all elements and returns resulting vector. More... | |
Vector4 | componentSqrt (Vector4 v) |
Calculates component wise square root all elements and returns resulting vector. More... | |
Vector4 | componentWiseMax (Vector4 v1, Vector4 v2) |
Calculates the component wise maximum for all vector elements and returns the resulting vector. More... | |
Vector4 | componentWiseMin (Vector4 v1, Vector4 v2) |
Calculates the component wise minimum for all vector elements and returns the resulting vector. More... | |
Vector4 | componentWiseMultiply (Vector4 v1, Vector4 v2) |
Does component wise multiply for all vector elements and returns the resulting vector. More... | |
Vector4 | componentWiseDivide (Vector4 v1, Vector4 v2) |
Does component wise divide for all vector elements and returns the resulting vector. More... | |
Vector4 | componentWiseRemainder (Vector4 v1, Vector4 v2) |
Does component wise remainder for all vector elements and returns the resulting vector. More... | |
Vector4 | componentAdd (Vector4 v, float scalar) |
Adds a value to all elements of a vector and returns the result. More... | |
Vector4 | componentSubtract (Vector4 v, float scalar) |
Subtracts a value from all elements of a vector and returns the result. More... | |
bool | componentAllLessThan (Vector4 a, Vector4 b) |
Returns true if each component of the first vector is less than the corresponding component of the second vector. More... | |
bool | componentAllLessThanOrEqual (Vector4 a, Vector4 b) |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector. More... | |
bool | componentAllGreaterThan (Vector4 a, Vector4 b) |
Returns true if each component of the first vector is greater than the corresponding component of the second vector. More... | |
bool | componentAllGreaterThanOrEqual (Vector4 a, Vector4 b) |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector. More... | |
Vector4 | operator+ (Vector4 v1, Vector4 v2) |
Adds two vectors and returns the sum. More... | |
Vector4 | operator- (Vector4 v1, Vector4 v2) |
Subtracts two vectors and returns the difference. More... | |
Vector4 | operator* (Vector4 v, float scalar) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector4 | operator* (float scalar, Vector4 v) |
Multiplies all vector elements with a scalar and returns the resulting vector. More... | |
Vector4 | operator/ (Vector4 v, float scalar) |
Divides all vector elements with a scalar and returns the resulting vector. More... | |
Vector4 | operator- (Vector4 v) |
Negates all vector elements and returns the resulting vector. More... | |
Vector4 | operator+ (Vector4 v) |
Unary plus, doesn't do anything and returns the resulting vector. More... | |
bool | operator== (Vector4 v1, Vector4 v2) |
Compares two vectors for equality. More... | |
bool | operator!= (Vector4 v1, Vector4 v2) |
Compares two vectors for inequality. More... | |
float | dotProduct (Vector4 v1, Vector4 v2) |
Calculates the dot product of two vectors. More... | |
template<typename T > | |
void | registerMetaclass (ObjectFactory &objectFactory) |
template<typename T > | |
void | overrideMetaclass (ObjectFactory &objectFactory) |
KANZI_API wstring | convertUTF8ToWideChar (string_view utf8) |
Converts a given UTF-8 string view into a Win32-compatible wide character string. More... | |
KANZI_API string | convertWideCharToUTF8 (wstring_view wchar) |
Converts a given Win32-compatible wide character string view into a UTF-8 string. More... | |
Win32String | convertUTF8ToWin32 (string_view utf8) |
Win32String | convertWideCharToWin32 (wstring_view wchar) |
string | convertWin32ToUTF8 (Win32StringView win32) |
wstring | convertWin32ToWideChar (Win32StringView win32) |
timespec | millisecondsToTimespec (chrono::milliseconds ms) |
Converts C++ milliseconds to POSIX native nanosecond format. More... | |
timeval | millisecondsToTimeval (chrono::milliseconds ms) |
Converts C++ milliseconds to POSIX native microsecond format. More... | |
KANZI_API PropertyTypeRegistry::const_iterator | beginPropertyTypes () |
Get iterator to the beginning of registry of all property types. More... | |
KANZI_API PropertyTypeRegistry::const_iterator | endPropertyTypes () |
Get iterator to the end of registry of all property types. More... | |
bool | operator== (string_view left, FixedString right) |
bool | operator== (FixedString left, string_view right) |
bool | operator!= (string_view left, FixedString right) |
bool | operator!= (FixedString left, string_view right) |
string | to_string (FixedString fixedString) |
KANZI_API vector< string > | splitString (const string &source, const string &delimiter) |
Splits string to tokens. More... | |
KANZI_API vector< string_view > | splitString (string_view source, string_view delimiter) |
Splits string view to tokens. More... | |
KANZI_API unsigned char | toLower (unsigned char ch) |
Wrapper for tolower() that returns unsigned char. More... | |
KZ_INLINE void | resetStopWatch (StopWatch &stopWatch) |
Resets the stop watch. More... | |
optional< TimeInterval > | getIntersection (const TimeInterval &first, const TimeInterval &second) |
Gets intersection of two intervals. More... | |
template<typename T > | |
T | animationInterpolate (const T &from, const T &to, float phase) |
bool | animationInterpolate (bool from, bool to, float phase) |
string | animationInterpolate (const string &from, const string &to, float phase) |
ResourceID | animationInterpolate (const ResourceID &from, const ResourceID &to, float phase) |
const ResourceSharedPtr & | animationInterpolate (const ResourceSharedPtr &from, const ResourceSharedPtr &to, float phase) |
SRTValue3D | animationInterpolate (const SRTValue3D &from, const SRTValue3D &to, float phase) |
SRTValue3DLongerPath | animationInterpolate (const SRTValue3DLongerPath &from, const SRTValue3DLongerPath &to, float phase) |
SRTValue2D | animationInterpolate (const SRTValue2D &from, const SRTValue2D &to, float phase) |
template<typename T > | |
T | animationConcatenate (const T &lhs, const T &rhs) |
bool | animationConcatenate (bool lhs, bool rhs) |
ResourceSharedPtr | animationConcatenate (ResourceSharedPtr, ResourceSharedPtr rhs) |
SRTValue2D | animationConcatenate (const SRTValue2D &lhs, const SRTValue2D &rhs) |
SRTValue3D | animationConcatenate (const SRTValue3D &lhs, const SRTValue3D &rhs) |
void | registerTimelineLoaders (ObjectLoader &objectLoader) |
Registers loaders for build-in timeline types. More... | |
Timeline::DirectionBehavior | convert (KzuTimeLineEntryPlaybackMode mode) |
KzuTimeLineEntryPlaybackMode | convert (Timeline::DirectionBehavior behavior) |
KANZI_API void | load (ApplicationProperties &applicationProperties, string_view configurationFilePath) |
Loads application properties from configuration INI file. More... | |
KANZI_API void | load (ApplicationProperties &applicationProperties, const SystemProperties &systemProperties) |
Loads application properties from system properties. More... | |
KANZI_API void | appendSkipSystemInitialization (SystemProperties &systemProperties) |
Adds "-nosysinit" to the end of the system properties. More... | |
KANZI_API bool | hasSkipSystemInitialization (const SystemProperties &systemProperties) |
Checks whether one of the parameters is "-nosysinit". More... | |
KANZI_API string_view | findConfigurationName (const SystemProperties &systemProperties, string_view defaultConfigurationName) |
Returns the tail of the first argument that starts with "-config=" or default configuration name if not found. More... | |
KANZI_API bool | hasToken (const SystemProperties &systemProperties, string_view token) |
Checks if system properties contain specified token. More... | |
KANZI_API size_t | getRuntimeAssetDataSize () |
Gets size of runtime asset data. More... | |
KANZI_API const byte * | getRuntimeAssetData () |
Gets runtime asset data. More... | |
KANZI_API KzuBinaryDirectory * | createRuntimeAssetsDirectory (KzcMemoryManager *memoryManager) |
Create runtime asset binary directory. More... | |
KANZI_API void | registerRuntimeAssets (Domain *domain) |
Registers build-in runtime assets in resource manager of domain so they can be acquired at runtime. More... | |
KANZI_API BindingSharedPtr | loadBinding (KzcInputStream *inputStream, Domain *domain, const KzuBinaryFileInfo *file) |
Loads a binding from stream. More... | |
KANZI_API BindingSharedPtr | loadBinding (KzbFile &kzbFile, KzbMemoryParser &parser) |
Loads binding from KZB. More... | |
KANZI_API void | loadBindings (KzbFile &kzbFile, KzbMemoryParser &parser, vector< BindingSharedPtr > &bindings) |
Loads bindings from KZB. More... | |
KANZI_API PropertyField | kzuBindingFieldFromBinaryAttribute (KzuPropertyBinaryTargetAttribute attribute) |
Converts a property attribute to a field. More... | |
BindingProcessorSharedPtr | loadBindingValidator (KzcInputStream *inputStream, Domain *domain, const KzuBinaryFileInfo *file) |
Loads a binding validator from stream. More... | |
const Variant * | kzuExpressionValidatorGetArgument (Binding *rule, KzuExpressionValidatorArgumentType argumentType) |
Get expression validator argument. More... | |
KANZI_API BitmapImageUniquePtr | loadImage (Domain *domain, string_view imageUrl, bool isInCubemap) |
Loads an image from KZB file. More... | |
KANZI_API BitmapImageUniquePtr | loadNativeImage (Domain *domain, NativeDeploymentTarget target, string_view imageUrl, bool isInCubemap) |
Loads an image from KZB file with backend specific deployment target. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadPNG (KzcInputStream *stream, string_view name="") |
Loads a PNG image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadJPEG (KzcInputStream *stream, string_view name="") |
Loads a JPEG image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadPVRTC (KzcInputStream *stream, string_view name="") |
Loads a PVRTC image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadETC (KzcInputStream *stream, string_view name="") |
Loads an ETC image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadATC (KzcInputStream *stream, string_view name="") |
Loads an ATC image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadASTC (KzcInputStream *stream, string_view name="") |
Loads an ASTC image from an input stream. More... | |
KANZI_API BitmapImageUniquePtr | imageLoadRaw2D (KzcInputStream *stream, string_view name="") |
Loads a Raw2D image from an input stream. More... | |
KANZI_API void | imageSavePNG (const BitmapImage &image, KzcOutputStream *stream) |
Saves an image as a PNG to an output stream. More... | |
KANZI_API void | imageSavePNGPaletted (const BitmapImage &image, KzcOutputStream *stream) |
Saves an image as a paletted PNG to an output stream. More... | |
KANZI_API void | imageSaveJPEG (const BitmapImage &image, KzcOutputStream *stream, float quality=1.0f) |
Saves an image as a JPEG to an output stream. More... | |
KANZI_API bool | isValid (GraphicsFormat format) |
Indicates whether format is valid. More... | |
KANZI_API unsigned int | getBitsPerBlock (GraphicsFormat format) |
Returns number of bits per block of the specified format. More... | |
KANZI_API unsigned int | getBytesPerBlock (GraphicsFormat format) |
Returns number of bytes per block of the specified format. More... | |
KANZI_API bool | isCompressed (GraphicsFormat format) |
Indicates whether format is compressed format or not. More... | |
KANZI_API GraphicsFormat | getFallback (GraphicsFormat format) |
Returns an alternative format which is potentially more widely supported. More... | |
KANZI_API GraphicsFormat | getCommon (GraphicsFormat format1, GraphicsFormat format2) |
Returns a common superset of two formats, or GraphicsFormatNone if formats cannot be combined. More... | |
KANZI_API GraphicsDataType | getDataType (GraphicsFormat format) |
Returns data type of the format. More... | |
KANZI_API unsigned int | getChannelCount (GraphicsFormat format) |
Returns number of unique color channels of the format. More... | |
KANZI_API unsigned int | getDataSizeBytes (int width, int height, GraphicsFormat format) |
Returns data size in bytes for image with specified dimensions and format. More... | |
KANZI_API bool | hasColor (GraphicsFormat format) |
Indicates whether given format has one more more color channels. More... | |
KANZI_API bool | hasAlpha (GraphicsFormat format) |
Indicates whether given format has alpha channel. More... | |
KANZI_API bool | hasDepth (GraphicsFormat format) |
Indicates whether given format has depth channel. More... | |
KANZI_API bool | hasStencil (GraphicsFormat format) |
Indicates whether given format has stencil channel. More... | |
KANZI_API bool | hasAliasedChannel (GraphicsFormat format) |
Indicates whether given format has an aliased color channel. More... | |
KANZI_API unsigned int | getBitCount (GraphicsDataType dataType) |
Return number of bits per one element of data type. More... | |
KANZI_API unsigned int | getBitCount (GraphicsDataType dataType, unsigned int componentCount) |
Return number of bits per one element of data type. More... | |
KANZI_API unsigned int | getByteCount (GraphicsDataType dataType) |
Return number of bytes per one element of data type. More... | |
KANZI_API bool | isPacked (GraphicsDataType dataType) |
Indicates whether given data type is packed or not. More... | |
KANZI_API unsigned int | getByteCount (GraphicsDataType dataType, unsigned int componentCount) |
Returns number of bytes for graphics data. More... | |
KANZI_API FixedString | toFixedString (GraphicsDataType dataType) |
Returns human readable string for GraphicsDataType. More... | |
KANZI_API FixedString | toFixedString (GraphicsFormat format) |
Returns human readable string for GraphicsFormat. More... | |
KANZI_API optional< GraphicsFormat > | findGraphicsFormatByName (string_view formatName) |
Returns GraphicsFormat given its name as a human readable string. More... | |
CompositionRequirements | combineCompositionRequirements (const CompositionRequirements &lhs, const CompositionRequirements &rhs) |
Merge two composition requirements together. More... | |
void | swap (VertexAttribute &attribute1, VertexAttribute &attribute2) |
void | swap (MeshVertexAttribute &attribute1, MeshVertexAttribute &attribute2) |
void | swap (ShaderVertexAttribute &attribute1, ShaderVertexAttribute &attribute2) |
KANZI_API optional< VertexAttribute::Semantic > | toVertexAttributeSemantic (unsigned int kzbVertexAttributeSemantic) |
Converts KZB vertex attribute semantic to runtime VertexAttribute::Semantic. More... | |
KANZI_API FixedString | toFixedString (VertexAttribute::Semantic semantic) |
Returns human readable string for semantic. More... | |
void | swap (Mesh::CreateInfo::Cluster &cluster1, Mesh::CreateInfo::Cluster &cluster2) |
void | swap (Mesh::CreateInfo &createInfo1, Mesh::CreateInfo &createInfo2) |
KANZI_API void | writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, size_t component, float v) |
Writes one float attribute component to vertex data. More... | |
KANZI_API void | writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, float v) |
Writes one float attribute value to vertex data. More... | |
KANZI_API void | writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector2 v) |
Writes one Vector2 attribute value to vertex data. More... | |
KANZI_API void | writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector3 v) |
Writes one Vector3 attribute value to vertex data. More... | |
KANZI_API void | writeVertexAttribute (Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, Vector4 v) |
Writes one Vector3 attribute value to vertex data. More... | |
KANZI_API float | readVertexAttributeComponent (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex, size_t component) |
Reads one attribute component of given vertex from mesh create info. More... | |
KANZI_API float | readVertexAttributeFloat (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex) |
Reads float attribute of given vertex from mesh. More... | |
KANZI_API Vector2 | readVertexAttributeVector2 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex) |
Reads Vector2 attribute of given vertex from mesh. More... | |
KANZI_API Vector3 | readVertexAttributeVector3 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex) |
Reads Vector3 attribute of given vertex from mesh. More... | |
KANZI_API Vector4 | readVertexAttributeVector4 (const Mesh::CreateInfo &createInfo, size_t vertexIndex, size_t attributeIndex) |
Reads Vector4 attribute of given vertex from mesh. More... | |
KANZI_API Mesh::CreateInfo | loadMeshCreateInfo (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
Loads mesh create info from legacy KZB. More... | |
KANZI_API Mesh::CreateInfo | loadMeshCreateInfo (Domain *domain, KzbFile &kzbFile, ReadOnlyMemoryFile &file, KzbMemoryParser &parser) |
Loads mesh create info from KZB. More... | |
KANZI_API Box | calculateBoundingVolume (const Mesh::CreateInfo &createInfo) |
Calculates bounding box from mesh vertex data. More... | |
KANZI_API void | updateVertexAttributeOffsetsAndVertexSize (Mesh::CreateInfo &createInfo) |
Sets offsets for vertex attributes in mesh create info. More... | |
KANZI_API void | updateVertexAttributeStrides (Mesh::CreateInfo &createInfo) |
Calculates vertex format size and updates stride to all vertex attributes in mesh create info. More... | |
KANZI_API ResourceManager::UrlContainer | collectResourceUrls (const Mesh::CreateInfo &createInfo) |
For each cluster in mesh create info, get material URL, if set. More... | |
KANZI_API void | acquireResources (Domain *domain, Mesh::CreateInfo &createInfo) |
For each cluster in mesh create info, load material from materialURL, if set. More... | |
KANZI_API Mesh::CreateInfo | generateBox (Vector3 size, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType) |
Makes mesh create info for box primitive mesh. More... | |
KANZI_API Mesh::CreateInfo | generateSphere (float radius, unsigned int segmentCount, unsigned int rowCount, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType) |
Makes mesh create info for sphere primitive mesh. More... | |
KANZI_API Mesh::CreateInfo | generatePlane (float width, float height, bool invertU, bool invertV, bool useHalfFloat, bool generateNormals, bool generateTangents, MaterialSharedPtr material, string_view materialURL, GPUResource::MemoryType memoryType) |
Makes mesh create info for plane primitive mesh. More... | |
kzsError | kzuResourceManagerLoadMorph_internal (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file, Resource **out_resource) |
KANZI_API Node * | getScopeFocusedNode (Node &node) |
Returns the logical focus node of the scope node. More... | |
KANZI_API void | setScopeFocusedNode (Node &scope, Node &focus) |
Sets the logical focus node of the given scope node. More... | |
KANZI_API uint32_t | getSupportedKzbFormatVersion () |
Gets the supported KZB format version. More... | |
KANZI_API ConstByteSpan | getKzbMagic () |
Gets the KZB magic byte sequence. More... | |
KANZI_API bool | isKzbMagic (ConstByteSpan data) |
Tells if beginning of given byte span matches KZB magic. More... | |
KANZI_API bool | isKzbMagic (File &file) |
Tells if beginning of given file matches KZB magic. More... | |
KANZI_API UrlContainer | collectResourceUrls (const KzbMemoryParser::PropertyContainer &properties) |
Collects URLs of all property values of Resource type. More... | |
KANZI_API void | applyProperties (Object &object, const KzbMemoryParser::PropertyContainer &properties) |
Apply properties from a PropertyContainer to an Object. More... | |
KANZI_API ObjectSharedPtr | loadEmbeddedObject (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
Loads embedded object. More... | |
KANZI_API TimerSubscriptionToken | addTimerHandler (KzuMessageDispatcher *messageDispatcher, chrono::milliseconds interval, KzuTimerMessageMode mode, TimerFunction callback) |
KANZI_API void | removeTimerHandler (KzuMessageDispatcher *messageDispatcher, TimerSubscriptionToken token) |
KANZI_API Matrix4x4 | calculateRelativeOrthogonalProjectionMatrixFromValues (float near, float far, Camera::FieldOfViewType fovType, float orthoSize, float aspectRatio) |
Creates an orthogonal projection matrix for a symmetrical viewing volume. More... | |
KANZI_API Matrix4x4 | calculatePerspectiveProjectionMatrixFromValues (float near, float far, Camera::FieldOfViewType fovType, float fovInDegrees, float aspectRatio) |
Creates a perspective projection matrix for a symmetrical viewing volume. More... | |
KANZI_API Matrix4x4 | calculateSubProjection (Matrix4x4 projection, float relativeOffsetX, float relativeOffsetY, float relativeSizeX, float relativeSizeY) |
Calculate sub-quad projection of an existing projection matrix. More... | |
KANZI_API unsigned int | getTreeHeight (const Node &node) |
Gets tree height from the object node to the parent. More... | |
KANZI_API optional< string > | getRelativePath (const Node &targetNode, const Node &baseNode) |
Gets the relative path from base object node to target object node, or nullopt if path could not be found. More... | |
KANZI_API Node * | findCommonParent (const Node &nodeA, const Node &nodeB) |
Gets first common parent from nodeA and nodeB, or null if not found. More... | |
KANZI_API Node * | getRoot (Node &node) |
Gets the root node of the scene graph where the node belongs to or null if node does not belong to any scene graph. More... | |
KANZI_API const Node * | getRoot (const Node &node) |
Gets the root node of the scene graph where the node belongs to or null if node does not belong to any scene graph. More... | |
KANZI_API bool | isParentOf (const Node &child, const Node &parent) |
Indicates whether one node is the parent of another node. More... | |
KANZI_API bool | isAncestorOf (const Node &node, const Node &ancestor) |
Indicates whether one node is the ancestor of another node at any level in the scene graph hierarchy. More... | |
template<typename Type > | |
shared_ptr< Type > | findParent (const Node &node) |
Gets nearest parent of specified type. More... | |
KANZI_API void | nodeLookAt (Node3D &node, Vector3 position, Vector3 lookAtPoint, Vector3 upVector) |
Sets node transformation so that the node is in a given position looking at the given point. More... | |
KANZI_API void | registerDefaultTypes (ObjectFactory &objectFactory) |
Registers default Kanzi object types in object factory. More... | |
FixedString | toFixedString (Framebuffer::CreateInfo::Status status) |
Returns a human readable description for Framebuffer::CreateInfo::Status. More... | |
KANZI_API bool | isValidFramebufferSize (float size) |
Checks if size is valid framebuffer size. More... | |
KANZI_API bool | isValidFramebufferSize (Vector2 const &size) |
KANZI_API bool | isValidFramebufferSize (float width, float height) |
KANZI_API unsigned | toValidFramebufferSize (float size) |
KANZI_API unsigned int | getFeatures (Framebuffer::AttachmentPoint attachmentPoint) |
KANZI_API int | getCompressedGLFormat (GraphicsFormat format) |
Returns the GL API internal format enumeration of the kanzi::Format. More... | |
int | acquireUniformLocation (Material &material, string_view name) |
Acquire uniform location from a material. More... | |
template<typename T > | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< T > &value) |
Type-specific render value update to GPU. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< bool > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< int > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< float > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< ColorRGBA > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< Vector2 > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< Vector3 > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< Vector4 > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< Matrix3x3 > &value) |
updateRenderValueContainer() specialization. More... | |
template<> | |
void | updateRenderValueOverride (Renderer &renderer, const GlRenderValue< Matrix4x4 > &value) |
updateRenderValueContainer() specialization. More... | |
template<typename T > | |
void | updateRenderValue (Renderer &renderer, GlRenderValue< T > &value) |
Update render value container to GPU. More... | |
template<typename T > | |
bool | updateRenderValue (Renderer &renderer, GlRenderValue< T > &value, unsigned int textureUnit) |
Update render value container to the GPU. More... | |
template<> | |
bool | updateRenderValue (Renderer &renderer, GlRenderValue< TextureSharedPtr > &value, unsigned int textureUnit) |
updateRenderValueContainer() specialization. More... | |
KANZI_API optional< GraphicsElementType > | toGraphicsElementType (unsigned int kzbElementType) |
KANZI_API optional< GraphicsDataType > | toGraphicsDataType (unsigned int kzbMeshVertexAttributeDataType) |
KANZI_API optional< GraphicsFormat > | toGraphicsFormatFromKzbDepthAttachment (int kzbFormat) |
KANZI_API optional< GraphicsFormat > | toGraphicsFormatFromKzbTextureFormat (unsigned int kzbTextureFormat) |
KANZI_API optional< GraphicsFormat > | toGraphicsFormatFromKzbImageFormat (unsigned int kzbFormat) |
KANZI_API optional< Sampler::Filter > | toSamplerFilterFromKzbTextureFilter (unsigned int kzbTextureFilter) |
KANZI_API optional< Sampler::MipmapMode > | toSamplerMipmapModeFromKzbMipmapMode (unsigned int kzbMipmapMode) |
KANZI_API optional< Sampler::AddressingMode > | toSamplerAddressingModeFromKzbWrapMode (unsigned int kzbWrapMode) |
void | swap (Mesh::Skeleton &skeleton1, Mesh::Skeleton &skeleton2) |
void | swap (Mesh::Cluster &cluster1, Mesh::Cluster &cluster2) |
void | swap (Mesh &mesh1, Mesh &mesh2) |
template<typename T > | |
T | acquireRenderValueFromPropertyDefault (AbstractPropertyType abstractProperty, Node *node, Object *object, Material &material) |
Default implementation for acquiring value for property notification handlers. More... | |
template<typename T > | |
T | acquireRenderValueFromProperty (AbstractPropertyType abstractProperty, Node *node, Object *object, Material &material, ShaderProgram::UniformTransformation) |
Default implementation for acquiring value for property notification handlers. More... | |
template<> | |
GraphicsBlendMode | acquireRenderValueFromProperty (AbstractPropertyType abstractProperty, Node *node, Object *object, Material &material, ShaderProgram::UniformTransformation transformation) |
acquireRenderValueFromProperty() specialization. More... | |
template<> | |
ColorRGBA | acquireRenderValueFromProperty (AbstractPropertyType abstractProperty, Node *node, Object *object, Material &material, ShaderProgram::UniformTransformation transformation) |
acquireRenderValueFromProperty() specialization. More... | |
template<> | |
TextureSharedPtr | acquireRenderValueFromProperty (AbstractPropertyType abstractProperty, Node *node, Object *object, Material &material, ShaderProgram::UniformTransformation transformation) |
acquireRenderValueFromProperty() specialization. More... | |
void | swap (Renderbuffer &buffer1, Renderbuffer &buffer2) |
KANZI_API unsigned int | getAttributeDimension (VertexAttribute::Semantic attribute) |
KANZI_API FixedString | toFixedString (Sampler::Filter filter) |
KANZI_API FixedString | toFixedString (Sampler::MipmapMode mipmapMode) |
KANZI_API BitmapImageUniquePtr | captureCurrentFramebufferToImage (unsigned int width, unsigned int height, GraphicsFormat format) |
Capture the current framebuffer to an image. More... | |
KANZI_API BitmapImageUniquePtr | captureScreenToImage (Renderer &renderer, unsigned int width, unsigned int height, GraphicsFormat format) |
Capture the screen (default framebuffer) to an image. More... | |
void | swap (ShaderProgram &shader1, ShaderProgram &shader2) |
KANZI_API ShaderProgram::FixedUniform | toFixedUniform (string_view uniformName) |
Gets FixedUniform from given string. More... | |
void | swap (ShaderProgram::CreateInfo &createInfo1, ShaderProgram::CreateInfo &createInfo2) |
ShaderProgram::CreateInfo | loadShaderProgramCreateInfo (Domain *domain, KzbFile &kzbFile, ReadOnlyMemoryFile &file, KzbMemoryParser &parser, string_view name) |
Load shader program create info from KZB file. More... | |
ShaderProgram::CreateInfo | loadShaderProgramCreateInfo (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
Load shader program create info from legacy KZB file. More... | |
KANZI_API FixedString | getVerboseDescription (ShaderProgram::CreateInfo::Status status) |
Returns human readable description for ShaderProgram CreateInfo status. More... | |
void | swap (Texture &texture1, Texture &texture2) |
KANZI_API unsigned int | getFaceCount (Texture::Type type) |
KANZI_API unsigned int | getGLTextureImageTarget (Texture::Type type, unsigned int face) |
KANZI_API unsigned int | getGLTextureTarget (Texture::Type type) |
KANZI_API TextureSharedPtr | createTextureFromMemory (Domain *domain, unsigned int width, unsigned int height, GraphicsFormat sourceFormat, const void *data, GraphicsFormat destinationFormat, string_view name) |
Loads a new image from memory and creates a texture out of it. More... | |
KANZI_API unsigned int | calculateMipmapLevelCount (unsigned int width, unsigned int height) |
Calculates number of mipmap levels for provided image size. More... | |
void | swap (Texture::CreateInfo &info1, Texture::CreateInfo &info2) |
Texture::CreateInfo | loadTextureCreateInfo (Domain *domain, KzbFile &kzbFile, ReadOnlyMemoryFile &file, KzbMemoryParser &parser) |
Load texture create info from KZB file. More... | |
Texture::CreateInfo | loadTextureCreateInfo (Domain *domain, KzcInputStream *inputStream, const KzuBinaryFileInfo *file) |
Load texture create info from legacy KZB file. More... | |
KANZI_API FixedString | getVerboseDescription (Texture::CreateInfo::Status status) |
Returns human readable description for CreateInfo status. More... | |
KANZI_API void | loadPrefabAsync (const Node &node, ResourceID prefabResourceId, ResourceManager::AsyncAcquireFinishedCallback callback) |
Acquires prefab and required nested resources recursively. More... | |
KANZI_API void | collectResourceUrls (const PrefabTemplate &prefabTemplate, const Node &node, ResourceManager::UrlContainer &urls) |
Collects URLs from all resource properties that are used by the nodes in a prefab template. More... | |
KANZI_API void | collectResourceUrlsFromStateManagers (const PrefabTemplate &prefabTemplate, const Node &node, ResourceManager::UrlContainer &urls) |
Looks up resource properties of type StateManager in the nodes of a prefab template. More... | |
KANZI_API void | collectResourceUrls (const PrefabTemplate &prefabTemplate, ResourceManager::UrlContainer &urls) |
Collects URLs from all resource properties that are used by the nodes in a prefab template. More... | |
KANZI_API void | collectResourceUrls (const PrefabTemplateNode &prefabTemplateNode, ResourceManager::UrlContainer &urls) |
Collects URLs from all resource properties that are used by a prefab template node and its children. More... | |
KANZI_API void | collectResourceUrlsFromStateManagers (const PrefabTemplate &prefabTemplate, ResourceManager::UrlContainer &urls) |
Looks up resource properties of type StateManager in the nodes of a prefab template. More... | |
KANZI_API void | collectResourceUrls (const ResourceDictionary &resourceDictionary, ResourceManager::UrlContainer &urls) |
Collects the URLs from a resource dictionary. More... | |
KANZI_API void | collectResourceUrls (ResourceManager *resourceManager, string_view hostname, ResourceManager::UrlContainer &urls) |
Collect resource urls from a named file. More... | |
KANZI_API void | collectResourceUrlsFromPrefabTemplateUrl (ResourceManager *resourceManager, string_view prefabTemplateUrl, const Node &node, ResourceManager::UrlContainer &urls) |
Collects URLs from all resource properties that are used by the nodes in a prefab template. More... | |
KANZI_API void | collectResourceUrlsFromPrefabTemplateUrl (ResourceManager *resourceManager, string_view prefabTemplateUrl, ResourceManager::UrlContainer &urls) |
Collects URLs from all resource properties that are used by the nodes in a prefab template. More... | |
KANZI_API void | collectResourceUrlsFromPrefabTemplateNodeResourceDictionaryUrls (ResourceManager *resourceManager, string_view prefabTemplateNodeUrls, ResourceManager::UrlContainer &urls) |
Collects the URLs of resources from the resource dictionaries of the prefab templates you specify. More... | |
KANZI_API void | collectResourceUrls (ResourceManager *resourceManager, KzuBinaryDirectory *binaryDirectory, ResourceManager::UrlContainer &urls) |
Collects the URLs of all resources in the binary directory you specify. More... | |
KANZI_API void | collectResourceUrls (ResourceManager *resourceManager, ResourceManager::UrlContainer &urls) |
Collects the URLs of all resources from all the binary directories that have been added to the resource manager. More... | |
KANZI_API void | registerDefaultResources (Screen &screen) |
Registers default resources in the resource manager and Screen node's dictionary. More... | |
KANZI_API void | registerNodeComponentLoader (ObjectLoader &objectLoader, const Metaclass *metaclass) |
Registers node component template loader for specified node component type. More... | |
void | registerNodeComponentLoaders (ObjectLoader &objectLoader) |
Registers node component template loaders for build-in node component types. More... | |
void | doListBoxArrange (Node3D &node) |
void | doListBoxArrange (Node2D &node) |
template<class DerivedClassType , class CurvePointType > | |
void | messagingAndChangeSignaling (DerivedClassType &m_derivedClass, optional< float > &m_lastHitPointValue, CurvePointType &m_lastHitPoint, CurvePointType &closestCurvePoint, float distanceAlongCurve, float shortestDistance, InputManipulator::InputMessageArguments &message) |
Variables | |
KANZI_API const ColorRGBA | ThemeRed |
KANZI_API const ColorRGBA | ThemeGreen |
KANZI_API const ColorRGBA | ThemeBlue |
KANZI_API const ColorRGBA | ThemeYellow |
KANZI_API const ColorRGBA | ThemeGray |
KANZI_API const ColorRGBA | ThemeOrange |
KANZI_API const NativeDeploymentTarget | NativeDeploymentTargetDefault |
The default native deployment target. More... | |
KANZI_API const TextureSwizzleMask | SwizzleMaskRGBToLuminanceAlpha |
Mask all of the color channels with red. More... | |
KANZI_API const TextureSwizzleMask | SwizzleMaskLuminanceToRGBA |
Mask all of the color channels with alpha. More... | |
const NativeEventHandle | invalidEventHandle |
typedef unsigned char kanzi::byte |
typedef std::thread::native_handle_type kanzi::ThreadNativeHandleType |
typedef boost::mt19937 kanzi::default_random_engine |
typedef boost::blank kanzi::monostate |
typedef unique_ptr<AbstractLogger> kanzi::AbstractLoggerUniquePtr |
Typedef of the kanzi::AbstractLogger unique pointer.
typedef shared_ptr<MetaObject> kanzi::MetaObjectSharedPtr |
MetaObject shared pointer type.
typedef string kanzi::Win32String |
typedef string_view kanzi::Win32StringView |
typedef unique_ptr<ReadOnlyDiskFile> kanzi::ReadOnlyDiskFileUniquePtr |
typedef shared_ptr<AbstractPropertyNotificationHandler> kanzi::AbstractPropertyNotificationHandlerSharedPtr |
Abstract property notification handler shared pointer.
typedef unordered_map<string_view, AbstractPropertyTypeDescriptor*> kanzi::PropertyTypeRegistry |
Alias for map of all property types.
typedef shared_ptr< Resource > kanzi::ResourceSharedPtr |
typedef basic_string_view<const byte> kanzi::ConstByteSpan |
ConstByteSpan refers to constant contiguous sequence of bytes.
typedef shared_ptr< Action > kanzi::ActionSharedPtr |
typedef shared_ptr<DispatchMessageAction> kanzi::DispatchMessageActionSharedPtr |
typedef shared_ptr<ForwardingAction> kanzi::ForwardingActionSharedPtr |
typedef shared_ptr< ParallelTimeline > kanzi::ParallelTimelineSharedPtr |
typedef shared_ptr<PlayAnimationAction> kanzi::PlayAnimationActionSharedPtr |
typedef shared_ptr<SetPropertyAction> kanzi::SetPropertyActionSharedPtr |
typedef shared_ptr< AbstractAnimation > kanzi::AbstractAnimationSharedPtr |
typedef shared_ptr< TimelinePlayback > kanzi::TimelinePlaybackSharedPtr |
typedef shared_ptr<AnimationPlayer> kanzi::AnimationPlayerSharedPtr |
typedef shared_ptr<AnimationResource> kanzi::AnimationResourceSharedPtr |
typedef FromToAnimation<bool, LinearEasingFunction> kanzi::BoolLinearFromToAnimation |
typedef shared_ptr<BoolLinearFromToAnimation> kanzi::BoolLinearFromToAnimationSharedPtr |
typedef FromToAnimation<float, LinearEasingFunction> kanzi::FloatLinearFromToAnimation |
typedef shared_ptr<FloatLinearFromToAnimation> kanzi::FloatLinearFromToAnimationSharedPtr |
typedef shared_ptr<ColorRGBALinearFromToAnimation> kanzi::ColorRGBALinearFromToAnimationSharedPtr |
typedef FromToAnimation<float, function<float(float)> > kanzi::FloatCustomFromToAnimation |
typedef shared_ptr<FloatCustomFromToAnimation> kanzi::FloatCustomFromToAnimationSharedPtr |
typedef KeyframeAnimation<bool> kanzi::BoolKeyframeAnimation |
typedef shared_ptr<BoolKeyframeAnimation> kanzi::BoolKeyframeAnimationSharedPtr |
typedef KeyframeAnimation<int> kanzi::IntKeyframeAnimation |
typedef shared_ptr<IntKeyframeAnimation> kanzi::IntKeyframeAnimationSharedPtr |
typedef KeyframeAnimation<float> kanzi::FloatKeyframeAnimation |
typedef shared_ptr<FloatKeyframeAnimation> kanzi::FloatKeyframeAnimationSharedPtr |
typedef shared_ptr<Vector2KeyframeAnimation> kanzi::Vector2KeyframeAnimationSharedPtr |
typedef shared_ptr<Vector3KeyframeAnimation> kanzi::Vector3KeyframeAnimationSharedPtr |
typedef shared_ptr<Vector4KeyframeAnimation> kanzi::Vector4KeyframeAnimationSharedPtr |
typedef shared_ptr<ColorRGBAKeyframeAnimation> kanzi::ColorRGBAKeyframeAnimationSharedPtr |
typedef KeyframeAnimation<string> kanzi::StringKeyframeAnimation |
typedef shared_ptr<StringKeyframeAnimation> kanzi::StringKeyframeAnimationSharedPtr |
typedef shared_ptr<ResourceIDKeyframeAnimation> kanzi::ResourceIDKeyframeAnimationSharedPtr |
typedef shared_ptr< MorphWeightTimeline > kanzi::MorphWeightTimelineSharedPtr |
typedef shared_ptr<MorphWeightTimelinePlayback> kanzi::MorphWeightTimelinePlaybackSharedPtr |
typedef shared_ptr<ParallelTimelinePlayback> kanzi::ParallelTimelinePlaybackSharedPtr |
typedef shared_ptr< PreviewTimeline > kanzi::PreviewTimelineSharedPtr |
typedef shared_ptr< PreviewTimelinePlayback > kanzi::PreviewTimelinePlaybackSharedPtr |
typedef shared_ptr< PropertyAnimationTimeline > kanzi::PropertyAnimationTimelineSharedPtr |
typedef shared_ptr<PropertyAnimationTimelinePlayback> kanzi::PropertyAnimationTimelinePlaybackSharedPtr |
typedef shared_ptr<PropertyDrivenAnimationPlayer> kanzi::PropertyDrivenAnimationPlayerSharedPtr |
typedef shared_ptr< PropertyFieldAnimationTimeline > kanzi::PropertyFieldAnimationTimelineSharedPtr |
typedef shared_ptr<PropertyFieldAnimationTimelinePlayback> kanzi::PropertyFieldAnimationTimelinePlaybackSharedPtr |
typedef shared_ptr< PropertyTargetInterpolationTimeline > kanzi::PropertyTargetInterpolationTimelineSharedPtr |
typedef shared_ptr<PropertyFieldTargetInterpolationTimelinePlayback> kanzi::PropertyFieldTargetInterpolationTimelinePlaybackSharedPtr |
typedef shared_ptr<PropertyTargetInterpolationTimelinePlayback> kanzi::PropertyTargetInterpolationTimelinePlaybackSharedPtr |
typedef shared_ptr<PropertyTargetInterpolator> kanzi::PropertyTargetInterpolatorSharedPtr |
typedef shared_ptr<SequentialTimeline> kanzi::SequentialTimelineSharedPtr |
typedef shared_ptr< Timeline > kanzi::TimelineSharedPtr |
typedef shared_ptr< TimelineClock > kanzi::TimelineClockSharedPtr |
typedef shared_ptr<TimelineResource> kanzi::TimelineResourceSharedPtr |
typedef ValueAnimation<bool> kanzi::BoolAnimation |
typedef shared_ptr<BoolAnimation> kanzi::BoolAnimationSharedPtr |
typedef ValueAnimation<int> kanzi::IntAnimation |
typedef shared_ptr<IntAnimation> kanzi::IntAnimationSharedPtr |
typedef ValueAnimation<float> kanzi::FloatAnimation |
typedef shared_ptr<FloatAnimation> kanzi::FloatAnimationSharedPtr |
typedef shared_ptr<ColorRGBAAnimation> kanzi::ColorRGBAAnimationSharedPtr |
typedef ValueAnimation<Vector2> kanzi::Vector2Animation |
typedef shared_ptr<Vector2Animation> kanzi::Vector2AnimationSharedPtr |
typedef ValueAnimation<Vector3> kanzi::Vector3Animation |
typedef shared_ptr<Vector3Animation> kanzi::Vector3AnimationSharedPtr |
typedef ValueAnimation<Vector4> kanzi::Vector4Animation |
typedef shared_ptr<Vector4Animation> kanzi::Vector4AnimationSharedPtr |
typedef ValueAnimation<string> kanzi::StringAnimation |
typedef shared_ptr<StringAnimation> kanzi::StringAnimationSharedPtr |
typedef shared_ptr<ResourceIDAnimation> kanzi::ResourceIDAnimationSharedPtr |
typedef shared_ptr<SRTValue2DAnimation> kanzi::SRTValue2DAnimationSharedPtr |
typedef shared_ptr<SRTValue3DAnimation> kanzi::SRTValue3DAnimationSharedPtr |
typedef shared_ptr< Framebuffer > kanzi::FramebufferSharedPtr |
Framebuffer shared pointer type.
typedef shared_ptr< MaterialBrush > kanzi::MaterialBrushSharedPtr |
Shared pointer definition.
typedef shared_ptr< Screen > kanzi::ScreenSharedPtr |
Screen shared pointer.
typedef vector<string_view> kanzi::SystemProperties |
Read-only values from the system.
typedef shared_ptr<AnimationBindingProcessor> kanzi::AnimationBindingProcessorSharedPtr |
typedef shared_ptr< Binding > kanzi::BindingSharedPtr |
typedef shared_ptr<Binding const> kanzi::BindingSharedConstPtr |
typedef shared_ptr< DataObject > kanzi::DataObjectSharedPtr |
typedef shared_ptr< DataContext > kanzi::DataContextSharedPtr |
typedef shared_ptr<BindingOperation> kanzi::BindingOperationSharedPtr |
typedef shared_ptr<BindingProcessor> kanzi::BindingProcessorSharedPtr |
typedef shared_ptr<CallbackBindingProcessor> kanzi::CallbackBindingProcessorSharedPtr |
typedef bool(* kanzi::BindingExpressionFunction) (BindingExpressionOpCode &expressionOpCode) |
Expression function pointer type.
typedef shared_ptr<ExpressionBindingProcessor> kanzi::ExpressionBindingProcessorSharedPtr |
typedef shared_ptr<BitmapImage> kanzi::BitmapImageSharedPtr |
Image shared pointer type.
typedef unique_ptr<BitmapImage> kanzi::BitmapImageUniquePtr |
Image unique pointer type.
typedef vector<BitmapImageUniquePtr> kanzi::BitmapImageVector |
Image shared pointer vector type.
typedef shared_ptr< Condition > kanzi::ConditionSharedPtr |
typedef shared_ptr<ExpressionCondition> kanzi::ExpressionConditionSharedPtr |
typedef shared_ptr<BinaryResource> kanzi::BinaryResourceSharedPtr |
typedef shared_ptr< Node > kanzi::NodeSharedPtr |
Alias for shared pointer of Node.
typedef shared_ptr<TextResource> kanzi::TextResourceSharedPtr |
Text resource shared pointer.
typedef DataObjectTyped<bool, DataObject::Bool> kanzi::DataObjectBool |
typedef DataObjectTyped<int32_t, DataObject::Integer> kanzi::DataObjectInt |
typedef DataObjectTyped<double, DataObject::Real> kanzi::DataObjectReal |
typedef DataObjectTyped<string, DataObject::String> kanzi::DataObjectString |
typedef shared_ptr<DataObjectEnumBase> kanzi::DataObjectEnumBaseSharedPtr |
typedef shared_ptr<DataObjectList> kanzi::DataObjectListSharedPtr |
typedef shared_ptr<DataSource> kanzi::DataSourceSharedPtr |
typedef weak_ptr<DataSource> kanzi::DataSourceWeakPtr |
typedef shared_ptr<void> kanzi::ScriptingSystemSharedPtr |
typedef shared_ptr< ShaderProgram > kanzi::ShaderProgramSharedPtr |
Shader program shared pointer type.
typedef shared_ptr< Texture > kanzi::TextureSharedPtr |
Texture shared pointer type.
typedef shared_ptr< KzuFont > kanzi::FontSharedPtr |
typedef shared_ptr<GraphicsOutput> kanzi::GraphicsOutputSharedPtr |
typedef shared_ptr< Brush > kanzi::BrushSharedPtr |
Brush shared pointer.
typedef unique_ptr< BrushRenderer > kanzi::BrushRendererPtr |
Brush renderer unique pointer.
typedef shared_ptr<ColorBrush> kanzi::ColorBrushSharedPtr |
typedef shared_ptr<CompositionBrush> kanzi::CompositionBrushSharedPtr |
Shared pointer type.
typedef shared_ptr<ContentBrush> kanzi::ContentBrushSharedPtr |
Shared pointer type.
typedef shared_ptr<NullBrush> kanzi::NullBrushSharedPtr |
typedef shared_ptr<TextureBrush> kanzi::TextureBrushSharedPtr |
Shared pointer definition.
typedef shared_ptr<BlitRenderPass> kanzi::BlitRenderPassSharedPtr |
BlitRenderPass shared pointer type.
typedef shared_ptr<ClearRenderPass> kanzi::ClearRenderPassSharedPtr |
ClearRenderPass shared pointer type.
typedef shared_ptr<CompositionTargetRenderPass> kanzi::CompositionTargetRenderPassSharedPtr |
LegacyRenderpass shared pointer type.
typedef shared_ptr<DrawObjectsRenderPass> kanzi::DrawObjectsRenderPassSharedPtr |
DrawObjectsRenderPass shared pointer type.
typedef shared_ptr<DrawObjectsWithMaterialRenderPass> kanzi::DrawObjectsWithMaterialRenderPassSharedPtr |
DrawObjectsWithMaterialRenderPass shared pointer type.
typedef vector<MeshVertexAttribute> kanzi::MeshAttributeCollection |
typedef MeshAttributeCollection::iterator kanzi::MeshAttributeCollectionIterator |
typedef MeshAttributeCollection::const_iterator kanzi::MeshAttributeCollectionConstIterator |
typedef vector<ShaderVertexAttribute> kanzi::ShaderAttributeCollection |
typedef ShaderAttributeCollection::iterator kanzi::ShaderAttributeCollectionIterator |
typedef ShaderAttributeCollection::const_iterator kanzi::ShaderAttributeCollectionConstIterator |
typedef shared_ptr<KzuContainsPropertyFilter> kanzi::ContainsPropertyFilterSharedPtr |
typedef shared_ptr<KzuObjectSource> kanzi::ObjectSourceSharedPtr |
typedef shared_ptr<KzuFilterObjectSource> kanzi::FilterObjectSourceSharedPtr |
typedef shared_ptr<KzuSortObjectSource> kanzi::SortObjectSourceSharedPtr |
typedef shared_ptr<KzuCombinerObjectSource> kanzi::CombinerObjectSourceSharedPtr |
typedef shared_ptr<KzuObjectTypeFilter> kanzi::ObjectTypeFilterSharedPtr |
typedef shared_ptr<KzuPropertyIsEqualFilter> kanzi::PropertyIsEqualFilterSharedPtr |
typedef shared_ptr<KzuTagFilter> kanzi::TagFilterSharedPtr |
typedef shared_ptr<LegacyRenderPass> kanzi::LegacyRenderPassSharedPtr |
LegacyRenderpass shared pointer type.
typedef shared_ptr< Material > kanzi::MaterialSharedPtr |
typedef shared_ptr<Material const> kanzi::MaterialSharedConstPtr |
typedef shared_ptr<Mesh> kanzi::MaeshSharedPtr |
typedef unique_ptr<MaterialRenderer> kanzi::MaterialRendererPtr |
MaterialRenderer unique pointer type.
typedef shared_ptr<MaterialSetupRenderPass> kanzi::MaterialSetupRenderPassSharedPtr |
MaterialSetupRenderPass shared pointer type.
typedef shared_ptr< Mesh > kanzi::MeshSharedPtr |
typedef shared_ptr<Morph const> kanzi::MorphSharedConstPtr |
typedef shared_ptr<Morph> kanzi::MorphSharedPtr |
typedef weak_ptr< ShaderProgram > kanzi::ShaderProgramWeakPtr |
Shader program weak pointer type.
typedef shared_ptr<MorphRuntime> kanzi::MorphRuntimeSharedPtr |
typedef shared_ptr<PipelineStateRenderPass> kanzi::PipelineStateRenderPassSharedPtr |
PipelineStateRenderPass shared pointer type.
typedef shared_ptr< RenderPass > kanzi::RenderPassSharedPtr |
RenderPass shared pointer type.
typedef shared_ptr< ClickManipulator > kanzi::ClickManipulatorSharedPtr |
typedef shared_ptr<DragAndDropManipulator> kanzi::DragAndDropManipulatorSharedPtr |
typedef shared_ptr<EventSource> kanzi::EventSourceSharedPtr |
typedef shared_ptr< InputManipulator > kanzi::InputManipulatorSharedPtr |
typedef weak_ptr<InputManipulator> kanzi::InputManipulatorWeakPtr |
typedef shared_ptr<LongPressManipulator> kanzi::LongPressManipulatorSharedPtr |
typedef shared_ptr<MoveFocusAction> kanzi::MoveFocusActionSharedPtr |
typedef shared_ptr<MultiClickManipulator> kanzi::MultiClickManipulatorSharedPtr |
typedef shared_ptr<PanManipulator> kanzi::PanManipulatorSharedPtr |
typedef shared_ptr<PinchManipulator> kanzi::PinchManipulatorSharedPtr |
typedef shared_ptr<SetFocusAction> kanzi::SetFocusActionSharedPtr |
typedef shared_ptr< Object > kanzi::ObjectSharedPtr |
Object shared pointer type.
typedef unordered_set<string> kanzi::UrlContainer |
typedef function<void(const TimerMessageArguments&)> kanzi::TimerFunction |
typedef shared_ptr<void> kanzi::TimerSubscriptionToken |
typedef shared_ptr< Camera > kanzi::CameraSharedPtr |
CameraNode shared pointer.
typedef shared_ptr<EmptyNode2D> kanzi::EmptyNode2DSharedPtr |
typedef shared_ptr<EmptyNode3D> kanzi::EmptyNode3DSharedPtr |
typedef shared_ptr<Image2D> kanzi::Image2DSharedPtr |
typedef shared_ptr<Instantiator3D> kanzi::Instantiator3DSharedPtr |
Instantiator3DNode shared pointer.
typedef shared_ptr<Light> kanzi::LightSharedPtr |
typedef shared_ptr<LevelOfDetail3D> kanzi::LevelOfDetail3DSharedPtr |
LODSelectorNode shared pointer.
typedef shared_ptr<Model3D> kanzi::Model3DSharedPtr |
Mesh node shared pointer.
typedef shared_ptr< NodeComponent > kanzi::NodeComponentSharedPtr |
typedef shared_ptr< ResourceDictionary > kanzi::ResourceDictionarySharedPtr |
Resource dictionary shared pointer.
typedef shared_ptr<void> kanzi::ScriptingContextSharedPtr |
typedef shared_ptr< Node const > kanzi::NodeConstSharedPtr |
Alias for shared pointer of const Node.
typedef weak_ptr< Node > kanzi::NodeWeakPtr |
Alias for weak pointer of Node.
typedef weak_ptr<Node const> kanzi::NodeConstWeakPtr |
Alias for weak pointer of const Node.
typedef shared_ptr< Node2D > kanzi::Node2DSharedPtr |
typedef shared_ptr< Node2D const > kanzi::Node2DConstSharedPtr |
typedef weak_ptr< Node2D > kanzi::Node2DWeakPtr |
typedef shared_ptr< Node3D > kanzi::Node3DSharedPtr |
Node3D shared pointer type.
typedef shared_ptr< Node3D const > kanzi::Node3DConstSharedPtr |
Node3D const shared pointer type.
typedef weak_ptr< Node3D > kanzi::Node3DWeakPtr |
Node3D weak pointer type.
typedef shared_ptr<Portal> kanzi::PortalSharedPtr |
typedef shared_ptr<ProgressiveRenderingViewport2D> kanzi::ProgressiveRenderingViewport2DSharedPtr |
typedef shared_ptr<Scene> kanzi::SceneSharedPtr |
Scene shared pointer.
typedef weak_ptr<Camera> kanzi::CameraWeakPtr |
CameraNode weak pointer.
typedef shared_ptr<Viewport2D> kanzi::Viewport2DSharedPtr |
typedef shared_ptr<Viewport3D> kanzi::Viewport3DSharedPtr |
typedef shared_ptr<NodeComponent const> kanzi::NodeComponentConstSharedPtr |
typedef shared_ptr< Style > kanzi::StyleSharedPtr |
typedef shared_ptr<AppliedStyleEntry> kanzi::AppliedStyleEntrySharedPtr |
AppliedStyleEntry shared pointer type.
typedef unique_ptr<CompositionStack> kanzi::CompositionStackPtr |
Composition stack shared pointer.
typedef unique_ptr<GeometryGl> kanzi::GeometryPtr |
Geometry pointer type.
typedef shared_ptr<GlGraphicsOutput> kanzi::GlGraphicsOutputSharedPtr |
GlGraphicsOutput shared pointer type.
typedef weak_ptr<Texture> kanzi::TextureWeakPtr |
typedef array<int, 4> kanzi::GLSwizzleMask |
typedef shared_ptr<const Mesh> kanzi::MeshConstSharedPtr |
typedef shared_ptr<Buffer> kanzi::BufferSharedPtr |
typedef unique_ptr<Buffer> kanzi::BufferUniquePtr |
typedef unordered_map<ShaderProgram*, vector<int> > kanzi::ShaderProgramToAttributeMapSet |
typedef unique_ptr<RenderStatePropertyNotificationHandler> kanzi::RenderStatePropertyNotificationHandlerPtr |
Render state property container shared pointer.
typedef shared_ptr< Renderbuffer > kanzi::RenderbufferSharedPtr |
Renderbuffer shared pointer type.
typedef Rectangle<int> kanzi::ViewportRectangle |
Viewport rectangle definition.
typedef map<string, int> kanzi::AttributeNameToIndex |
typedef AttributeNameToIndex::iterator kanzi::AttributeNameToIndexIterator |
typedef AttributeNameToIndex::const_iterator kanzi::AttributeNameToIndexConstIterator |
typedef shared_ptr<Renderer> kanzi::RendererSharedPtr |
typedef shared_ptr<BufferObjectStream> kanzi::BufferObjectStreamSharedPtr |
typedef shared_ptr<Surface> kanzi::SurfaceSharedPtr |
Surface shared pointer type.
typedef int kanzi::NativeEventHandle |
typedef weak_ptr<Resource> kanzi::ResourceWeakPtr |
typedef shared_ptr<ResourceDictionarySelector> kanzi::ResourceDictionarySelectorSharedPtr |
Resource dictionary selector shared pointer.
typedef shared_ptr<KzbFile> kanzi::KzbFileSharedPtr |
typedef shared_ptr<ResourceManager> kanzi::ResourceManagerSharedPtr |
Resource manager shared pointer type.
typedef unique_ptr<ResourceProfiler> kanzi::ResourceProfilerUniquePtr |
The resource profiler unique ptr type.
typedef shared_ptr<ResourceProfilingContext> kanzi::ResourceProfilingContextSharedPtr |
typedef unique_ptr<ResourceProfilingContextFactory> kanzi::ResourceProfilingContextFactoryUniquePtr |
The resource profiling context factory unique pointer type.
typedef shared_ptr<ResourceProfilingDataSample> kanzi::ResourceProfilingDataSampleSharedPtr |
Profiled resource shared pointer type.
typedef shared_ptr<ResourceProfilingLoadTask> kanzi::ProfiledLoadTaskSharedPtr |
Profiled load task shared pointer type.
typedef shared_ptr<Trajectory> kanzi::TrajectorySharedPtr |
typedef shared_ptr<StateManager> kanzi::StateManagerSharedPtr |
typedef weak_ptr<StateManager> kanzi::StateManagerWeakPtr |
typedef shared_ptr< NodeComponentTemplate > kanzi::NodeComponentTemplateSharedPtr |
typedef shared_ptr<NodeComponentTemplate const> kanzi::NodeComponentTemplateConstSharedPtr |
typedef shared_ptr< PrefabTemplate > kanzi::PrefabTemplateSharedPtr |
typedef shared_ptr<PrefabTemplateNode> kanzi::PrefabTemplateNodeSharedPtr |
typedef weak_ptr<PrefabTemplateNode> kanzi::PrefabTemplateNodeWeakPtr |
typedef shared_ptr< KzuTextFormat > kanzi::TextFormatSharedPtr |
Text format shared pointer.
TextFormat shared pointer.
typedef shared_ptr<MessageTrigger> kanzi::MessageTriggerSharedPtr |
typedef shared_ptr<OnAttachedTrigger> kanzi::OnAttachedTriggerSharedPtr |
typedef shared_ptr<OnPropertyChangedTrigger> kanzi::OnPropertyChangedTriggerSharedPtr |
typedef shared_ptr<TimerTrigger> kanzi::TimerTriggerSharedPtr |
typedef shared_ptr<Trigger> kanzi::TriggerSharedPtr |
typedef shared_ptr<TriggerTemplate> kanzi::TriggerTemplateSharedPtr |
typedef shared_ptr<TriggerTemplate const> kanzi::TriggerTemplateConstSharedPtr |
typedef v8::Persistent<v8::FunctionTemplate> kanzi::PersistentFunctionTemplate |
typedef v8::Local<v8::Value> kanzi::LocalValue |
typedef v8::Local<v8::Object> kanzi::LocalObject |
typedef v8::Local<v8::External> kanzi::LocalExternal |
typedef v8::Local<v8::Context> kanzi::LocalContext |
typedef v8::Local<v8::Script> kanzi::LocalScript |
typedef v8::Local<v8::ObjectTemplate> kanzi::LocalObjectTemplate |
typedef v8::Local<v8::FunctionTemplate> kanzi::LocalFunctionTemplate |
typedef v8::Persistent<v8::Context> kanzi::PersistentContext |
typedef v8::Persistent<v8::Script> kanzi::PersistentScript |
typedef v8::Persistent<v8::Object> kanzi::PersistentObject |
typedef shared_ptr<ExecuteScriptAction> kanzi::ExecuteScriptActionSharedPtr |
typedef shared_ptr<Button2D> kanzi::Button2DSharedPtr |
typedef shared_ptr<Button3D> kanzi::Button3DSharedPtr |
Button shared pointer.
typedef shared_ptr<DataSourceListItemGenerator2D> kanzi::DataSourceListItemGenerator2DSharedPtr |
typedef shared_ptr<DataSourceListItemGenerator3D> kanzi::DataSourceListItemGenerator3DSharedPtr |
typedef function<void()> kanzi::PropertyChangedFunction |
typedef shared_ptr<DockLayout2D> kanzi::DockLayout2DSharedPtr |
typedef shared_ptr<DockLayout3D> kanzi::DockLayout3DSharedPtr |
DockLayout shared pointer.
typedef shared_ptr<FlowLayout2D> kanzi::FlowLayout2DSharedPtr |
typedef shared_ptr<FlowLayout3D> kanzi::FlowLayout3DSharedPtr |
FlowLayout shared pointer.
typedef shared_ptr<GridLayout2D> kanzi::GridLayout2DSharedPtr |
GridLayout2D shared pointer.
typedef shared_ptr<GridLayout3D> kanzi::GridLayout3DSharedPtr |
GridLayout3D shared pointer.
typedef shared_ptr<GridListBox2D> kanzi::GridListBox2DSharedPtr |
typedef shared_ptr<GridListBox3D> kanzi::GridListBox3DSharedPtr |
typedef shared_ptr<ListBoxItemContainer3D> kanzi::ListBoxItemContainer3DSharedPtr |
typedef shared_ptr<ListBoxItemContainer2D> kanzi::ListBoxItemContainer2DSharedPtr |
typedef shared_ptr<NinePatchImage2D> kanzi::NinePatchImage2DSharedPtr |
typedef shared_ptr<Page> kanzi::PageSharedPtr |
typedef weak_ptr<Page> kanzi::PageWeakPtr |
typedef shared_ptr<PageHost> kanzi::PageHostSharedPtr |
typedef shared_ptr<PageTransitionCollection> kanzi::PageTransitionCollectionSharedPtr |
typedef shared_ptr<PrefabView2D> kanzi::PrefabView2DSharedPtr |
Prefab view 2D shared pointer.
typedef shared_ptr<PrefabView3D> kanzi::PrefabView3DSharedPtr |
Prefab view 3D shared pointer.
typedef shared_ptr<ScrollView2D> kanzi::ScrollView2DSharedPtr |
typedef shared_ptr<ScrollView3D> kanzi::ScrollView3DSharedPtr |
typedef shared_ptr<Slider2D> kanzi::Slider2DSharedPtr |
Trajectory Slider shared pointer.
typedef SliderTrajectoryPresenter<TrajectoryLayout2D, Slider2D, Trajectory2DInputHandler<TrajectoryLayout2D, Slider2D> > kanzi::Slider2DPresenterType |
typedef Slider2DConceptImpl<RangeConceptImpl<Node2D, Slider2D>, Slider2DPresenterType, Slider2D> kanzi::Slider2DConceptImplType |
typedef shared_ptr<Slider3D> kanzi::Slider3DSharedPtr |
Trajectory Slider shared pointer.
typedef SliderTrajectoryPresenter<TrajectoryLayout3D, Slider3D, Trajectory3DInputHandler<TrajectoryLayout3D, Slider3D> > kanzi::Slider3DPresenterType |
typedef Slider3DConceptImpl<RangeConceptImpl<Node3D, Slider3D>, Slider3DPresenterType, Slider3D> kanzi::Slider3DConceptImplType |
typedef shared_ptr<StackLayout2D> kanzi::StackLayout2DSharedPtr |
Stack layout shared pointer.
typedef shared_ptr<StackLayout3D> kanzi::StackLayout3DSharedPtr |
StackLayout shared pointer.
typedef shared_ptr<TextBlock2D> kanzi::TextBlock2DSharedPtr |
TextLayer shared pointer.
typedef shared_ptr<TextBlock3D> kanzi::TextBlock3DSharedPtr |
TextBlock shared pointer.
typedef shared_ptr<ToggleButton2D> kanzi::ToggleButton2DSharedPtr |
typedef shared_ptr<ToggleButton3D> kanzi::ToggleButton3DSharedPtr |
ToggleButton shared pointer.
typedef shared_ptr<ToggleButtonGroup2D> kanzi::ToggleButtonGroup2DSharedPtr |
ToggleButtonGroup2D shared pointer.
typedef shared_ptr<ToggleButtonGroup3D> kanzi::ToggleButtonGroup3DSharedPtr |
ToggleButtonGroup3D shared pointer.
typedef shared_ptr<TrajectoryLayout2D> kanzi::TrajectoryLayout2DSharedPtr |
TrajectoryLayout shared pointer.
typedef shared_ptr<TrajectoryLayout3D> kanzi::TrajectoryLayout3DSharedPtr |
TrajectoryLayout shared pointer.
typedef shared_ptr<TrajectoryListBox3D> kanzi::TrajectoryListBox3DSharedPtr |
enum kanzi::LogLevel |
The log levels.
The LogLevel is used internally to convert integer log level value to enumeration type.
Enumerator | |
---|---|
LogLevelError |
The error log level. See KZ_LOG_LEVEL_ERROR. |
LogLevelWarning |
The warning log level. See KZ_LOG_LEVEL_WARNING. |
LogLevelInfo |
The info log level. See KZ_LOG_LEVEL_INFO. |
LogLevelTrace |
The trace log level. See KZ_LOG_LEVEL_TRACE. |
Message routing modes.
Enumerator | |
---|---|
MessageRoutingTunnelingBubbling |
Identifies both, the tunneling and the bubbling phase. |
MessageRoutingTunneling |
Identifies the tunneling phase, during which a message travels down the node tree from the first child node of the Screen node (the root node) to the node where the message originated. |
MessageRoutingBubbling |
Identifies the bubbling phase, during which a message travels up the node tree from the node where the message originated to the first child node of the Screen node (the root node). |
MessageRoutingDirect |
Not implemented. |
Each property type has a set of property change flags that indicate what kind of effects changing the property has.
For example, when the text property of a text block is changed, then the text block layout has to be recalculated, so the text property type has PropertyTypeChangeFlagMeasure.
Property value precedence.
Enumeration of data types that can be stored as properties.
Enumerator | |
---|---|
PropertyDataTypeFloat |
Float data. |
PropertyDataTypeInt |
Integer data. |
PropertyDataTypeBool |
Boolean data. |
PropertyDataTypeColor |
ColorRGBA data. |
PropertyDataTypeVector2 |
Vector2 data. |
PropertyDataTypeVector3 |
Vector3 data. |
PropertyDataTypeVector4 |
Vector4 data. |
PropertyDataTypeMatrix3x3 |
Matrix3x3 data. |
PropertyDataTypeMatrix4x4 |
Matrix4x4 data. |
PropertyDataTypeString |
String data. |
PropertyDataTypePointer |
Pointer data. |
PropertyDataTypeResource |
Resource data. |
PropertyDataTypeSRT2D |
SRTValue2D data. |
PropertyDataTypeSRT3D |
SRTValue3D data. |
enum kanzi::PropertyField |
Property field.
Enumerator | |
---|---|
PropertyFieldWhole |
Whole property value. |
PropertyFieldTranslationX |
Translation X component, presented as float. |
PropertyFieldTranslationY |
Translation Y component, presented as float. |
PropertyFieldTranslationZ |
Translation Z component, presented as float. |
PropertyFieldScaleX |
Scale X component, presented as float. |
PropertyFieldScaleY |
Scale Y component, presented as float. |
PropertyFieldScaleZ |
Scale Z component, presented as float. |
PropertyFieldRotationX |
Rotation X component, presented as float. |
PropertyFieldRotationY |
Rotation Y component, presented as float. |
PropertyFieldRotationZ |
Rotation Z component, presented as float. |
PropertyFieldColorR |
Color R field, presented as float. |
PropertyFieldColorG |
Color G field, presented as float. |
PropertyFieldColorB |
Color B field, presented as float. |
PropertyFieldColorA |
Color A field, presented as float. |
PropertyFieldVectorX |
Vector X field, presented as float. |
PropertyFieldVectorY |
Vector Y field, presented as float. |
PropertyFieldVectorZ |
Vector Z field, presented as float. |
PropertyFieldVectorW |
Vector W field, presented as float. |
PropertyFieldRotation |
Rotation component of property of SRTValue3D type, presented as Quaternion. |
Playback type of the timeline.
Binary target attribute type.
Expression argument type.
Expression operation.
Font hinting options.
Hinting refers to the adjustments in the outline-filling process of a glyph, so that the glyph lines up within the rasterized grid.
GraphicsElementType is used to specify type of element of data consumed by shaders.
An element is a scalar used to build scalars (single element), vectors (one row) and matrices (multiple rows and columns) consumed by shaders.
Enumerator | |
---|---|
GraphicsElementTypeUINT |
Unsigned integer element type. |
GraphicsElementTypeSINT |
Signed integer element type. |
GraphicsElementTypeFLOAT |
Floating point element type. |
GraphicsDataType is used to specify type of data in textures and vertex buffers.
GraphicsFormat specifies format of graphics data used for example in textures and vertex attributes.
Clear target options for renderer.
Renderer stencil modes.
Renderer stencil operations.
List of color write modes.
List of renderer blend modes.
Enumeration for index buffer primitive type.
enum kanzi::ShaderType |
How GraphicsFormat is used.
Enumeration for viewport coordinate unit type (exact pixel coordinates / percentages from window)
bool kanzi::contains | ( | const array< T, Size > & | c, |
const U & | value | ||
) |
T kanzi::prev | ( | T | t, |
D | d | ||
) |
T kanzi::prev | ( | T | t | ) |
T::iterator kanzi::begin | ( | T & | t | ) |
T::iterator kanzi::end | ( | T & | t | ) |
T::reverse_iterator kanzi::rbegin | ( | T & | t | ) |
T::reverse_iterator kanzi::rend | ( | T & | t | ) |
T::const_iterator kanzi::cbegin | ( | T const & | t | ) |
const T* kanzi::cbegin | ( | const T(&) | array[N] | ) |
T::const_iterator kanzi::cend | ( | T const & | t | ) |
const T* kanzi::cend | ( | const T(&) | array[N] | ) |
T::const_reverse_iterator kanzi::crbegin | ( | T const & | t | ) |
T::const_reverse_iterator kanzi::crend | ( | T const & | t | ) |
shared_ptr<T> kanzi::make_polymorphic_shared_ptr | ( | T * | p | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void kanzi::erase_if | ( | unordered_map< K, T, H, P, A > & | c, |
Predicate | pred | ||
) |
|
inline |
Converts character range to int value.
This is available since C++14. According to the standard specification this function should not depend on locale. This implementation does use local to convert character range to value.
first | Pointer to first character in range to be converted |
last | Pointer to first character beyond last in range to be converted |
value | Reference to the storage where converted value is stored |
base | Base to be used to convert integer value |
void kanzi::erase | ( | vector< T, A > & | c, |
const U & | value | ||
) |
void kanzi::erase_if | ( | vector< T, A > & | c, |
const U & | predicate | ||
) |
bool kanzi::contains | ( | const vector< T, A > & | c, |
const U & | value | ||
) |
|
inline |
Used by logging system to convert legacy exception type objects to string.
See template logArgumentToString().
KANZI_API KZ_ATTRIBUTE_NO_RETURN void kanzi::kzThrowLegacyError | ( | kzsError | value | ) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void kanzi::kzThrowLegacyErrorMessage | ( | kzsError | value, |
kzString | message | ||
) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void kanzi::kzThrowLegacyErrorMessage | ( | kzsError | value, |
const string & | message | ||
) |
KANZI_API KZ_ATTRIBUTE_NO_RETURN void kanzi::kzThrowLegacyErrorFormat | ( | kzsError | value, |
kzString | format, | ||
... | |||
) |
Loads contents of a file into a string.
file | The file to load. Upon successful return the file offset is set to the end of the file. |
string kanzi::logArgumentToString | ( | const T & | value | ) |
The logging subsystem uses this function to convert a value to string.
The Logging subsystem uses this function internally to convert log message format arguments to string, when the type of the format argument is user-defined. See Log message argument format specification.
If you define your own type and want to use objects of that type as format arguments in formatted log messages, you must provide specialization of this function template for the type you defined, or provide overload of the operator<< for your type required by the default implementation of this template function.
value | The value to be converted to string. |
value
. Calculates component wise absolute value for all elements and returns resulting color.
v | Color input. |
Calculates component wise ceil value for all elements and returns resulting color.
v | Color input. |
Calculates component wise floor value for all elements and returns resulting color.
v | Color input. |
Calculates component wise rounded value for all elements and returns resulting color.
v | Color input. |
Calculates component wise square root all elements and returns resulting color.
v | Color input. |
Calculates component wise maximum for all color elements and returns the resulting color.
v1 | The first color. |
v2 | The second color. |
Calculates component wise minimum for all color elements and returns resulting color.
v1 | The first color. |
v2 | The second color. |
Does component wise multiply for all color elements and returns resulting color.
v1 | The first color. |
v2 | The second color. |
Does component wise divide for all color elements and returns the resulting color.
v1 | The first color. |
v2 | The second color. |
Does component wise remainder for all color elements and returns the resulting color.
v1 | The first color. |
v2 | The second color. |
Adds a value to all color elements and returns the resulting color.
v | Color. |
scalar | Value |
Subtracts a value from all color elements and returns the resulting color.
v | Color. |
scalar | Value |
Adds two colors and returns the sum.
v1 | Left hand side color. |
v2 | Right hand side color. |
Subtracts two colors and returns the difference.
v1 | Left hand side color. |
v2 | Right hand side color. |
Multiplies all color elements with a scalar and returns the resulting color.
v | A color. |
scalar | A scalar. |
Multiplies all color elements with a scalar and returns the resulting color.
scalar | A scalar. |
v | A color. |
Divides all color elements with a scalar and returns the resulting color.
v | A color. |
scalar | A scalar. |
Negates all color elements and returns the resulting color.
v | A color. |
Unary plus, doesn't do anything and returns the resulting color.
v | A color. |
Compares two colors for equality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side color. |
v2 | Right hand side color. |
Compares two colors for inequality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side color. |
v2 | Right hand side color. |
Calculates the dot product of two colors.
v1 | The first color. |
v2 | The second color. |
float kanzi::sRGBToLinear | ( | float | cs | ) |
Conversion from sRGB to linear for default gamma 2.2.
float kanzi::linearTosRGB | ( | float | cl | ) |
Conversion from linear to sRGB for default gamma 2.2.
Conversion to whole ColorRGBA from sRGB to linear.
cs | Color in sRGB format. |
Conversion to whole ColorRGBA from linear to sRGB.
cs | Color in linear format. |
KANZI_API uint16_t kanzi::floatToHalfFloat | ( | float | f | ) |
Converts float to 16 bits representing a half float.
KANZI_API float kanzi::halfFloatToFloat | ( | uint16_t | halfFloatNumber | ) |
Converts 16 bits representing a half float to a float.
Multiplies two matrices and returns the product.
m1 | Left hand side matrix. |
m2 | Right hand side matrix. |
Multiplies matrix with vector and returns the product.
m | Left hand side matrix. |
v | Right hand side vector. |
Compares two matrices for equality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
m1 | Left hand side matrix. |
m2 | Right hand side matrix. |
Compares two matrices for inequality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
m1 | Left hand side matrix. |
m2 | Right hand side matrix. |
KANZI_API void kanzi::extractSRT | ( | const Matrix3x3 & | matrix, |
Vector2 & | scale, | ||
float & | rotationInRadians, | ||
Vector2 & | translation | ||
) |
KANZI_API void kanzi::extractSRT | ( | const Matrix4x4 & | matrix, |
Vector3 & | scale, | ||
Vector3 & | rotationInRadians, | ||
Vector3 & | translation | ||
) |
Rectangle<T> kanzi::intersection | ( | const Rectangle< T > & | rectangle1, |
const Rectangle< T > & | rectangle2 | ||
) |
Calculates component wise absolute value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise ceil value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise floor value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise rounded value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise square root all elements and returns resulting vector.
v | Vector input. |
Calculates the component wise maximum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Calculates the component wise minimum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise multiply for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise divide for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise remainder for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Adds a value to all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Subtracts a value from all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Returns true if each component of the first vector is less than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Adds two vectors and returns the sum.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Subtracts two vectors and returns the difference.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Multiplies all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Multiplies all vector elements with a scalar and returns the resulting vector.
scalar | A scalar. |
v | A vector. |
Divides all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Negates all vector elements and returns the resulting vector.
v | A vector. |
Unary plus, doesn't do anything and returns the resulting vector.
v | A vector. |
Compares two vectors for equality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Compares two vectors for inequality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Calculates the dot product of two vectors.
v1 | The first vector. |
v2 | The second vector. |
Calculates pseudo-cross product of two 2D vectors.
U x V = Uy * Vx - Ux * Vy.
left | The first vector. |
right | The second vector. |
Calculates component wise absolute value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise ceil value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise floor value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise rounded value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise square root all elements and returns resulting vector.
v | Vector input. |
Calculates the component wise maximum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Calculates the component wise minimum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise multiply for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise divide for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise remainder for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Adds a value to all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Subtracts a value from all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Returns true if each component of the first vector is less than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Adds two vectors and returns the sum.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Subtracts two vectors and returns the difference.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Multiplies all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Multiplies all vector elements with a scalar and returns the resulting vector.
scalar | A scalar. |
v | A vector. |
Divides all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Negates all vector elements and returns the resulting vector.
v | A vector. |
Unary plus, doesn't do anything and returns the resulting vector.
v | A vector. |
Compares two vectors for equality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Compares two vectors for inequality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Calculates the dot product of two vectors.
v1 | The first vector. |
v2 | The second vector. |
Calculates the cross product of two vectors.
v1 | The first vector. |
v2 | The second vector. |
Calculates component wise absolute value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise ceil value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise floor value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise rounded value for all elements and returns resulting vector.
v | Vector input. |
Calculates component wise square root all elements and returns resulting vector.
v | Vector input. |
Calculates the component wise maximum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Calculates the component wise minimum for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise multiply for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise divide for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Does component wise remainder for all vector elements and returns the resulting vector.
v1 | The first vector. |
v2 | The second vector. |
Adds a value to all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Subtracts a value from all elements of a vector and returns the result.
v | A vector. |
scalar | A scalar. |
Returns true if each component of the first vector is less than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is less than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Returns true if each component of the first vector is greater than or equal to the corresponding component of the second vector.
a | First vector. |
b | Second vector. |
Adds two vectors and returns the sum.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Subtracts two vectors and returns the difference.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Multiplies all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Multiplies all vector elements with a scalar and returns the resulting vector.
scalar | A scalar. |
v | A vector. |
Divides all vector elements with a scalar and returns the resulting vector.
v | A vector. |
scalar | A scalar. |
Negates all vector elements and returns the resulting vector.
v | A vector. |
Unary plus, doesn't do anything and returns the resulting vector.
v | A vector. |
Compares two vectors for equality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Compares two vectors for inequality.
Note that this is a floating point comparison without any tolerance, so you probably don't want to use this.
v1 | Left hand side vector. |
v2 | Right hand side vector. |
Calculates the dot product of two vectors.
v1 | The first vector. |
v2 | The second vector. |
void kanzi::registerMetaclass | ( | ObjectFactory & | objectFactory | ) |
void kanzi::overrideMetaclass | ( | ObjectFactory & | objectFactory | ) |
KANZI_API wstring kanzi::convertUTF8ToWideChar | ( | string_view | utf8 | ) |
Converts a given UTF-8 string view into a Win32-compatible wide character string.
utf8 | String to convert. Must be UTF-8. |
KANZI_API string kanzi::convertWideCharToUTF8 | ( | wstring_view | wchar | ) |
Converts a given Win32-compatible wide character string view into a UTF-8 string.
wchar | Wide character string to convert. |
|
inline |
|
inline |
|
inline |
|
inline |
timespec kanzi::millisecondsToTimespec | ( | chrono::milliseconds | ms | ) |
Converts C++ milliseconds to POSIX native nanosecond format.
timeval kanzi::millisecondsToTimeval | ( | chrono::milliseconds | ms | ) |
Converts C++ milliseconds to POSIX native microsecond format.
KANZI_API PropertyTypeRegistry::const_iterator kanzi::beginPropertyTypes | ( | ) |
Get iterator to the beginning of registry of all property types.
KANZI_API PropertyTypeRegistry::const_iterator kanzi::endPropertyTypes | ( | ) |
Get iterator to the end of registry of all property types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
KANZI_API vector<string> kanzi::splitString | ( | const string & | source, |
const string & | delimiter | ||
) |
Splits string to tokens.
Use this function to split string source
to substrings using delimiter
. This function returns vector of resulting substrings. The substrings do not include delimiter.
splitString(string("123;456;"), ";") returns vector of strings: { "123", "456", "" }
source | The string that will be split. |
delimiter | The delimiter that is used for splitting. |
KANZI_API vector<string_view> kanzi::splitString | ( | string_view | source, |
string_view | delimiter | ||
) |
Splits string view to tokens.
Use this function to split string view source
to substrings using delimiter
. This function returns vector of resulting substrings. The substrings do not include delimiter.
Prefer this function over splitString function above to avoid extra cost.
splitString(string_view("123;456;"), ";") returns vector of string views: { "123", "456", "" }
source | The string view that will be split. |
delimiter | The delimiter that is used for splitting. |
KANZI_API unsigned char kanzi::toLower | ( | unsigned char | ch | ) |
Wrapper for tolower() that returns unsigned char.
Resets the stop watch.
This is a convenience function that calls StopWatch::getDeltaTime().
optional<TimeInterval> kanzi::getIntersection | ( | const TimeInterval & | first, |
const TimeInterval & | second | ||
) |
Gets intersection of two intervals.
first | First interval. |
second | Second interval. |
T kanzi::animationInterpolate | ( | const T & | from, |
const T & | to, | ||
float | phase | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
T kanzi::animationConcatenate | ( | const T & | lhs, |
const T & | rhs | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
void kanzi::registerTimelineLoaders | ( | ObjectLoader & | objectLoader | ) |
Registers loaders for build-in timeline types.
Timeline::DirectionBehavior kanzi::convert | ( | KzuTimeLineEntryPlaybackMode | mode | ) |
KzuTimeLineEntryPlaybackMode kanzi::convert | ( | Timeline::DirectionBehavior | behavior | ) |
KANZI_API void kanzi::load | ( | ApplicationProperties & | applicationProperties, |
string_view | configurationFilePath | ||
) |
Loads application properties from configuration INI file.
If property is not specified in configuration file, nothing will be written to appropriate field of application properties.
applicationProperties | Application properties where loaded property values are written. |
configurationFilePath | Path to configuration file. |
KANZI_API void kanzi::load | ( | ApplicationProperties & | applicationProperties, |
const SystemProperties & | systemProperties | ||
) |
Loads application properties from system properties.
If property is not specified in system properties, nothing will be written to appropriate field of application properties.
applicationProperties | Application properties where loaded property values are written. |
systemProperties | System properties where to read property values from. |
KANZI_API void kanzi::appendSkipSystemInitialization | ( | SystemProperties & | systemProperties | ) |
Adds "-nosysinit" to the end of the system properties.
systemProperties | System properties where skip system initialization property is added. |
KANZI_API bool kanzi::hasSkipSystemInitialization | ( | const SystemProperties & | systemProperties | ) |
Checks whether one of the parameters is "-nosysinit".
System properties where to look for the property.
KANZI_API string_view kanzi::findConfigurationName | ( | const SystemProperties & | systemProperties, |
string_view | defaultConfigurationName | ||
) |
Returns the tail of the first argument that starts with "-config=" or default configuration name if not found.
systemProperties | System properties where to look for the argument. |
defaultConfigurationName | Default configuration name which is returned if config argument is not found. |
KANZI_API bool kanzi::hasToken | ( | const SystemProperties & | systemProperties, |
string_view | token | ||
) |
Checks if system properties contain specified token.
systemProperties | System properties where to look for the token. |
token | Token name. |
KANZI_API size_t kanzi::getRuntimeAssetDataSize | ( | ) |
Gets size of runtime asset data.
Gets runtime asset data.
KANZI_API KzuBinaryDirectory* kanzi::createRuntimeAssetsDirectory | ( | KzcMemoryManager * | memoryManager | ) |
Create runtime asset binary directory.
Uses old binary format.
memoryManager | Memory manager to use. |
Registers build-in runtime assets in resource manager of domain so they can be acquired at runtime.
resourceManager | Domain in resource manager of which to register runtime assets. |
KANZI_API BindingSharedPtr kanzi::loadBinding | ( | KzcInputStream * | inputStream, |
Domain * | domain, | ||
const KzuBinaryFileInfo * | file | ||
) |
Loads a binding from stream.
KANZI_API BindingSharedPtr kanzi::loadBinding | ( | KzbFile & | kzbFile, |
KzbMemoryParser & | parser | ||
) |
Loads binding from KZB.
kzbFile | KZB file to load bindings from. |
parser | Parser to read bindings from. |
KANZI_API void kanzi::loadBindings | ( | KzbFile & | kzbFile, |
KzbMemoryParser & | parser, | ||
vector< BindingSharedPtr > & | bindings | ||
) |
Loads bindings from KZB.
kzbFile | KZB file to load bindings from. |
parser | Parser to read bindings from. |
bindings | Bindings container where loaded bindings are stored. |
KANZI_API PropertyField kanzi::kzuBindingFieldFromBinaryAttribute | ( | KzuPropertyBinaryTargetAttribute | attribute | ) |
Converts a property attribute to a field.
BindingProcessorSharedPtr kanzi::loadBindingValidator | ( | KzcInputStream * | inputStream, |
Domain * | domain, | ||
const KzuBinaryFileInfo * | file | ||
) |
Loads a binding validator from stream.
const Variant* kanzi::kzuExpressionValidatorGetArgument | ( | Binding * | rule, |
KzuExpressionValidatorArgumentType | argumentType | ||
) |
Get expression validator argument.
KANZI_API BitmapImageUniquePtr kanzi::loadImage | ( | Domain * | domain, |
string_view | imageUrl, | ||
bool | isInCubemap | ||
) |
Loads an image from KZB file.
domain | Domain. |
imageUrl | URL of the image. |
isInCubemap | Whether the loaded image will be used as a cubemap face. |
KANZI_API BitmapImageUniquePtr kanzi::loadNativeImage | ( | Domain * | domain, |
NativeDeploymentTarget | target, | ||
string_view | imageUrl, | ||
bool | isInCubemap | ||
) |
Loads an image from KZB file with backend specific deployment target.
domain | Domain. |
target | The native deployment target to use. |
imageUrl | URL of the image. |
isInCubemap | Whether the loaded image will be used as a cubemap face. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadPNG | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads a PNG image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadJPEG | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads a JPEG image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadPVRTC | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads a PVRTC image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadETC | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads an ETC image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadATC | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads an ATC image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadASTC | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads an ASTC image from an input stream.
This is expected to contain a KZB-specific header with block size and other metadata.
You may also load ASTC compressed textures directly by passing the correct surface format, width and height to BitmapImage::createFromMemory.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API BitmapImageUniquePtr kanzi::imageLoadRaw2D | ( | KzcInputStream * | stream, |
string_view | name = "" |
||
) |
Loads a Raw2D image from an input stream.
stream | The input stream to read from. |
name | (Optional) A name for the image. |
KANZI_API void kanzi::imageSavePNG | ( | const BitmapImage & | image, |
KzcOutputStream * | stream | ||
) |
Saves an image as a PNG to an output stream.
image | The image. |
stream | The output stream to write to. |
KANZI_API void kanzi::imageSavePNGPaletted | ( | const BitmapImage & | image, |
KzcOutputStream * | stream | ||
) |
Saves an image as a paletted PNG to an output stream.
image | The image. |
stream | The output stream to write to. |
KANZI_API void kanzi::imageSaveJPEG | ( | const BitmapImage & | image, |
KzcOutputStream * | stream, | ||
float | quality = 1.0f |
||
) |
Saves an image as a JPEG to an output stream.
image | The image. |
stream | The output stream to write to. |
quality | The JPEG compression quality between 0..1, 1 being the best quality. |
KANZI_API bool kanzi::isValid | ( | GraphicsFormat | format | ) |
Indicates whether format is valid.
format | graphics format to query. |
KANZI_API unsigned int kanzi::getBitsPerBlock | ( | GraphicsFormat | format | ) |
Returns number of bits per block of the specified format.
format | Graphics format to query. |
KANZI_API unsigned int kanzi::getBytesPerBlock | ( | GraphicsFormat | format | ) |
Returns number of bytes per block of the specified format.
format | Graphics format to query. |
KANZI_API bool kanzi::isCompressed | ( | GraphicsFormat | format | ) |
Indicates whether format is compressed format or not.
format | graphics format to query. |
KANZI_API GraphicsFormat kanzi::getFallback | ( | GraphicsFormat | format | ) |
Returns an alternative format which is potentially more widely supported.
Fallback format may have more bits for some or all of the component, but never less. Fallback format may have additional channels, fallback format may not drop any component. For example, if R8G8B8 texture format is not supported by graphics device. getFallback() returns R8G8B8A8 format since that is potentially more widely supported. Fallback format is a format which can represent all information of the given format.
format | Format for which fallback format is queried. |
KANZI_API GraphicsFormat kanzi::getCommon | ( | GraphicsFormat | format1, |
GraphicsFormat | format2 | ||
) |
Returns a common superset of two formats, or GraphicsFormatNone if formats cannot be combined.
The returned common format must have all channels from both given formats. For each channel, the number of bits must equal or exceed number of bits in the given formats. format1 First format
format2 | Second format |
KANZI_API GraphicsDataType kanzi::getDataType | ( | GraphicsFormat | format | ) |
Returns data type of the format.
format | Format to query. |
KANZI_API unsigned int kanzi::getChannelCount | ( | GraphicsFormat | format | ) |
Returns number of unique color channels of the format.
format | Format to query. |
KANZI_API unsigned int kanzi::getDataSizeBytes | ( | int | width, |
int | height, | ||
GraphicsFormat | format | ||
) |
Returns data size in bytes for image with specified dimensions and format.
For block based images, number of blocks is calculated, and image size is returned as block size times number of blocks. For formats which are not block based, minimum byte-aligned stride size is calculated and height times stride size is returned.
width | Width of image. |
height | Height of image. |
format | Format of image. |
KANZI_API bool kanzi::hasColor | ( | GraphicsFormat | format | ) |
Indicates whether given format has one more more color channels.
Red, green, blue, and luminance are considered color channels.
format | Format to query. |
KANZI_API bool kanzi::hasAlpha | ( | GraphicsFormat | format | ) |
Indicates whether given format has alpha channel.
format | Format to query. |
KANZI_API bool kanzi::hasDepth | ( | GraphicsFormat | format | ) |
Indicates whether given format has depth channel.
format | Format to query. |
KANZI_API bool kanzi::hasStencil | ( | GraphicsFormat | format | ) |
Indicates whether given format has stencil channel.
format | Format to query. |
KANZI_API bool kanzi::hasAliasedChannel | ( | GraphicsFormat | format | ) |
Indicates whether given format has an aliased color channel.
format | Format to query. |
KANZI_API unsigned int kanzi::getBitCount | ( | GraphicsDataType | dataType | ) |
Return number of bits per one element of data type.
For GraphicsDataTypeNone, 0 is returned.
dataType | Data type to query. |
KANZI_API unsigned int kanzi::getBitCount | ( | GraphicsDataType | dataType, |
unsigned int | componentCount | ||
) |
Return number of bits per one element of data type.
For GraphicsDataTypeNone, 0 is returned.
dataType | Data type to query. |
componentCount | Number of components of the given data type in one element. If the data type is packed, this parameter is ignored and the return value is calculated from the data type alone. |
KANZI_API unsigned int kanzi::getByteCount | ( | GraphicsDataType | dataType | ) |
Return number of bytes per one element of data type.
dataType | Data type to query. |
KANZI_API bool kanzi::isPacked | ( | GraphicsDataType | dataType | ) |
Indicates whether given data type is packed or not.
dataType | Data type to query. |
KANZI_API unsigned int kanzi::getByteCount | ( | GraphicsDataType | dataType, |
unsigned int | componentCount | ||
) |
Returns number of bytes for graphics data.
dataType | Data type for elements. |
componentCount | Number of components of the given data type in one element. If the data type is packed, this parameter is ignored and the return value is calculated from the data type alone. |
KANZI_API FixedString kanzi::toFixedString | ( | GraphicsDataType | dataType | ) |
Returns human readable string for GraphicsDataType.
dataType | Data type to query. |
KANZI_API FixedString kanzi::toFixedString | ( | GraphicsFormat | format | ) |
Returns human readable string for GraphicsFormat.
format | Format to query. |
KANZI_API optional<GraphicsFormat> kanzi::findGraphicsFormatByName | ( | string_view | formatName | ) |
Returns GraphicsFormat given its name as a human readable string.
formatName | Name of the format. |
|
inline |
Merge two composition requirements together.
In the combined requirement, all bits that are set in either one are set.
lhs | Left-hand-side requirements. |
rhs | Right-hand-side requirements. |
|
inline |
|
inline |
|
inline |
KANZI_API optional<VertexAttribute::Semantic> kanzi::toVertexAttributeSemantic | ( | unsigned int | kzbVertexAttributeSemantic | ) |
Converts KZB vertex attribute semantic to runtime VertexAttribute::Semantic.
kzbVertexAttributeSemantic | KZB vertex attribute semantic value. |
KANZI_API FixedString kanzi::toFixedString | ( | VertexAttribute::Semantic | semantic | ) |
Returns human readable string for semantic.
semantic | Vertex attribute semantic. |
|
inline |
|
inline |
KANZI_API void kanzi::writeVertexAttribute | ( | Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
size_t | component, | ||
float | v | ||
) |
Writes one float attribute component to vertex data.
createInfo | Mesh create info to edit. |
vertexIndex | Vertex to modify. |
attributeIndex | Vertex attribute to modify. |
component | Index of attribute component to modify. |
v | Value for vertex attribute component. |
KANZI_API void kanzi::writeVertexAttribute | ( | Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
float | v | ||
) |
Writes one float attribute value to vertex data.
createInfo | Mesh create info to edit. |
vertexIndex | Vertex to modify. |
attributeIndex | Vertex attribute to modify. |
v | Value for vertex attribute. |
KANZI_API void kanzi::writeVertexAttribute | ( | Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
Vector2 | v | ||
) |
KANZI_API void kanzi::writeVertexAttribute | ( | Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
Vector3 | v | ||
) |
KANZI_API void kanzi::writeVertexAttribute | ( | Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
Vector4 | v | ||
) |
KANZI_API float kanzi::readVertexAttributeComponent | ( | const Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex, | ||
size_t | component | ||
) |
Reads one attribute component of given vertex from mesh create info.
createInfo | Mesh create info to read. |
vertexIndex | Vertex to read. |
attributeIndex | Vertex attribute to read. |
component | Index of attribute component to read. |
KANZI_API float kanzi::readVertexAttributeFloat | ( | const Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex | ||
) |
Reads float attribute of given vertex from mesh.
createInfo | Mesh create info to read. |
vertexIndex | Vertex to read. |
attributeIndex | Vertex attribute to read. |
KANZI_API Vector2 kanzi::readVertexAttributeVector2 | ( | const Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex | ||
) |
Reads Vector2 attribute of given vertex from mesh.
createInfo | Mesh create info to read. |
vertexIndex | Vertex to read. |
attributeIndex | Vertex attribute to read. |
KANZI_API Vector3 kanzi::readVertexAttributeVector3 | ( | const Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex | ||
) |
KANZI_API Vector4 kanzi::readVertexAttributeVector4 | ( | const Mesh::CreateInfo & | createInfo, |
size_t | vertexIndex, | ||
size_t | attributeIndex | ||
) |
KANZI_API Mesh::CreateInfo kanzi::loadMeshCreateInfo | ( | Domain * | domain, |
KzcInputStream * | inputStream, | ||
const KzuBinaryFileInfo * | file | ||
) |
KANZI_API Mesh::CreateInfo kanzi::loadMeshCreateInfo | ( | Domain * | domain, |
KzbFile & | kzbFile, | ||
ReadOnlyMemoryFile & | file, | ||
KzbMemoryParser & | parser | ||
) |
KANZI_API Box kanzi::calculateBoundingVolume | ( | const Mesh::CreateInfo & | createInfo | ) |
Calculates bounding box from mesh vertex data.
createInfo | Mesh create info. |
KANZI_API void kanzi::updateVertexAttributeOffsetsAndVertexSize | ( | Mesh::CreateInfo & | createInfo | ) |
Sets offsets for vertex attributes in mesh create info.
createInfo | Mesh create info. |
KANZI_API void kanzi::updateVertexAttributeStrides | ( | Mesh::CreateInfo & | createInfo | ) |
Calculates vertex format size and updates stride to all vertex attributes in mesh create info.
createInfo | Mesh create info. |
KANZI_API ResourceManager::UrlContainer kanzi::collectResourceUrls | ( | const Mesh::CreateInfo & | createInfo | ) |
For each cluster in mesh create info, get material URL, if set.
createInfo | Mesh create info. |
KANZI_API void kanzi::acquireResources | ( | Domain * | domain, |
Mesh::CreateInfo & | createInfo | ||
) |
KANZI_API Mesh::CreateInfo kanzi::generateBox | ( | Vector3 | size, |
bool | useHalfFloat, | ||
bool | generateNormals, | ||
bool | generateTangents, | ||
MaterialSharedPtr | material, | ||
string_view | materialURL, | ||
GPUResource::MemoryType | memoryType | ||
) |
Makes mesh create info for box primitive mesh.
The box will have position, normal and texture coordinate attributes in one cluster, using specified material.
width | Width for the box. |
height | Height for the box. |
depth | Depth for the box. |
useHalfFloat | If true, vertex attributes will use half float data type, otherwise vertex attributes will use float data type. |
material | Material (pointer). |
materialURL | URL for material resource. |
KANZI_API Mesh::CreateInfo kanzi::generateSphere | ( | float | radius, |
unsigned int | segmentCount, | ||
unsigned int | rowCount, | ||
bool | useHalfFloat, | ||
bool | generateNormals, | ||
bool | generateTangents, | ||
MaterialSharedPtr | material, | ||
string_view | materialURL, | ||
GPUResource::MemoryType | memoryType | ||
) |
Makes mesh create info for sphere primitive mesh.
The sphere will have position, normal and texture coordinate attributes in one cluster, using specified material.
radius | Radius for the sphere. |
segmentCount | Number of segments in the sphere. |
rowCount | Number of rows in the sphere. |
useHalfFloat | If true, vertex attributes will use half float data type, otherwise vertex attributes will use float data type. |
material | Material (pointer). |
materialURL | URL for material resource. |
KANZI_API Mesh::CreateInfo kanzi::generatePlane | ( | float | width, |
float | height, | ||
bool | invertU, | ||
bool | invertV, | ||
bool | useHalfFloat, | ||
bool | generateNormals, | ||
bool | generateTangents, | ||
MaterialSharedPtr | material, | ||
string_view | materialURL, | ||
GPUResource::MemoryType | memoryType | ||
) |
Makes mesh create info for plane primitive mesh.
The plane will have position, normal and texture coordinate attributes in one cluster, using specified material.
width | Width for the plane. |
height | Height for the plane. |
invertU | If true, U texture coordinate will be inverted. |
invertV | If true, V texture coordinate will be inverted. |
useHalfFloat | If true, vertex attributes will use half float data type, otherwise vertex attributes will use float data type. |
material | Material (pointer). |
materialURL | URL for material resource. |
kzsError kanzi::kzuResourceManagerLoadMorph_internal | ( | Domain * | domain, |
KzcInputStream * | inputStream, | ||
const KzuBinaryFileInfo * | file, | ||
Resource ** | out_resource | ||
) |
Returns the logical focus node of the scope node.
The function skips the nested scopes and executes a fixup for the scope's logical focus nodes.
node | The scope node that has logical focus children. |
Sets the logical focus node of the given scope node.
Any previous node in the scope that had logical focus will get the state cleared.
scope | The scope to which the focus node is set. |
focus | The node to which the logical focus is set. |
KANZI_API uint32_t kanzi::getSupportedKzbFormatVersion | ( | ) |
Gets the supported KZB format version.
KANZI_API ConstByteSpan kanzi::getKzbMagic | ( | ) |
Gets the KZB magic byte sequence.
KANZI_API bool kanzi::isKzbMagic | ( | ConstByteSpan | data | ) |
Tells if beginning of given byte span matches KZB magic.
data | Data to test. |
Tells if beginning of given file matches KZB magic.
file | File to test. |
KANZI_API UrlContainer kanzi::collectResourceUrls | ( | const KzbMemoryParser::PropertyContainer & | properties | ) |
Collects URLs of all property values of Resource type.
properties | Reference to a PropertyContainer. |
KANZI_API void kanzi::applyProperties | ( | Object & | object, |
const KzbMemoryParser::PropertyContainer & | properties | ||
) |
KANZI_API ObjectSharedPtr kanzi::loadEmbeddedObject | ( | Domain * | domain, |
KzcInputStream * | inputStream, | ||
const KzuBinaryFileInfo * | file | ||
) |
Loads embedded object.
Embedded objects are objects which are stored in binary file along with their metaclass and name.
domain | Domain. |
inputStream | Input stream from which to read object. |
file | Binary file where object is embedded. |
KANZI_API TimerSubscriptionToken kanzi::addTimerHandler | ( | KzuMessageDispatcher * | messageDispatcher, |
chrono::milliseconds | interval, | ||
KzuTimerMessageMode | mode, | ||
TimerFunction | callback | ||
) |
KANZI_API void kanzi::removeTimerHandler | ( | KzuMessageDispatcher * | messageDispatcher, |
TimerSubscriptionToken | token | ||
) |
KANZI_API Matrix4x4 kanzi::calculateRelativeOrthogonalProjectionMatrixFromValues | ( | float | near, |
float | far, | ||
Camera::FieldOfViewType | fovType, | ||
float | orthoSize, | ||
float | aspectRatio | ||
) |
Creates an orthogonal projection matrix for a symmetrical viewing volume.
near | Camera near value. |
far | Camera far value. |
fovType | Tells whether the orthoSize parameter is the width or height of the viewing box. |
orthoSize | Specifies the size of the viewing box (either width of height). |
aspectRatio | Specifies the aspect ratio of the viewing box. |
KANZI_API Matrix4x4 kanzi::calculatePerspectiveProjectionMatrixFromValues | ( | float | near, |
float | far, | ||
Camera::FieldOfViewType | fovType, | ||
float | fovInDegrees, | ||
float | aspectRatio | ||
) |
Creates a perspective projection matrix for a symmetrical viewing volume.
near | Camera near value. |
far | Camera far value. |
fovType | Tells whether the fovInDegrees parameter is xfov or yfov. |
fovInDegrees | Field of view in degrees. |
aspectRatio | The aspect ratio of the viewport. |
KANZI_API Matrix4x4 kanzi::calculateSubProjection | ( | Matrix4x4 | projection, |
float | relativeOffsetX, | ||
float | relativeOffsetY, | ||
float | relativeSizeX, | ||
float | relativeSizeY | ||
) |
Calculate sub-quad projection of an existing projection matrix.
This is a specific solution for an axis-aligned case.
Old projection matrix = [P00 0 P02 P03] [ 0 P11 P12 P13] [ 0 0 P22 P23] [ 0 0 -1 0]
Traslated and scaled: (x, y) |–> (Ox, Oy) + (Sx * x, Sy * y) [Sx P00, 0, Ox P22 + Sx P02, Ox P23] [ 0, Sy P11, Oy P22 + Sy P12, Oy P23] [ 0, 0, P22, P23] [ 0, 0, -1, 0]
projection | Projection matrix. |
relativeOffsetX | X offset of sub-quad as portion of the size of the projection area. |
relativeOffsetY | Y offset of sub-quad as portion of the size of the projection area. |
relativeSizeX | Projection area X size in regard to sub-quad area size. |
relativeSizeY | Projection area Y size in regard to sub-quad area size. |
Gets tree height from the object node to the parent.
If no parents, height = 1, if single parent, and parent's parent is null, height = 2 and so on.
node | Node the tree height of which to get. |
Gets the root node of the scene graph where the node belongs to or null if node does not belong to any scene graph.
node | Node the root node of which to find. |
Gets the root node of the scene graph where the node belongs to or null if node does not belong to any scene graph.
node | Node the root node of which to find. |
Indicates whether one node is the ancestor of another node at any level in the scene graph hierarchy.
node | Node to indicate whether it is the descendant of the ancestor node. |
shared_ptr<Type> kanzi::findParent | ( | const Node & | node | ) |
Gets nearest parent of specified type.
node | Node the parent of specified type of which to get. |
KANZI_API void kanzi::nodeLookAt | ( | Node3D & | node, |
Vector3 | position, | ||
Vector3 | lookAtPoint, | ||
Vector3 | upVector | ||
) |
Sets node transformation so that the node is in a given position looking at the given point.
position | The new translation of the node. |
lookAtPoint | A point where the node is looking at. |
upVector | The new up vector of the node. |
KANZI_API void kanzi::registerDefaultTypes | ( | ObjectFactory & | objectFactory | ) |
Registers default Kanzi object types in object factory.
FixedString kanzi::toFixedString | ( | Framebuffer::CreateInfo::Status | status | ) |
Returns a human readable description for Framebuffer::CreateInfo::Status.
KANZI_API bool kanzi::isValidFramebufferSize | ( | float | size | ) |
Checks if size is valid framebuffer size.
KANZI_API bool kanzi::isValidFramebufferSize | ( | float | width, |
float | height | ||
) |
KANZI_API unsigned kanzi::toValidFramebufferSize | ( | float | size | ) |
KANZI_API unsigned int kanzi::getFeatures | ( | Framebuffer::AttachmentPoint | attachmentPoint | ) |
KANZI_API int kanzi::getCompressedGLFormat | ( | GraphicsFormat | format | ) |
Returns the GL API internal format enumeration of the kanzi::Format.
int kanzi::acquireUniformLocation | ( | Material & | material, |
string_view | name | ||
) |
Acquire uniform location from a material.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< T > & | value | ||
) |
Type-specific render value update to GPU.
renderer | Renderer to use. |
value | Render value. |
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< bool > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< int > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< float > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< ColorRGBA > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< Vector2 > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< Vector3 > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< Vector4 > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< Matrix3x3 > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValueOverride | ( | Renderer & | renderer, |
const GlRenderValue< Matrix4x4 > & | value | ||
) |
updateRenderValueContainer() specialization.
void kanzi::updateRenderValue | ( | Renderer & | renderer, |
GlRenderValue< T > & | value | ||
) |
Update render value container to GPU.
renderer | Renderer to use. |
value | Render value. |
bool kanzi::updateRenderValue | ( | Renderer & | renderer, |
GlRenderValue< T > & | value, | ||
unsigned int | textureUnit | ||
) |
Update render value container to the GPU.
This method uses given texture unit, and returns whether or not that texture unit was consumed. Only specialized for classes for which texture unit makes sense.
bool kanzi::updateRenderValue | ( | Renderer & | renderer, |
GlRenderValue< TextureSharedPtr > & | value, | ||
unsigned int | textureUnit | ||
) |
updateRenderValueContainer() specialization.
KANZI_API optional<GraphicsElementType> kanzi::toGraphicsElementType | ( | unsigned int | kzbElementType | ) |
KANZI_API optional<GraphicsDataType> kanzi::toGraphicsDataType | ( | unsigned int | kzbMeshVertexAttributeDataType | ) |
KANZI_API optional<GraphicsFormat> kanzi::toGraphicsFormatFromKzbDepthAttachment | ( | int | kzbFormat | ) |
KANZI_API optional<GraphicsFormat> kanzi::toGraphicsFormatFromKzbTextureFormat | ( | unsigned int | kzbTextureFormat | ) |
KANZI_API optional<GraphicsFormat> kanzi::toGraphicsFormatFromKzbImageFormat | ( | unsigned int | kzbFormat | ) |
KANZI_API optional<Sampler::Filter> kanzi::toSamplerFilterFromKzbTextureFilter | ( | unsigned int | kzbTextureFilter | ) |
KANZI_API optional<Sampler::MipmapMode> kanzi::toSamplerMipmapModeFromKzbMipmapMode | ( | unsigned int | kzbMipmapMode | ) |
KANZI_API optional<Sampler::AddressingMode> kanzi::toSamplerAddressingModeFromKzbWrapMode | ( | unsigned int | kzbWrapMode | ) |
|
inline |
|
inline |
T kanzi::acquireRenderValueFromPropertyDefault | ( | AbstractPropertyType | abstractProperty, |
Node * | node, | ||
Object * | object, | ||
Material & | material | ||
) |
Default implementation for acquiring value for property notification handlers.
handler | Handler to access node from. |
object | Fallback object for property value. |
material | Fallback material for property value. |
T kanzi::acquireRenderValueFromProperty | ( | AbstractPropertyType | abstractProperty, |
Node * | node, | ||
Object * | object, | ||
Material & | material, | ||
ShaderProgram::UniformTransformation | |||
) |
Default implementation for acquiring value for property notification handlers.
acquireRenderValueFromProperty() specialization.
handler | Handler to access node from. |
object | Fallback object for property value. |
material | Fallback material for property value. |
transformation | Shader transformation for uniform values. |
GraphicsBlendMode kanzi::acquireRenderValueFromProperty | ( | AbstractPropertyType | abstractProperty, |
Node * | node, | ||
Object * | object, | ||
Material & | material, | ||
ShaderProgram::UniformTransformation | |||
) |
acquireRenderValueFromProperty() specialization.
acquireRenderValueFromProperty() specialization.
handler | Handler to access node from. |
object | Fallback object for property value. |
material | Fallback material for property value. |
transformation | Shader transformation for uniform values. |
ColorRGBA kanzi::acquireRenderValueFromProperty | ( | AbstractPropertyType | abstractProperty, |
Node * | node, | ||
Object * | object, | ||
Material & | material, | ||
ShaderProgram::UniformTransformation | |||
) |
acquireRenderValueFromProperty() specialization.
acquireRenderValueFromProperty() specialization.
handler | Handler to access node from. |
object | Fallback object for property value. |
material | Fallback material for property value. |
transformation | Shader transformation for uniform values. |
TextureSharedPtr kanzi::acquireRenderValueFromProperty | ( | AbstractPropertyType | abstractProperty, |
Node * | node, | ||
Object * | object, | ||
Material & | material, | ||
ShaderProgram::UniformTransformation | |||
) |
acquireRenderValueFromProperty() specialization.
acquireRenderValueFromProperty() specialization.
handler | Handler to access node from. |
object | Fallback object for property value. |
material | Fallback material for property value. |
transformation | Shader transformation for uniform values. |
|
inline |
KANZI_API unsigned int kanzi::getAttributeDimension | ( | VertexAttribute::Semantic | attribute | ) |
KANZI_API FixedString kanzi::toFixedString | ( | Sampler::Filter | filter | ) |
KANZI_API FixedString kanzi::toFixedString | ( | Sampler::MipmapMode | mipmapMode | ) |
KANZI_API BitmapImageUniquePtr kanzi::captureCurrentFramebufferToImage | ( | unsigned int | width, |
unsigned int | height, | ||
GraphicsFormat | format | ||
) |
Capture the current framebuffer to an image.
width | Capture area width. |
height | Capture area height. |
format | Graphics format to capture with. |
KANZI_API BitmapImageUniquePtr kanzi::captureScreenToImage | ( | Renderer & | renderer, |
unsigned int | width, | ||
unsigned int | height, | ||
GraphicsFormat | format | ||
) |
Capture the screen (default framebuffer) to an image.
width | Capture area width. |
height | Capture area height. |
format | Graphics format to capture with. |
|
inline |
KANZI_API ShaderProgram::FixedUniform kanzi::toFixedUniform | ( | string_view | uniformName | ) |
Gets FixedUniform from given string.
uniformName | Name of fixed uniform. |
|
inline |
ShaderProgram::CreateInfo kanzi::loadShaderProgramCreateInfo | ( | Domain * | domain, |
KzbFile & | kzbFile, | ||
ReadOnlyMemoryFile & | file, | ||
KzbMemoryParser & | parser, | ||
string_view | name | ||
) |
ShaderProgram::CreateInfo kanzi::loadShaderProgramCreateInfo | ( | Domain * | domain, |
KzcInputStream * | inputStream, | ||
const KzuBinaryFileInfo * | file | ||
) |
KANZI_API FixedString kanzi::getVerboseDescription | ( | ShaderProgram::CreateInfo::Status | status | ) |
Returns human readable description for ShaderProgram CreateInfo status.
status | Status |
KANZI_API unsigned int kanzi::getFaceCount | ( | Texture::Type | type | ) |
KANZI_API unsigned int kanzi::getGLTextureImageTarget | ( | Texture::Type | type, |
unsigned int | face | ||
) |
KANZI_API unsigned int kanzi::getGLTextureTarget | ( | Texture::Type | type | ) |
KANZI_API TextureSharedPtr kanzi::createTextureFromMemory | ( | Domain * | domain, |
unsigned int | width, | ||
unsigned int | height, | ||
GraphicsFormat | sourceFormat, | ||
const void * | data, | ||
GraphicsFormat | destinationFormat, | ||
string_view | name | ||
) |
Loads a new image from memory and creates a texture out of it.
domain | Domain to use. |
width | Width of the image. |
height | Height of the image. |
sourceFormat | Graphics surface format of the source data. |
data | Pointer to the source data in memory. |
destinationFormat | Graphics surface format to convert image data to. Use sourceFormat to skip surface format conversion. |
name | Name for the texture. |
KANZI_API unsigned int kanzi::calculateMipmapLevelCount | ( | unsigned int | width, |
unsigned int | height | ||
) |
Calculates number of mipmap levels for provided image size.
width | Width of the image. |
height | Height of the image. |
|
inline |
Texture::CreateInfo kanzi::loadTextureCreateInfo | ( | Domain * | domain, |
KzbFile & | kzbFile, | ||
ReadOnlyMemoryFile & | file, | ||
KzbMemoryParser & | parser | ||
) |
Texture::CreateInfo kanzi::loadTextureCreateInfo | ( | Domain * | domain, |
KzcInputStream * | inputStream, | ||
const KzuBinaryFileInfo * | file | ||
) |
KANZI_API FixedString kanzi::getVerboseDescription | ( | Texture::CreateInfo::Status | status | ) |
Returns human readable description for CreateInfo status.
status | Status |
KANZI_API void kanzi::loadPrefabAsync | ( | const Node & | node, |
ResourceID | prefabResourceId, | ||
ResourceManager::AsyncAcquireFinishedCallback | callback | ||
) |
Acquires prefab and required nested resources recursively.
Callback is executed when all required resources have been acquired.
KANZI_API void kanzi::collectResourceUrls | ( | const PrefabTemplate & | prefabTemplate, |
const Node & | node, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collects URLs from all resource properties that are used by the nodes in a prefab template.
If the nodes contain nested prefab templates (i.e. prefab placeholders) or node components, collects URLs also from those. For resources set with resource IDs, resolves their URLs by looking up in the prefab and node tree, and then collects them too.
prefabTemplate | The prefab template instance. |
node | Node where the template will be instantiated. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrlsFromStateManagers | ( | const PrefabTemplate & | prefabTemplate, |
const Node & | node, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Looks up resource properties of type StateManager in the nodes of a prefab template.
Acquires them, and then collects URLs from all their resource properties. Typically called after acquiring the collected urls of a prefab template, for a deeper collection. For resources set with resource IDs, resolves their URLs by looking up in the prefab and node tree, and then collects them too.
prefabTemplate | The prefab template instance. |
node | Node where the template will be instantiated. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | const PrefabTemplate & | prefabTemplate, |
ResourceManager::UrlContainer & | urls | ||
) |
Collects URLs from all resource properties that are used by the nodes in a prefab template.
If the nodes contain nested prefab templates (i.e. prefab placeholders) or node components, collects URLs also from those. For resources set with resource IDs, resolves their URLs by looking up in the prefab tree, and then collects them too.
prefabTemplate | The prefab template. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | const PrefabTemplateNode & | prefabTemplateNode, |
ResourceManager::UrlContainer & | urls | ||
) |
Collects URLs from all resource properties that are used by a prefab template node and its children.
If the nodes contain nested prefab templates (i.e. prefab placeholders) or node components, collects URLs also from those. For resources set with resource IDs, resolves their URLs by looking up in the prefab tree, and then collects them too.
prefabTemplateNode | The prefab template node. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrlsFromStateManagers | ( | const PrefabTemplate & | prefabTemplate, |
ResourceManager::UrlContainer & | urls | ||
) |
Looks up resource properties of type StateManager in the nodes of a prefab template.
Acquires them, and then collects URLs from all their resource properties. Typically called after acquiring the collected urls of a prefab template, for a deeper collection. For resources set with resource IDs, resolves their URLs by looking up in the prefab tree, and then collects them too.
prefabTemplate | The prefab template instance. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | const ResourceDictionary & | resourceDictionary, |
ResourceManager::UrlContainer & | urls | ||
) |
Collects the URLs from a resource dictionary.
If the resource dictionary has nested dictionary, collects URLs also from those.
resourceDictionary | The resource dictionary. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | ResourceManager * | resourceManager, |
string_view | hostname, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collect resource urls from a named file.
resourceManager | Resource manager to collect from. |
hostname | KZB hostname part of the URL. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrlsFromPrefabTemplateUrl | ( | ResourceManager * | resourceManager, |
string_view | prefabTemplateUrl, | ||
const Node & | node, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collects URLs from all resource properties that are used by the nodes in a prefab template.
If the nodes contain nested prefab templates (i.e. prefab placeholders) or node components, collects URLs also from those. For resources set with resource IDs, resolves their URLs by looking up in the prefab and node tree, and then collects them too.
resourceManager | The resource manager. |
prefabTemplateUrl | The URL of a prefab template. For example "kzb://asynchronous_loading/Prefabs/Prefab that uses many textures". |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrlsFromPrefabTemplateUrl | ( | ResourceManager * | resourceManager, |
string_view | prefabTemplateUrl, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collects URLs from all resource properties that are used by the nodes in a prefab template.
If the nodes contain nested prefab templates (i.e. prefab placeholders) or node components, collects URLs also from those. For resources set with resource IDs, resolves their URLs by looking up in the prefab tree, and then collects them too.
resourceManager | The resource manager. |
prefabTemplateUrl | The URL of a prefab template. For example "kzb://asynchronous_loading/Prefabs/Prefab that uses many textures". |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrlsFromPrefabTemplateNodeResourceDictionaryUrls | ( | ResourceManager * | resourceManager, |
string_view | prefabTemplateNodeUrls, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collects the URLs of resources from the resource dictionaries of the prefab templates you specify.
resourceManager | The resource manager. |
prefabTemplateNodeUrls | Semicolon separated list of urls to prefab template nodes. For example "kzb://preloading_test/Prefabs/Empty Node 2D/Empty Node 2D;kzb://preloading_text/Prefabs/Stack Layout 2D/Stack Layout 2D". |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | ResourceManager * | resourceManager, |
KzuBinaryDirectory * | binaryDirectory, | ||
ResourceManager::UrlContainer & | urls | ||
) |
Collects the URLs of all resources in the binary directory you specify.
resourceManager | The resource manager. |
binaryDirectory | The binary directory of the .kzb that you want to preload. |
urls | A container where the collected URLs will be added. |
KANZI_API void kanzi::collectResourceUrls | ( | ResourceManager * | resourceManager, |
ResourceManager::UrlContainer & | urls | ||
) |
Collects the URLs of all resources from all the binary directories that have been added to the resource manager.
This includes resources you did not include in the resource dictionaries of specific nodes.
resourceManager | The resource manager. |
urls | A container where the collected URLs will be added. |
Registers default resources in the resource manager and Screen node's dictionary.
KANZI_API void kanzi::registerNodeComponentLoader | ( | ObjectLoader & | objectLoader, |
const Metaclass * | metaclass | ||
) |
void kanzi::registerNodeComponentLoaders | ( | ObjectLoader & | objectLoader | ) |
Registers node component template loaders for build-in node component types.
objectLoader | Object loader where to register loading of node components. |
|
inline |
|
inline |
|
inline |
KANZI_API const NativeDeploymentTarget kanzi::NativeDeploymentTargetDefault |
The default native deployment target.
KANZI_API const TextureSwizzleMask kanzi::SwizzleMaskRGBToLuminanceAlpha |
Mask all of the color channels with red.
KANZI_API const TextureSwizzleMask kanzi::SwizzleMaskLuminanceToRGBA |
Mask all of the color channels with alpha.
const NativeEventHandle kanzi::invalidEventHandle |