文章作者:里海
来源网站:https://blog.csdn.net/WangPaiFeiXingYuan
简介:
返回视图中的可见对象UF_VIEW_ask_visible_objects
效果:
代码:
#include "me.hpp"
using namespace std;
//获取view视图的可见对象
//view = NULL_TAG 当前视图
vector<tag_t> GetViewVisibleObjects(tag_t view)
{
vector<tag_t> objects;
int n_visible = 0;
tag_t* visibleObj = NULL;
int n_clipped = 0;
tag_t* clipped = NULL;
UF_VIEW_ask_visible_objects(view, &n_visible, &visibleObj, &n_clipped, &clipped);
fo