KzuBrushResource is the base class for brushes used in layers. More...
#include <kanzi/resource/resource.hpp>
#include <kanzi/node/abstract_resource_reference.hpp>
#include <kanzi/graphics_2d/brush.hpp>
#include <system/debug/kzs_error.h>
#include <kanzi/platform/memory.hpp>
Classes | |
class | kanzi::BrushResource |
Namespaces | |
kanzi | |
Typedefs | |
typedef shared_ptr< BrushResource > | kanzi::BrushResourceSharedPtr |
Functions | |
KANZI_API kzsError | kzuBrushResourceCreate (kanzi::Domain *domain, kanzi::string_view name, kanzi::BrushResource **out_brushResource) |
Creates a brush resource that houses a brush. More... | |
KANZI_API kanzi::BrushResourceSharedPtr | kzuBrushResourceCreateFromBrush (kanzi::Domain *domain, kanzi::BrushSharedPtr brush) |
Creates a brush resource from given brush. More... | |
KANZI_API kzsError | kzuBrushResourceLoadFromKZB (kanzi::BrushResource *brushResource, struct KzcInputStream *inputStream, const struct KzuBinaryFileInfo *file) |
Loads brush resource from KZB. More... | |
KANZI_API kanzi::Brush * | kzuBrushResourceGetBrush (const kanzi::BrushResource *brush) |
Access brush resource from brush. More... | |
KzuBrushResource is the base class for brushes used in layers.
The objective is to provide a polymorphic resource used to fill areas.
Copyright 2008-2020 by Rightware. All rights reserved.
KANZI_API kzsError kzuBrushResourceCreate | ( | kanzi::Domain * | domain, |
kanzi::string_view | name, | ||
kanzi::BrushResource ** | out_brushResource | ||
) |
Creates a brush resource that houses a brush.
resourceManager | The resource manager to use. |
name | Name of the new image texture. |
loader | Resource loader to use for loading the resource. |
out_brushResource | A pointer that is set to point to the new brush resource. |
KANZI_API kanzi::BrushResourceSharedPtr kzuBrushResourceCreateFromBrush | ( | kanzi::Domain * | domain, |
kanzi::BrushSharedPtr | brush | ||
) |
Creates a brush resource from given brush.
resourceManager | The resource manager to use. |
brush | Brush to use inside this brush resource. |
KANZI_API kzsError kzuBrushResourceLoadFromKZB | ( | kanzi::BrushResource * | brushResource, |
struct KzcInputStream * | inputStream, | ||
const struct KzuBinaryFileInfo * | file | ||
) |
Loads brush resource from KZB.
brushResource | Brush resource. |
inputStream | Input stream to load from. |
file | File information. |
KANZI_API kanzi::Brush* kzuBrushResourceGetBrush | ( | const kanzi::BrushResource * | brush | ) |
Access brush resource from brush.