摘要: GetLevelDesc函数在MSDN中:Retrieves a level description of a texture resource.HRESULT GetLevelDesc( UINT Level, D3DSURFACE_DESC * pDesc);ParametersLevel[in] Identifies a level of the texture resource. This method returns asurface description for the level specified by this parameter.pDesc[out] Pointer to 阅读全文
posted @ 2012-12-13 19:04 健忘猪 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 把背景图元设定为Wnd基类的成员主要是为了所有控件配置背景方便(基本所有的控件都是有背景的); 下面是读取背景配置的示例代码: ATT_STRING(ATT_BG_IMG, m_strBgImg) ATT_COLOR(ATT_BG_COLOR, m_dwBgColor) ATT_CUSTOM(ATT_BG_MODE, OnSetBgMode) ATT_CUSTOM(ATT_BG_STRETCH, OnSetBgStretch) 背景支持三种方式,纯色、单张背景图,九宫格拉伸的背景图; 通过给wnd基类设定一个colorblo... 阅读全文
posted @ 2012-12-13 02:53 健忘猪 阅读(362) 评论(0) 推荐(0) 编辑