下载此文档

vega实用编程手册.doc


文档分类:IT计算机 | 页数:约13页 举报非法文档有奖
1/13
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/13 下载此文档
文档列表 文档介绍
VEGA实用编程手册
Vega结构类
VGTYPE_CHAN VGTYPE_MOTION
VGTYPE_WINDOW VGTYPE_GFX
VGTYPE_OBSERV VGTYPE_ENV
VGTYPE_SCENE VGTYPE_ISECTOR
VGTYPE_SYSTEM VGTYPE_VOL
VGTYPE_OBJECT VGTYPE_LIGHT
VGTYPE_DBM VGTYPE_FOG
VGTYPE_PLAYER VGTYPE_ENVFX
VGTYPE_IODEV VGTYPE_POS
VGTYPE_TFLOD
VGTYPE_PART
VGTYPE_DATASET
VGTYPE_CLASSDEF
VGTYPE_CTAB
VGTYPE_DLIST
VGTYPE_IOMAP
VGTYPE_MCODE
VGTYPE_LIST
函数命明规则
vgNewXXX
vgFindXXX
vgGetXXX
vgGetNumXXX
vgNewXXXCopy
vgSrcAssoc(source, association);
‘vg’ is our product code
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be made
Example
/*declare variables*/
vgChannel *channel;
vgWindow *window;
/*get a pointer to the existing instance created thru the ADF*/
channel=vgGetChan(0);
window=vgGetWin(0);
/*associate the window with the channel*/
vgChanWin(channel, window);
vgAddSrcAssoc(source, association);
‘vg’(I think you’ve got it now)
‘Add’ is the action adding another association to our source
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be added
Example
/*declare variables*/
vgChannel *channel;
vgObserver *observer;
/*get a pointer to the existing instance created thru the ADF*/
channel=vgGetChan(0);
observer=vgGetObserv(0);
/*add the observer to the channel*/
vgAddObervChan(observer, channel);
vgRemSrcAssoc(source, association);
‘Rem’ is the action: removing an association from our source
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be removed
Example
/*declare variables*/
vgChannel *channel;
vgObserver *observer;
/*get a pointer to the existing instance in ADF*/
channel=vgGetChan(0);
observer=vgGetObserv(0);
/*remove the channel from the observer*/
vgRemObservChan(observerl, channel);
vgGetSrcAssoc(source, index);
‘Get’ is the action: getting the handle of an association to our source.
‘Src’ is the placeholder of t

vega实用编程手册 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数13
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xunlai783
  • 文件大小454 KB
  • 时间2017-12-18