游戏开发论坛

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

看《windows游戏开发大师技巧》遇到的几个不懂的问题?

[复制链接]

2

主题

12

帖子

22

积分

注册会员

Rank: 2

积分
22
发表于 2004-3-7 12:38:00 | 显示全部楼层 |阅读模式
1:16色有两种格式555,565,#define _RGB16BIT555((b%32)+(g%32)<<5,((r%32)<<10)),,#define _RGB16BIT565((b%32)+(g%64)<<6,((r%32)<<11))  (p258)
所以对555来说,(0,0,0)和(255,255,255)是一样的。是吧?
2:(p299) if(pixel=bitmap[index_x]//if(pixel==bitmap[index_x])?
video_buffer[index_x]=pixel;
3p313) 读8位的图象,为什么要交换red and green fields但是:
int temp_color=bitmap->palette[index].peBlue;
bitmap->palette[index].peRed=bitmap->palette[index].peBlue;
bitmap->palette[index].peBlue=temp_color;
是交换的red and blue?
4emo15 and Demo16是怎么实现的,为什么Demo15中的红点和绿点刚好在哪个位置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-2-25 16:02

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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