(API Change) Rename obs_sceneitem_info structure
Change obs_sceneitem_info structure to obs_transform_info - this structure will not just be used with scene items in the future.
This commit is contained in:
@@ -837,7 +837,7 @@ void obs_sceneitem_get_bounds(obs_sceneitem_t item, struct vec2 *bounds)
|
||||
}
|
||||
|
||||
void obs_sceneitem_get_info(obs_sceneitem_t item,
|
||||
struct obs_sceneitem_info *info)
|
||||
struct obs_transform_info *info)
|
||||
{
|
||||
if (item && info) {
|
||||
info->pos = item->pos;
|
||||
@@ -851,7 +851,7 @@ void obs_sceneitem_get_info(obs_sceneitem_t item,
|
||||
}
|
||||
|
||||
void obs_sceneitem_set_info(obs_sceneitem_t item,
|
||||
const struct obs_sceneitem_info *info)
|
||||
const struct obs_transform_info *info)
|
||||
{
|
||||
if (item && info) {
|
||||
item->pos = info->pos;
|
||||
|
@@ -106,7 +106,7 @@ enum obs_bounds_type {
|
||||
OBS_BOUNDS_MAX_ONLY, /**< no scaling, maximum size only */
|
||||
};
|
||||
|
||||
struct obs_sceneitem_info {
|
||||
struct obs_transform_info {
|
||||
struct vec2 pos;
|
||||
float rot;
|
||||
struct vec2 scale;
|
||||
@@ -827,9 +827,9 @@ EXPORT uint32_t obs_sceneitem_get_bounds_alignment(obs_sceneitem_t item);
|
||||
EXPORT void obs_sceneitem_get_bounds(obs_sceneitem_t item, struct vec2 *bounds);
|
||||
|
||||
EXPORT void obs_sceneitem_get_info(obs_sceneitem_t item,
|
||||
struct obs_sceneitem_info *info);
|
||||
struct obs_transform_info *info);
|
||||
EXPORT void obs_sceneitem_set_info(obs_sceneitem_t item,
|
||||
const struct obs_sceneitem_info *info);
|
||||
const struct obs_transform_info *info);
|
||||
|
||||
EXPORT void obs_sceneitem_get_draw_transform(obs_sceneitem_t item,
|
||||
struct matrix4 *transform);
|
||||
|
Reference in New Issue
Block a user