⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 v4nodepools.h

📁 一个用于智能手机的多媒体库适合S60 WinCE的跨平台开发库
💻 H
字号:
/*  V4NodePools    List all the Node pools for each possible node tag*/#include "safe_include.h"#include <gpac/scenegraph.h>#include <gpac/nodes_mpeg4.h>#include <vector>#include "V4NodePool.h"using namespace std;enum {  DICT_GEN = 0,  DICT_GEOMETRY,  DICT_APPEARANCE,  DICT_TEXTURE,  DICT_MATERIAL,  DICT_LAST // last element, gives the actual number of pool};class V4NodePools {  public:    // Constructor    V4NodePools();    // gets the correct pool from the given tag    V4NodePool& pool(const u32 tag);    V4NodePool& poolFromFieldName(const char * name);    u32 poolN(const u32 tag);    // clears all the pools    void Clear();    // Adds a node to the correct pool    void Add(GF_Node * node);    // tells if nodes as field of the given type    bool NodeHasField(GF_Node * node, u32 fieldType);        // returns the total number of nodes created for that type of node    u32 GetCount(const u32 tag);  private:    vector<V4NodePool> pools;    unsigned int unPooled;};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -