summaryrefslogtreecommitdiff
path: root/src/win95/aw.h
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2015-02-14 12:00:00 +0100
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 03:51:33 +0200
commit0de664d0a886bcda45a0cd05551b6896c5c46ed0 (patch)
tree50127b6ec478d76bc714dbfda69602610334ed0c /src/win95/aw.h
parent22475d6d94e96056d1550dca00b32d00e3821649 (diff)
Import icculus.org release (2015-02-14)
Diffstat (limited to 'src/win95/aw.h')
-rw-r--r--src/win95/aw.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/win95/aw.h b/src/win95/aw.h
index 0a7ac4b..8b9985c 100644
--- a/src/win95/aw.h
+++ b/src/win95/aw.h
@@ -4,31 +4,28 @@
struct AwBackupTexture;
typedef struct AwBackupTexture * AW_BACKUPTEXTUREHANDLE;
+// fake type used by opengl.c
typedef struct DIRECTDRAWSURFACE
{
unsigned char *buf;
int id;
-
- int w;
- int h;
-
+
+ unsigned int w;
+ unsigned int h;
+
+ unsigned int IsNpot;
+ unsigned int TexWidth;
+ unsigned int TexHeight;
+ float RecipW;
+ float RecipH;
+
int filter;
} DIRECTDRAWSURFACE;
typedef DIRECTDRAWSURFACE * LPDIRECTDRAWSURFACE;
typedef DIRECTDRAWSURFACE DDSurface;
-typedef struct DIRECT3DTEXTURE
-{
- unsigned char *buf;
- int id;
-
- int w;
- int h;
-
- int filter;
-} DIRECT3DTEXTURE;
-
+typedef DIRECTDRAWSURFACE DIRECT3DTEXTURE;
typedef DIRECT3DTEXTURE * LPDIRECT3DTEXTURE;
typedef DIRECT3DTEXTURE D3DTexture;