(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:
jp9000
2014-08-01 23:33:45 -07:00
parent 2f21e2a450
commit 24bd82a09c
4 changed files with 20 additions and 20 deletions

View File

@@ -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;

View File

@@ -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);