22 #ifndef TETRAEDGE_TE_TE_3D_TEXTURE_H 23 #define TETRAEDGE_TE_TE_3D_TEXTURE_H 25 #include "common/path.h" 26 #include "common/ptr.h" 27 #include "common/str.h" 29 #include "tetraedge/te/te_image.h" 30 #include "tetraedge/te/te_intrusive_ptr.h" 31 #include "tetraedge/te/te_matrix4x4.h" 32 #include "tetraedge/te/te_resource.h" 33 #include "tetraedge/te/te_vector2s32.h" 42 virtual void bind()
const = 0;
43 virtual void copyCurrentRender(uint xoffset, uint yoffset, uint x, uint y) = 0;
44 virtual void create() = 0;
45 virtual void destroy() = 0;
46 virtual void forceTexData(uint gltexture, uint xsize, uint ysize) = 0;
48 TeImage::Format getFormat()
const {
return _format; }
49 bool hasAlpha()
const;
52 virtual bool load(
const TeImage &img) = 0;
59 virtual bool unload() = 0;
60 virtual void update(
const TeImage &img, uint xoff, uint yoff) = 0;
64 uint width()
const {
return _width; }
65 uint height()
const {
return _height; }
66 void setLoadAlphaOnly() { _alphaOnly =
true; }
74 TeImage::Format _format;
93 #endif // TETRAEDGE_TE_TE_3D_TEXTURE_H Definition: te_image.h:40
Definition: detection.h:27
Definition: te_resource.h:31
Definition: te_matrix4x4.h:37
Definition: te_3d_texture.h:37
Definition: te_intrusive_ptr.h:31
Definition: te_vector2s32.h:31