comparison Engine/Graphics/Sprites.h @ 2524:c7264ab7132f

Main menu rendered using d3d11
author a.parshin
date Fri, 10 Oct 2014 17:42:05 +0300
parents 5abd8fc8f1c6
children
comparison
equal deleted inserted replaced
2523:c532d5242055 2524:c7264ab7132f
3 3
4 /* 18 */ 4 /* 18 */
5 #pragma pack(push, 1) 5 #pragma pack(push, 1)
6 class Sprite //28h 6 class Sprite //28h
7 { 7 {
8 public: 8 public:
9 inline Sprite()
10 {
11 d3d11_srv = nullptr;
12 }
13 ~Sprite();
14
9 void Release(); 15 void Release();
10 16
11 const char *pName; //0 17 const char *pName; //0
12 int uPaletteID; //4 18 int uPaletteID; //4
13 struct IDirectDrawSurface4 *pTextureSurface; //8 19 struct IDirectDrawSurface4 *pTextureSurface; //8
16 int uAreaY; //14h 22 int uAreaY; //14h
17 int uBufferWidth; //18h 23 int uBufferWidth; //18h
18 int uBufferHeight; //1ch 24 int uBufferHeight; //1ch
19 int uAreaWidth; //20h 25 int uAreaWidth; //20h
20 int uAreaHeight; //24h 26 int uAreaHeight; //24h
27
28 struct ID3D11ShaderResourceView *d3d11_srv;
21 }; 29 };
22 #pragma pack(pop) 30 #pragma pack(pop)
23 31
24 32
25 /* 42 */ 33 /* 42 */