游戏开发论坛

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

关于PointSprite的使用

[复制链接]

1

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2005-3-25 11:09:00 | 显示全部楼层 |阅读模式
为啥我在DirectX8中总是用不了PointSprite功能?代码如下:
        D3DDevice.SetRenderState D3DRS_POINTSPRITE_ENABLE, True
        D3DDevice.SetRenderState D3DRS_POINTSCALE_ENABLE, True
        D3DDevice.SetRenderState D3DRS_POINTSIZE, 0.01
        D3DDevice.SetRenderState D3DRS_POINTSIZE_MIN, 0
        D3DDevice.SetRenderState D3DRS_POINTSCALE_A, 1
        D3DDevice.SetRenderState D3DRS_POINTSCALE_B, 1
        D3DDevice.SetRenderState D3DRS_POINTSCALE_C, 1
问题出在哪里?谢谢指教? [em24]

2

主题

3

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2005-3-27 22:49:00 | 显示全部楼层

Re:关于PointSprite的使用

D3DDevice.SetRenderState D3DRS_POINTSIZE, 0.01
改为D3DDevice->SetRenderState(D3DRS_POINTSIZE, F2DW(0.01))
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-25 01:01

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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