diff 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
line wrap: on
line diff
--- a/Engine/Graphics/Sprites.h	Thu Oct 09 23:33:36 2014 +0300
+++ b/Engine/Graphics/Sprites.h	Fri Oct 10 17:42:05 2014 +0300
@@ -5,7 +5,13 @@
 #pragma pack(push, 1)
 class Sprite  //28h
 {
-public:
+  public:
+    inline Sprite()
+    {
+      d3d11_srv = nullptr;
+    }
+    ~Sprite();
+
     void Release();
 
     const char *pName;  //0
@@ -18,6 +24,8 @@
     int uBufferHeight;  //1ch
     int uAreaWidth;  //20h
     int uAreaHeight; //24h
+
+    struct ID3D11ShaderResourceView *d3d11_srv;
 };
 #pragma pack(pop)