66#ifndef ULTRALIGHT_CAPI_IMAGESOURCE_H
67#define ULTRALIGHT_CAPI_IMAGESOURCE_H
98 unsigned int texture_id,
ULRect texture_uv,
Various defines and utility functions for the C API.
struct C_ImageSource * ULImageSource
Definition CAPI_Defines.h:76
struct C_String * ULString
Definition CAPI_Defines.h:65
#define ULExport
Definition CAPI_Defines.h:38
struct C_Bitmap * ULBitmap
Definition CAPI_Defines.h:64
ULExport ULImageSource ulCreateImageSourceFromTexture(unsigned int width, unsigned int height, unsigned int texture_id, ULRect texture_uv, ULBitmap bitmap)
Create an image source from a GPU texture with optional backing bitmap.
ULExport ULImageSource ulCreateImageSourceFromBitmap(ULBitmap bitmap)
Create an image source from a bitmap.
ULExport void ulDestroyImageSource(ULImageSource image_source)
Destroy an image source.
ULExport void ulImageSourceInvalidate(ULImageSource image_source)
Invalidate the image source, notifying the library that the image has changed and should be redrawn.
ULExport void ulImageSourceProviderRemoveImageSource(ULString id)
Remove an image source from the provider.
ULExport void ulImageSourceProviderAddImageSource(ULString id, ULImageSource image_source)
Add an image source to the provider.
Definition CAPI_Defines.h:250