游戏开发论坛

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

How to merge two texture to a larger texture

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2007-11-7 03:00:00 | 显示全部楼层 |阅读模式
How to merge two texture to a larger texture?
I Creat a larger texture with size 2024x2024.
And then I create smaller Texture from image files.
I want to merge the smaller Texture into somewhere at a larger Texture.
Could somone tell me the way of merge and its detail.
How do I copy the pixel data from one texture to another texture?
By hDC bitbit or By memcpy?

32

主题

1259

帖子

1351

积分

金牌会员

Rank: 6Rank: 6

积分
1351
发表于 2007-11-7 09:05:00 | 显示全部楼层

Re:How to merge two texture to a larger texture

just Bitblit is ok.

1

主题

149

帖子

149

积分

注册会员

Rank: 2

积分
149
QQ
发表于 2007-11-7 09:35:00 | 显示全部楼层

Re:How to merge two texture to a larger texture

Also you can use RTT to combin texture(s)

2

主题

141

帖子

141

积分

注册会员

Rank: 2

积分
141
发表于 2007-11-7 10:03:00 | 显示全部楼层

Re:How to merge two texture to a larger texture

LockRect
do everything which you wanna
Then, SaveTextureTo
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-19 01:24

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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