如何为触摸设计器构建c ++组件 [英] How to build a c++ component for touch designer

查看:93
本文介绍了如何为触摸设计器构建c ++组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用d3d11正确构建项目符号物理,使用code :: blocks或Visual Studio.o构建一个c ++ Channel-Operator(像BulletChop这样的dll文件),我... ...







我想写的是Touchdesigner中的Chop(Channel运算符),它只能用c ++编译器构建物理组件是用c ++编写的,它使用Bullet Physics和d3d11,从Touch Designer中获得一个简单的游戏。问题是我得到了太多的编译器错误..所以我在VS2010停止后默认为代码块 -





当我再次尝试构建BulletChop时......这就是我所看到的。

BulletCHOP.h(69):错误C2719:'pos':带有__declspec的形式参数(对齐('16) '))不会对齐





这里是负责错误的片段...



  void  addBody(btVector3 pos,btVector3 rot,btVector3 scale,btScalar mass ); 
void addPlane(btVector3 pos,btVector3 rot);

解决方案

< blockquote>你的类型btVector3的编译设置有点错误。更改类型的声明及其装饰。





http://msdn.microsoft.com/de-de/library/373ak2y1.aspx [ ^ ]


How to correctly build bullet physics with d3d11 to build a c++ Channel-Operator (a dll file like BulletChop ) for TouchDesigner using code::blocks, or Visual Studio.o I...



What i was trying to write was a Chop (Channel operator) inside Touchdesigner, that can only be built with a c++ compiler as the physics component is written in c++, which uses Bullet Physics and d3d11 and get a simple game to work from within Touch Designer; the trouble is i get way too many compiler errors .. so i defaulted to code blocks after coming to a stop with VS2010 –


when i try to Build BulletChop Again .. this is what i see, .
BulletCHOP.h(69): error C2719: 'pos': formal parameter with __declspec(align('16')) won't be aligned


here is the snippet thats responsible for the error ...

void addBody(btVector3 pos, btVector3 rot, btVector3 scale, btScalar mass);
void addPlane(btVector3 pos, btVector3 rot);

解决方案

your compilation settings for the type btVector3 are somehow wrong. Change the declaration of the type and its decoration.


http://msdn.microsoft.com/de-de/library/373ak2y1.aspx[^]


这篇关于如何为触摸设计器构建c ++组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆