示例#1
0
        internal static MyOcclusionQueryRender Get(string debugName)
        {
            var query = new MyOcclusionQueryRender()
            {
                Query         = MyQueryFactory.CreateOcclusionQuery(debugName),
                Size          = 1.0f,
                NextQueryTime = 0
            };

            m_queries.Add(query);
            return(query);
        }
示例#2
0
 internal static void Remove(MyOcclusionQueryRender query)
 {
     m_queries.Remove(query);
     query.Query.Destroy();
 }