⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-dff292a
|
TextureCube is a collection of six separate square textures that are put onto the faces of an imaginary cube. More...
#include <TextureCube.h>
Inherits Object.
Public Member Functions | |
| void | setTexParameters (const Texture2D::TexParams &) |
| Sets the min filter, mag filter, wrap s and wrap t texture parameters. | |
| bool | reloadTexture () |
| reload texture cube after GLESContext reconstructed. | |
| TextureCube () | |
| Constructor. | |
| virtual | ~TextureCube () |
| Destructor. | |
| Public Member Functions inherited from Object | |
| void | retain () |
| Retains the ownership. | |
| void | release () |
| Releases the ownership immediately. | |
| Object * | autorelease () |
| Releases the ownership sometime soon automatically. | |
| unsigned int | getReferenceCount () const |
| Returns the Object's current reference count. | |
| virtual | ~Object () |
| Destructor. | |
Static Public Member Functions | |
| static TextureCube * | create (std::string_view positive_x, std::string_view negative_x, std::string_view positive_y, std::string_view negative_y, std::string_view positive_z, std::string_view negative_z) |
| create cube texture from 6 textures. | |
Additional Inherited Members | |
| Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
TextureCube is a collection of six separate square textures that are put onto the faces of an imaginary cube.
|
static |
create cube texture from 6 textures.
| positive_x | texture for the right side of the texture cube face. |
| negative_x | texture for the up side of the texture cube face. |
| positive_y | texture for the top side of the texture cube face |
| negative_y | texture for the bottom side of the texture cube face |
| positive_z | texture for the forward side of the texture cube face. |
| negative_z | texture for the rear side of the texture cube face. |
| void setTexParameters | ( | const Texture2D::TexParams & | ) |
Sets the min filter, mag filter, wrap s and wrap t texture parameters.
If the texture size is NPOT (non power of 2), then in can only use GL_CLAMP_TO_EDGE in GL_TEXTURE_WRAP_{S,T}.