Configuration for drawable surfaces and windows. More...
#include <system/debug/kzs_error.h>
#include <system/display/kzs_surface.h>
#include <system/kzs_header.h>
Classes | |
struct | KzsSurfaceProperties |
Properties for a surface. More... | |
Macros | |
#define | KZS_SURFACE_TARGET_NATIVE_ANDROID |
Native android surface target. More... | |
#define | KZS_SURFACE_TARGET_NATIVE_PIXMAP |
Native pixmap target. More... | |
#define | KZS_SURFACE_TARGET_TEXTURE_2D |
Texture2D target. More... | |
#define | KZS_SURFACE_ATTRIBUTE_WIDTH |
Width attribute. More... | |
#define | KZS_SURFACE_ATTRIBUTE_HEIGHT |
Height attribute. More... | |
#define | KZS_SURFACE_ATTRIBUTE_MATCH_FORMAT |
Match format (color format) attribute. More... | |
#define | KZS_SURFACE_ATTRIBUTE_IMAGE_PRESERVED |
Is image preserved over frames. More... | |
#define | KZS_SURFACE_ATTRIBUTE_NONE |
Ends the array specification. More... | |
#define | KZS_SURFACE_ATTRIBUTE_FORMAT_RGBA_8888 |
RGBA8888 format. More... | |
#define | KZS_SURFACE_ATTRIBUTE_FORMAT_RGB_565 |
RGB565 format. More... | |
#define | KZS_SURFACE_ATTRIBUTE_TEXTURE_LEVEL |
Texture level. More... | |
Enumerations | |
enum | KzsSurfaceType { KZS_SURFACE_TYPE_DEFAULT, KZS_SURFACE_TYPE_VG_ONLY, KZS_SURFACE_TYPE_ES2_ONLY, KZS_SURFACE_TYPE_GL_ONLY, KZS_SURFACE_TYPE_VG_AND_ES2 } |
Graphics languages for a surface. More... | |
enum | KzsSwapBehavior { KZS_SWAP_BEHAVIOR_DONT_CARE, KZS_SWAP_BEHAVIOR_COPY, KZS_SWAP_BEHAVIOR_EXCHANGE } |
Functions | |
struct KzsSurfaceProperties | kzsSurfaceGetDefaultProperties (void) |
Gets default properties for surface. More... | |
kzsError | kzsSurfacePropertiesLog (const struct KzsSurfaceProperties *properties, kzString prefix, kzUint logLevel) |
Logs the surface properties. More... | |
kzsError | kzsSurfaceConfigurationCreate (const struct KzsDesktop *desktop, const struct KzsSurfaceProperties *surfaceProperties, struct KzsSurfaceConfiguration **out_configuration) |
Creates a configuration for surfaces for a windows. More... | |
kzsError | kzsSurfaceConfigurationDelete (struct KzsSurfaceConfiguration *configuration) |
Deletes a surface configuration and frees all memory allocated for it. More... | |
const struct KzsSurfaceConfigurationNative * | kzsSurfaceConfigurationGetNative (const struct KzsSurfaceConfiguration *configuration) |
Gets native portion of a surface configuration. More... | |
kzsError | kzsSurfaceConfigurationNativeCreate (const struct KzsDesktop *desktop, const struct KzsSurfaceProperties *surfaceProperties, struct KzsSurfaceConfigurationNative **out_configurationNative) |
Creates a native surface configuration. More... | |
kzsError | kzsSurfaceConfigurationNativeDelete (struct KzsSurfaceConfigurationNative *configurationNative) |
Deletes a native surface configuration and frees all memory allocated for it. More... | |
Configuration for drawable surfaces and windows.
Copyright 2008-2020 by Rightware. All rights reserved.
#define KZS_SURFACE_TARGET_NATIVE_ANDROID |
Native android surface target.
#define KZS_SURFACE_TARGET_NATIVE_PIXMAP |
Native pixmap target.
#define KZS_SURFACE_TARGET_TEXTURE_2D |
Texture2D target.
#define KZS_SURFACE_ATTRIBUTE_WIDTH |
Width attribute.
#define KZS_SURFACE_ATTRIBUTE_HEIGHT |
Height attribute.
#define KZS_SURFACE_ATTRIBUTE_MATCH_FORMAT |
Match format (color format) attribute.
#define KZS_SURFACE_ATTRIBUTE_IMAGE_PRESERVED |
Is image preserved over frames.
#define KZS_SURFACE_ATTRIBUTE_NONE |
Ends the array specification.
#define KZS_SURFACE_ATTRIBUTE_FORMAT_RGBA_8888 |
RGBA8888 format.
#define KZS_SURFACE_ATTRIBUTE_FORMAT_RGB_565 |
RGB565 format.
#define KZS_SURFACE_ATTRIBUTE_TEXTURE_LEVEL |
Texture level.
enum KzsSurfaceType |
Graphics languages for a surface.
enum KzsSwapBehavior |
struct KzsSurfaceProperties kzsSurfaceGetDefaultProperties | ( | void | ) |
Gets default properties for surface.
kzsError kzsSurfacePropertiesLog | ( | const struct KzsSurfaceProperties * | properties, |
kzString | prefix, | ||
kzUint | logLevel | ||
) |
Logs the surface properties.
kzsError kzsSurfaceConfigurationCreate | ( | const struct KzsDesktop * | desktop, |
const struct KzsSurfaceProperties * | surfaceProperties, | ||
struct KzsSurfaceConfiguration ** | out_configuration | ||
) |
Creates a configuration for surfaces for a windows.
kzsError kzsSurfaceConfigurationDelete | ( | struct KzsSurfaceConfiguration * | configuration | ) |
Deletes a surface configuration and frees all memory allocated for it.
const struct KzsSurfaceConfigurationNative* kzsSurfaceConfigurationGetNative | ( | const struct KzsSurfaceConfiguration * | configuration | ) |
Gets native portion of a surface configuration.
kzsError kzsSurfaceConfigurationNativeCreate | ( | const struct KzsDesktop * | desktop, |
const struct KzsSurfaceProperties * | surfaceProperties, | ||
struct KzsSurfaceConfigurationNative ** | out_configurationNative | ||
) |
Creates a native surface configuration.
kzsError kzsSurfaceConfigurationNativeDelete | ( | struct KzsSurfaceConfigurationNative * | configurationNative | ) |
Deletes a native surface configuration and frees all memory allocated for it.