aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/d3d/D3dImageComponent.hpp
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-06-09 04:25:41 +0000
committerKevin Rushforth <[email protected]>2004-06-09 04:25:41 +0000
commit343b658c32a6473c545187c1e276ee5d06c2686a (patch)
treead2606538b7db1c3553c53a79ccccb2ed5b5e4e2 /src/native/d3d/D3dImageComponent.hpp
parent06cebb1e576da6f7222f999ab059dcfa3d8edd39 (diff)
Initial creation of j3d-core-utils sources in CVS repository
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@7 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/native/d3d/D3dImageComponent.hpp')
-rw-r--r--src/native/d3d/D3dImageComponent.hpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/native/d3d/D3dImageComponent.hpp b/src/native/d3d/D3dImageComponent.hpp
new file mode 100644
index 0000000..659f907
--- /dev/null
+++ b/src/native/d3d/D3dImageComponent.hpp
@@ -0,0 +1,52 @@
+/*
+ * $RCSfile$
+ *
+ * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Use is subject to license terms.
+ *
+ * $Revision$
+ * $Date$
+ * $State$
+ */
+
+#if !defined(D3DIMAGECOMPONENT_H)
+#define D3DIMAGECOMPONENT_H
+
+#include "StdAfx.h"
+
+class D3dImageComponent {
+public:
+
+ LPDIRECT3DTEXTURE8 surf;
+ D3dCtx *ctx;
+ int hashCode;
+ D3dImageComponent *next;
+
+ D3dImageComponent();
+
+ D3dImageComponent(D3dCtx *ctx, int hashCode,
+ LPDIRECT3DTEXTURE8 surf);
+
+ ~D3dImageComponent();
+
+ VOID init();
+
+ static D3dImageComponent* find(D3dImageComponent *list,
+ D3dCtx *ctx, int hashCode);
+
+ static D3dImageComponent* add(D3dImageComponent *list,
+ D3dCtx *ctx, int hashCode,
+ LPDIRECT3DTEXTURE8 surf);
+
+ static VOID remove(D3dImageComponent *list, D3dCtx *ctx, int hashCode);
+ static VOID remove(D3dImageComponent *list, D3dCtx *ctx);
+ static VOID remove(D3dImageComponent *list, int hashCode);
+ static VOID remove(D3dImageComponent *list, D3dImageComponent *ic);
+ static VOID removeAll(D3dImageComponent *list);
+};
+
+extern D3dImageComponent RasterList;
+extern D3dImageComponent BackgroundImageList;
+
+#endif