⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objecttexture.h

📁 一个类似坦克大战的小小游戏
💻 H
字号:

/**************************************************************************************
	Project  Name			: Map Edit of my game
	Module Name				: Texture
	File Name				: ObjectTexture.h: interface for the CObjectTexture class.
	Create					: 2007-7-5, by Vigame
	Update					: 
	Copyright				: 
	Reference				: 
	Abstrct					: The descriptions of texture.
 **************************************************************************************/

#if !defined(AFX_OBJECTTEXTURE_H__CCB56EFD_C750_4A03_99A0_318AC88390C3__INCLUDED_)
#define AFX_OBJECTTEXTURE_H__CCB56EFD_C750_4A03_99A0_318AC88390C3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "myd3d.h"

class CObjectTexture  
{
public:
	CObjectTexture();
	virtual ~CObjectTexture();

public:
	BOOL Create(LPDIRECT3DDEVICE9 &pDevice, LPCTSTR inFileName, DWORD inColorKey);
	void Release();

	LPDIRECT3DTEXTURE9 GetTexture();	// Get the pointer of texture

	int GetWidth();
	int GetHeight();


public:
	LPDIRECT3DTEXTURE9 m_pTexture;	// IDirect3DTexture9 interface
	int m_nWidth;					// The width of texture
	int m_nHeight;					// The height of texture
};

#endif // !defined(AFX_OBJECTTEXTURE_H__CCB56EFD_C750_4A03_99A0_318AC88390C3__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -