惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
SegmentFault 最新的问题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Attack and Defense Labs
Attack and Defense Labs
F
Full Disclosure
Vercel News
Vercel News
N
News | PayPal Newsroom
The GitHub Blog
The GitHub Blog
H
Hacker News: Front Page
H
Heimdal Security Blog
P
Privacy International News Feed
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cisco Blogs
L
Lohrmann on Cybersecurity
D
Docker
Recent Announcements
Recent Announcements
Security Archives - TechRepublic
Security Archives - TechRepublic
人人都是产品经理
人人都是产品经理
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
博客园 - 叶小钗
Google Online Security Blog
Google Online Security Blog
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
S
Secure Thoughts
博客园 - Franky
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
P
Palo Alto Networks Blog
Latest news
Latest news
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
Last Week in AI
Last Week in AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cyberwarzone
Cyberwarzone
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Threatpost
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学

博客园 - cloudseawang

选择 latex math \sum的写法 - cloudseawang - 博客园 qt 4.8.5 vs 2012编译 Graphical Cognition graphical perception When to Use Bar Charts Instead of Pie Charts There's no Qt version assigned to this project for platform Win32. Please use the 'change Qt version' feature and choose a valid Qt version for this 转Tutorial papers for MRF, CRF and DRF 转 QT无法定位程序输入点*于动态链接库 QtCore4.dll 难道一直是4 4 2 3的命? bibtex to bibitem 再次被rejected qt ogl添加keyevent 牛年最后一天的rejection cg fp40的问题 cg又一个数据绑定错误 cg纹理绑定顺序的一个错误 qt +vs2005开发
cg 如何给结构体数组赋值 - cloudseawang - 博客园
cloudseawang · 2009-07-25 · via 博客园 - cloudseawang

以前没用过,今天折腾了很久才学会。

    CGparameter Param = cgGetNamedParameter(m_raycastFrag, "aaa"); //读structure of array参数

       cgSetArraySize(Param,num);//设置数组大小

for (int i=0;i<num;i++)

{    

     CGparameter GaussIParam = cgGetArrayParameter(GaussParam,i);//读每一个strucut参数

    cgGLSetParameter2f(cgGetNamedStructParameter(GaussIParam,"center"),a,b);//读结构体的参数center,并赋值

}

发现一个问题:cg的文档,相对cuda而言,要少很多,尤其是一些高级用法。