游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1686|回复: 1

我刚学DIRECTX,StretchRect这个函数使用的时候老是出现错误

[复制链接]

5

主题

11

帖子

11

积分

新手上路

Rank: 1

积分
11
发表于 2006-9-6 09:12:00 | 显示全部楼层 |阅读模式


我刚学DIRECTX,有个函数搞不明白
          g_pMyd3dDevice->StretchRect(
                        surface, // the source surface
                        src, // the source rectangle
                        backbuffer, // the destination surface
                        dest, // destination rectangle
                        D3DTEXF_NONE
                        ); // the filter to apply
                }
然后出现错误是
:\游戏制作\myproject\mysecodep\animation.cpp(218) : error C2664: 'StretchRect' : cannot convert parameter 2 from 'struct tagRECT' to 'const struct tagRECT *'
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
谁能告诉我是怎么回事啊
谢谢

0

主题

12

帖子

12

积分

新手上路

Rank: 1

积分
12
发表于 2006-9-6 11:41:00 | 显示全部楼层

Re:我刚学DIRECTX,StretchRect这个函数使用的时候老是出现错误

"src, // the source rectangle"改为:"&src, // the source rectangle"吧

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-25 07:21

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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