游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1382|回复: 0

Managed DirectX中Direct3D::Font::DrawText重载函数的问题

[复制链接]

1

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2010-3-1 11:08:00 | 显示全部楼层 |阅读模式
如题,我在.Net中使用Managed DirectX,用到了Direct3D::Font:rawText这个
然后有下面两个重载
DrawText(Sprite ^sprite,String ^text,Rectangle rect,DrawTextFormat format,Color color);
DrawText(Sprite ^sprite,String ^text,Rectangle %rect,DrawTextFormat format,Color color);

我这样用
Rectangle rect;
DrawText(sprite,text,rect,format,color);
然后编译器报错调用函数不明确

于是我如何表明这个rect是引用还是不引用。。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-12 18:39

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表