Engine
The Game Engine for Ian Parberry's "Introduction to Game Physics with Box2D"
 All Classes Files Functions Variables Pages
Sprite.h
Go to the documentation of this file.
1 
2 
3 
4 #pragma once
5 
6 #include <windows.h>
7 #include <windowsx.h>
8 #include <d3d9.h>
9 #include <d3dx9.h>
10 
15 
16 class C3DSprite{ //3D sprite
17  friend class CSpriteManager;
18  private:
19  LPDIRECT3DTEXTURE9 m_lpTexture;
20  D3DXIMAGE_INFO m_structImageInfo;
21  LPDIRECT3DVERTEXBUFFER9 m_pVertexBuffer;
22  D3DXMATRIXA16 m_matWorld;
23  D3DXMATRIXA16 m_matTemp;
24 
25  public:
26  C3DSprite();
27  BOOL Load(LPDIRECT3DDEVICE9 device,char* filename);
28  void Draw(LPDIRECT3DDEVICE9 device, D3DXVECTOR3 p,
29  float angle = 0.0f, float xscale=1.0f, float yscale=1.0f);
30  void Release();
31 }; //C3DSprite