游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4633|回复: 3

???2D??????????

[复制链接]

5

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2008-8-28 10:30:00 | 显示全部楼层 |阅读模式
??????????????????????????????????????????V18???????????????2D?????????????????????????????????Draw???????
??????????DoSomeThing(const Color3f& color) // ??
{
   newColor = color * 0.75f ;
   ???
}
???Color3f??operator * ??? const Color3f&?
????DoSomeThing(Color3f& color) ?????
?????????????????????
????*Contorl += ????????????????????Control->AddObject(something)???????????????????????????^_^?????????????????
?????????Property?DefEvent?????????????????:-)????C++???????Property?
????????????ont???????????????????????Label?
????????????????????????????????????????????????????????????????????
????????

2万

主题

2万

帖子

6万

积分

论坛元老

Rank: 8Rank: 8

积分
66489
QQ
发表于 2008-8-28 11:12:00 | 显示全部楼层

Re:???2D??????????

Draw/Update???????????,Label?GUI???????

??????????Draw????????Label?????

????????TileFont,??DrawString/DrawFormat.

?????Control+=new Label(x,y,string);????????????Label::Caption.



????????????????????new/draw/update/in_event/out_event/delete????????????
?????????????new??????????????????????????????????????????????????????????????????draw/update/in_event/out_event/delete?

draw:??
update:???????
in_event:?????????????????????
out_event:?????????????????


??Add?+=??????????????????
Color *???????

2万

主题

2万

帖子

6万

积分

论坛元老

Rank: 8Rank: 8

积分
66489
QQ
发表于 2008-8-28 11:14:00 | 显示全部楼层

Re:???2D??????????

?????,????sdk???operator * (const Color3f &v)??

5

主题

13

帖子

17

积分

新手上路

Rank: 1

积分
17
 楼主| 发表于 2008-8-28 11:20:00 | 显示全部楼层

Re: ???2D??????????

Color3f operator * (float v){return(Color3f(r*v,g*v,b*v));}????????
??????????????????????????TileFont
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-4 07:47

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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