sead
Loading...
Searching...
No Matches
seadTextureCafeGX2.h
Go to the documentation of this file.
1#ifndef SEAD_TEXTURE_CAFE_GX2_H_
2#define SEAD_TEXTURE_CAFE_GX2_H_
3
4#include <cafe.h>
5
6#include <gfx/seadTexture.h>
7#include <prim/seadRuntimeTypeInfo.h>
8
9namespace sead {
10
11class TextureCafeGX2 : public Texture
12{
14
15public:
17 : Texture()
18 , mGX2Texture(nullptr)
19 {
20 }
21
22 virtual ~TextureCafeGX2()
23 {
24 }
25
26 virtual u32 getWidth() const;
27 virtual u32 getHeight() const;
28
30 {
31 return mGX2Texture;
32 }
33
35 {
36 return mGX2Texture;
37 }
38
39 void setGX2Texture(GX2Texture* texture)
40 {
41 mGX2Texture = texture;
42 }
43
44private:
46};
47static_assert(sizeof(TextureCafeGX2) == 8, "sead::TextureCafeGX2 size mismatch");
48
49} // namespace sead
50
51#endif // SEAD_TEXTURE_CAFE_GX2_H_
Definition seadTextureCafeGX2.h:12
virtual u32 getHeight() const
Definition seadTextureCafeGX2.cpp:12
GX2Texture * getGX2Texture()
Definition seadTextureCafeGX2.h:34
virtual u32 getWidth() const
Definition seadTextureCafeGX2.cpp:6
void setGX2Texture(GX2Texture *texture)
Definition seadTextureCafeGX2.h:39
virtual ~TextureCafeGX2()
Definition seadTextureCafeGX2.h:22
TextureCafeGX2()
Definition seadTextureCafeGX2.h:16
const GX2Texture * getGX2Texture() const
Definition seadTextureCafeGX2.h:29
GX2Texture * mGX2Texture
Definition seadTextureCafeGX2.h:45
Definition seadTexture.h:9
Texture()
Definition seadTexture.h:13
Definition seadAssert.h:44
#define SEAD_RTTI_OVERRIDE(CLASS, BASE)
Definition seadRuntimeTypeInfo.h:96