63#ifndef ULTRALIGHT_CAPI_IMAGESOURCE_H
64#define ULTRALIGHT_CAPI_IMAGESOURCE_H
95 unsigned int texture_id,
ULRect texture_uv,
unsigned int ulImageSourceGetWidth(ULImageSource image_source)
Get the width of the image source in pixels.
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.
void ulImageSourceInvalidate(ULImageSource image_source)
Invalidate the image source, notifying the library that the image has changed and should be redrawn.
void ulImageSourceProviderAddImageSource(ULString id, ULImageSource image_source)
Add an image source to the provider.
ULBitmap ulImageSourceGetBitmap(ULImageSource image_source)
Get the backing bitmap for this image source.
ULImageSource ulCreateImageSourceFromBitmap(ULBitmap bitmap)
Create an image source from a bitmap.
void ulDestroyImageSource(ULImageSource image_source)
Destroy an image source previously created with ulCreateImageSourceFromTexture() or ulCreateImageSour...
unsigned int ulImageSourceGetHeight(ULImageSource image_source)
Get the height of the image source in pixels.
ULRect ulImageSourceGetTextureUV(ULImageSource image_source)
Get the UV coordinates of the texture for this image source.
unsigned int ulImageSourceGetTextureId(ULImageSource image_source)
Get the GPU texture identifier for this image source.
ULImageSource ulImageSourceProviderGetImageSource(ULString id)
Get an image source from the provider by its identifier.
void ulImageSourceProviderRemoveImageSource(ULString id)
Remove an image source from the provider.
Various defines and utility functions for the C API.
struct C_ImageSource * ULImageSource
Opaque handle to an ImageSource object.
Definition CAPI_Defines.h:131
struct C_String * ULString
Opaque handle to a String object.
Definition CAPI_Defines.h:96
#define ULExport
Definition CAPI_Defines.h:42
struct C_Bitmap * ULBitmap
Opaque handle to a Bitmap object.
Definition CAPI_Defines.h:93
Float rectangle defined by left, top, right, and bottom coordinates.
Definition CAPI_Defines.h:538