?? objecttexture.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 + -