diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/QvLib/QvTexture2.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'tool_src/QvLib/QvTexture2.h')
| -rw-r--r-- | tool_src/QvLib/QvTexture2.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvTexture2.h b/tool_src/QvLib/QvTexture2.h new file mode 100644 index 0000000..2933078 --- /dev/null +++ b/tool_src/QvLib/QvTexture2.h @@ -0,0 +1,29 @@ +#ifndef _QV_TEXTURE_2_ +#define _QV_TEXTURE_2_ + +#include <QvSFEnum.h> +#include <QvSFImage.h> +#include <QvSFString.h> +#include <QvSubNode.h> + +class QvTexture2 : public QvNode { + + QV_NODE_HEADER(QvTexture2); + + public: + enum Wrap { // Texture wrap type + REPEAT, + CLAMP, + }; + + // Fields. + QvSFString filename; // file to read texture from + QvSFImage image; // The texture + QvSFEnum wrapS; + QvSFEnum wrapT; + + virtual QvBool readInstance(QvInput *in); + QvBool readImage(); +}; + +#endif /* _QV_TEXTURE_2_ */ |
